From bb8e04d1bc563816c17f3206e90f5e4eaed147de Mon Sep 17 00:00:00 2001 From: fhysy <1149505133@qq.com> Date: Wed, 30 Oct 2024 17:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=20fast(=E6=A0=87=E7=AD=BE):=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=88=A0=E9=99=A4=E6=8E=A5=E5=8F=A3=E3=80=81?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8=E3=80=81=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A9=BA=E9=97=B4=E6=A0=87=E7=AD=BE=E3=80=81?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=A9=BA=E9=97=B4=E6=A0=87=E7=AD=BE=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/tagGroupDevice.js | 3 +- src/views/iot/device/index.vue | 15 +++++- src/views/iot/device/profile/details.vue | 13 +++-- src/views/iot/device/profile/info.vue | 41 ++++++++-------- .../profileV2/DeviceManage/EDeviceTable.vue | 39 ++++++++++++++- src/views/iot/project/profileV2/TagGroup.vue | 1 + .../iot/project/profileV2/TagGroupDevice.vue | 9 ++-- src/views/profile/DeviceDetailsView/index.vue | 3 ++ src/views/profile/DeviceDetailsView/info.vue | 5 +- src/views/tenant/device/index.vue | 48 ++++++++++++++++++- src/views/tenant/device/profile/details.vue | 13 +++-- src/views/tenant/device/profile/info.vue | 31 ++++++------ 12 files changed, 167 insertions(+), 54 deletions(-) diff --git a/src/api/iot/tagGroupDevice.js b/src/api/iot/tagGroupDevice.js index 2494337f..b6db836c 100644 --- a/src/api/iot/tagGroupDevice.js +++ b/src/api/iot/tagGroupDevice.js @@ -38,9 +38,8 @@ export function updateTagGroupdevice(data) { // 删除标签设备 export function delTagGroupdevice(data) { return request({ - url: '/iot/label/remove', + url: '/iot/label/remove/' + data.deviceKey + '/' + data.labelCodes, method: 'delete', - data: data }) } // 项目中删除设备 diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index 9dec2d03..02f36813 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -184,6 +184,11 @@ > + + + { - this.deviceList = response.rows; + let list = response.rows.map(item=>{ + if(item.deviceLabel && item.deviceLabel[0] == '空间'){ + item.deviceLabel.shift(); + return item; + } + return item; + }) + this.deviceList = list; + // this.deviceList = response.rows; this.total = response.total; this.loading = false; this.$nextTick(() => { diff --git a/src/views/iot/device/profile/details.vue b/src/views/iot/device/profile/details.vue index d7716ec5..74f08a1b 100644 --- a/src/views/iot/device/profile/details.vue +++ b/src/views/iot/device/profile/details.vue @@ -1,10 +1,10 @@