From 9bd883feb71aced7636f3bf1300e3ad6549b8f1f Mon Sep 17 00:00:00 2001 From: "382696293@qq.com" <382696293@qq.com> Date: Mon, 4 Mar 2024 11:06:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=AA=E5=99=A8=E7=AE=A1=E7=90=86=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=BF=AE=E6=94=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/instrument/index.vue | 91 ++++++++++++++----- 1 file changed, 68 insertions(+), 23 deletions(-) diff --git a/flossom-ui/src/views/system/instrument/index.vue b/flossom-ui/src/views/system/instrument/index.vue index a59e31c..25eb5ad 100644 --- a/flossom-ui/src/views/system/instrument/index.vue +++ b/flossom-ui/src/views/system/instrument/index.vue @@ -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;