From 6f2800cdb804fce5b9b374a3cf524e0de0dbb7bc Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Fri, 10 Jun 2022 13:52:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AD=9B=E9=80=89bug?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/iot/device/index.vue | 4 ++++ vue/src/views/iot/device/running-status.vue | 6 +++--- .../views/iot/product/product-authorize.vue | 21 +++++++------------ 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/vue/src/views/iot/device/index.vue b/vue/src/views/iot/device/index.vue index a274a25c..54fd2f7a 100644 --- a/vue/src/views/iot/device/index.vue +++ b/vue/src/views/iot/device/index.vue @@ -259,11 +259,13 @@ export default { let productId = this.$route.query.productId if (productId != null) { this.queryParams.productId = Number(productId); + this.queryParams.groupId=null; } // 分组筛选 let groupId = this.$route.query.groupId if (groupId != null) { this.queryParams.groupId = Number(groupId); + this.queryParams.productId=null; } this.getList(); @@ -278,11 +280,13 @@ export default { let productId = this.$route.query.productId if (productId != null) { this.queryParams.productId = Number(productId); + this.queryParams.groupId=null; } // 分组筛选 let groupId = this.$route.query.groupId if (groupId != null) { this.queryParams.groupId = Number(groupId); + this.queryParams.productId=null; } this.getList(); } diff --git a/vue/src/views/iot/device/running-status.vue b/vue/src/views/iot/device/running-status.vue index dc1c8a9c..bc4f4f67 100644 --- a/vue/src/views/iot/device/running-status.vue +++ b/vue/src/views/iot/device/running-status.vue @@ -331,14 +331,14 @@ export default { updateDeviceStatus(device) { if (device.status == 3) { this.statusColor.background = '#12d09f'; - this.title = "设备控制(在线)"; + this.title = "在线模式"; } else { if (device.isShadow == 1) { this.statusColor.background = '#409EFF'; - this.title = "设备控制(影子模式)"; + this.title = "影子模式"; } else { this.statusColor.background = '#909399'; - this.title = "设备控制(设备不在线 未启用影子)"; + this.title = "离线模式"; this.shadowUnEnable = true; } } diff --git a/vue/src/views/iot/product/product-authorize.vue b/vue/src/views/iot/product/product-authorize.vue index 784bc1a6..3c31edfc 100644 --- a/vue/src/views/iot/product/product-authorize.vue +++ b/vue/src/views/iot/product/product-authorize.vue @@ -41,17 +41,12 @@ - - - - - - + + + @@ -186,7 +181,7 @@ export default { // 编辑类型,remark=备注、auth=设备授权 editType: '', // 编辑界面宽度 - editWidth:'500px', + editWidth: '500px', // 遮罩层 loading: true, // 选中数组 @@ -365,10 +360,10 @@ export default { this.open = true; if (this.editType == 'auth') { this.title = "选择设备"; - this.editWidth="800px"; + this.editWidth = "800px"; } else { this.title = "备注信息"; - this.editWidth="500px"; + this.editWidth = "500px"; } // 取消选中