仪器管理新增修改优化

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

@ -2189,29 +2189,50 @@ export default {
},
/* 仪器类型切换 */
typeChange() {
// IOT
if (this.form.type == 1) {
this.form.model = null
this.form.nursingTime = null
this.form.iotVersion = null
this.form.iotUpgradeData = null
this.form.bluetoothConnecting = null
this.form.bluetoothConnectingTitle = null
this.form.bluetoothConnectingContent = null
this.form.bluetoothConnectFail = null
this.form.bluetoothConnectFailTitle = null
this.form.bluetoothConnectFailContent = null
this.form.bluetoothClosed = null
this.form.bluetoothClosedTitle = null
this.form.bluetoothClosedContent = null
this.form.iotVersionUpgrade = null
this.form.modeIdsValue = []
} else {
this.form.model = 'WL200'
this.form.modeIdsValue = []
/**
* 两个都有但需要根据仪器 仪器类型和仪器型号来查询数据
* 模式带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.mode.modeIdsOptions = []
/* 模式选项 */
//
this.form.modeIdsValue = [];
this.modeIdsOptions = [];
// new
this.form.newModeIdList = [];
this.newModeOptionList = [];
listAllMode({
instrumentType: this.form.type,
instrumentModel: this.form.model,
@ -2221,6 +2242,22 @@ export default {
}
this.mode.modeIdsOptions = response.data
})
//
this.form.model = null
this.form.nursingTime = null
this.form.bluetoothConnecting = null
this.form.bluetoothConnectingTitle = null
this.form.bluetoothConnectingContent = null
this.form.bluetoothConnectFail = null
this.form.bluetoothConnectFailTitle = null
this.form.bluetoothConnectFailContent = null
this.form.bluetoothClosed = null
this.form.bluetoothClosedTitle = null
this.form.bluetoothClosedContent = null
this.form.iotVersion = null
this.form.iotUpgradeData = null
this.form.iotVersionUpgrade = null
/* we200数据清空 */
this.form.we200IotVersion = null;
this.form.we200IotUpgradeData = null;
this.form.we200IotVersionUpgrade = null;
@ -2235,6 +2272,14 @@ export default {
modelChange() {
/* 模式选项 */
this.mode.modeIdsOptions = []
// new
//
this.form.modeIdsValue = [];
this.modeIdsOptions = [];
// new
this.form.newModeIdList = [];
this.newModeOptionList = [];
//
listAllMode({
instrumentType: this.form.type,
instrumentModel: this.form.model,
@ -2244,7 +2289,7 @@ export default {
}
this.mode.modeIdsOptions = response.data
})
/* 清空we200 对应的数据 */
this.form.we200IotVersion = null;
this.form.we200IotUpgradeData = null;
this.form.we200IotVersionUpgrade = null;

Loading…
Cancel
Save