仪器管理新增修改优化

master
382696293@qq.com 2 years ago
parent 48ddfebdf7
commit 9bd883feb7

@ -2189,12 +2189,62 @@ export default {
}, },
/* 仪器类型切换 */ /* 仪器类型切换 */
typeChange() { typeChange() {
// IOT /**
if (this.form.type == 1) { * 两个都有但需要根据仪器 仪器类型和仪器型号来查询数据
* 模式带new标识模式
*/
/**
* IOT 特有
* 仪器型号默认WL200
* 生成护理记录最短时间
*
* 蓝牙连接中图片
* 蓝牙连接中标题
* 蓝牙连接中文案
*
* 蓝牙连接失败图片
* 蓝牙连接失败标题
* 蓝牙连接失败文案
*
* 蓝牙连断开接图片
* 蓝牙断开连接标题
* 蓝牙断开连接文案
*
* we200蓝牙连接中图片(WL200仪器特有)
* we200蓝牙连接中标题(WL200仪器特有)
* we200蓝牙连接中文案(WL200仪器特有)
*
* IOT版本
* IOT升级数据文件
* IOT版本升级介绍
*
* we200IOT版本(WL200仪器特有)
* we200IOT升级数据文件(WL200仪器特有)
* we200IOT版本升级介绍(WL200仪器特有)
*/
// IOT WL200
if (this.form.type == 2) {
this.form.model = 'WL200';
}
/* 模式选项 */
//
this.form.modeIdsValue = [];
this.modeIdsOptions = [];
// new
this.form.newModeIdList = [];
this.newModeOptionList = [];
listAllMode({
instrumentType: this.form.type,
instrumentModel: this.form.model,
}).then((response) => {
if (response.code != 200) {
this.$message.error('模式获取失败')
}
this.mode.modeIdsOptions = response.data
})
//
this.form.model = null this.form.model = null
this.form.nursingTime = null this.form.nursingTime = null
this.form.iotVersion = null
this.form.iotUpgradeData = null
this.form.bluetoothConnecting = null this.form.bluetoothConnecting = null
this.form.bluetoothConnectingTitle = null this.form.bluetoothConnectingTitle = null
this.form.bluetoothConnectingContent = null this.form.bluetoothConnectingContent = null
@ -2204,23 +2254,10 @@ export default {
this.form.bluetoothClosed = null this.form.bluetoothClosed = null
this.form.bluetoothClosedTitle = null this.form.bluetoothClosedTitle = null
this.form.bluetoothClosedContent = null this.form.bluetoothClosedContent = null
this.form.iotVersion = null
this.form.iotUpgradeData = null
this.form.iotVersionUpgrade = null this.form.iotVersionUpgrade = null
this.form.modeIdsValue = [] /* we200数据清空 */
} else {
this.form.model = 'WL200'
this.form.modeIdsValue = []
}
/* 模式选项 */
this.mode.modeIdsOptions = []
listAllMode({
instrumentType: this.form.type,
instrumentModel: this.form.model,
}).then((response) => {
if (response.code != 200) {
this.$message.error('模式获取失败')
}
this.mode.modeIdsOptions = response.data
})
this.form.we200IotVersion = null; this.form.we200IotVersion = null;
this.form.we200IotUpgradeData = null; this.form.we200IotUpgradeData = null;
this.form.we200IotVersionUpgrade = null; this.form.we200IotVersionUpgrade = null;
@ -2235,6 +2272,14 @@ export default {
modelChange() { modelChange() {
/* 模式选项 */ /* 模式选项 */
this.mode.modeIdsOptions = [] this.mode.modeIdsOptions = []
// new
//
this.form.modeIdsValue = [];
this.modeIdsOptions = [];
// new
this.form.newModeIdList = [];
this.newModeOptionList = [];
//
listAllMode({ listAllMode({
instrumentType: this.form.type, instrumentType: this.form.type,
instrumentModel: this.form.model, instrumentModel: this.form.model,
@ -2244,7 +2289,7 @@ export default {
} }
this.mode.modeIdsOptions = response.data this.mode.modeIdsOptions = response.data
}) })
/* 清空we200 对应的数据 */
this.form.we200IotVersion = null; this.form.we200IotVersion = null;
this.form.we200IotUpgradeData = null; this.form.we200IotUpgradeData = null;
this.form.we200IotVersionUpgrade = null; this.form.we200IotVersionUpgrade = null;

Loading…
Cancel
Save