From 23a4de9e9efbc2e348f357d8c69a8295c68d29d9 Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Thu, 8 Sep 2022 11:09:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=9A=20=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=AE=A1=E7=90=86-=E9=A1=B9=E7=9B=AE=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=A1=B6=E9=83=A8=E6=A0=8F=E7=9A=84=20?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E4=BF=A1=E6=81=AF=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA1=E7=9B=AE=E5=89=8D=E5=8F=96?= =?UTF-8?q?=E7=9A=84=E6=98=AF=E5=90=88=E5=90=8C=E5=90=8D=E7=A7=B0=E3=80=81?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA2=E9=87=8D=E5=A4=8D=E4=BA=86=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bigScreen/v3/profile/typeDistribution.vue | 4 +- src/views/iot/project/index.vue | 20 ++++ .../profileV2/DeviceManage/EDeviceTable.vue | 16 +-- .../iot/project/profileV2/ETypeCensus.vue | 15 +-- src/views/iot/project/profileV2/details.vue | 112 +++++++++++------- 5 files changed, 102 insertions(+), 65 deletions(-) diff --git a/src/views/bigScreen/v3/profile/typeDistribution.vue b/src/views/bigScreen/v3/profile/typeDistribution.vue index 75394170..648c28c5 100644 --- a/src/views/bigScreen/v3/profile/typeDistribution.vue +++ b/src/views/bigScreen/v3/profile/typeDistribution.vue @@ -134,12 +134,12 @@ export default { if (list) { for (var i = 0; i < list.length; i++) { // console.log(list[i]['typeCode'].indexOf('a')) - if (list[i]["typeCode"].indexOf("a") === 0) { + if (list[i]["tag"] === 'A') { this.templist["alarm"].push({ value: list[i].alarmTotal, name: list[i].typeName, }); - } else if (list[i]["typeCode"].indexOf("w") === 0) { + } else if (list[i]["tag"] === 'B') { this.templist["waraing"].push({ value: list[i].alarmTotal, name: list[i].typeName, diff --git a/src/views/iot/project/index.vue b/src/views/iot/project/index.vue index f2992af5..e0bb6267 100644 --- a/src/views/iot/project/index.vue +++ b/src/views/iot/project/index.vue @@ -239,6 +239,26 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue b/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue index 41a1e582..07731b93 100644 --- a/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue +++ b/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue @@ -9,14 +9,7 @@ > - - + - +
- {{ devItem.deviceId }} - {{ devItem.deviceSecret }} + {{ devItem.deviceName }} + {{ devItem.deviceKey }} {{ devItem.deviceAddress }}
@@ -299,6 +292,7 @@ export default { this.getGatewayList(); }, resetQuery() { + this.resetForm("queryForm"); this.getGatewayList(); }, // 获取 项目 型号列表 diff --git a/src/views/iot/project/profileV2/ETypeCensus.vue b/src/views/iot/project/profileV2/ETypeCensus.vue index 9d0a5f51..06d73b9d 100644 --- a/src/views/iot/project/profileV2/ETypeCensus.vue +++ b/src/views/iot/project/profileV2/ETypeCensus.vue @@ -142,12 +142,12 @@ export default { if (list) { for (var i = 0; i < list.length; i++) { // console.log(list[i]['typeCode'].indexOf('a')) - if (list[i]["typeCode"].indexOf("a") === 0) { + if (list[i]["tag"] === 'A') { this.templist["alarm"].push({ value: list[i].alarmTotal, name: list[i].typeName, }); - } else if (list[i]["typeCode"].indexOf("w") === 0) { + } else if (list[i]["tag"] === 'B') { this.templist["waraing"].push({ value: list[i].alarmTotal, name: list[i].typeName, @@ -155,6 +155,7 @@ export default { } } } + console.log('result-update-', this.templist, list) this.updateEcharts(); }, deep: true, @@ -181,7 +182,7 @@ export default { flex-wrap: wrap; .conter-block { width: 100%; - height: 238px; + height: 218px; display: flex; flex-wrap: wrap; justify-content: center; @@ -245,14 +246,14 @@ export default { .echarts-legend-c .legend-for::-webkit-scrollbar-thumb { /*滚动条里面小方块*/ border-radius: 10px; - box-shadow: inset 0 0 5px #004eb0; - background: #004eb0; + box-shadow: inset 0 0 5px #dbdada; + background: #dbdada; } .echarts-legend-c .legend-for::-webkit-scrollbar-track { /*滚动条里面轨道*/ - box-shadow: inset 0 0 5px #042764; + box-shadow: inset 0 0 5px #04276400; border-radius: 10px; - background: #042764; + background: #04276400; } } diff --git a/src/views/iot/project/profileV2/details.vue b/src/views/iot/project/profileV2/details.vue index 55aa1e40..b0856fe4 100644 --- a/src/views/iot/project/profileV2/details.vue +++ b/src/views/iot/project/profileV2/details.vue @@ -12,10 +12,21 @@ >
-
+
{{ item.projectName }} - - + +
@@ -34,14 +45,14 @@ {{ statusFormat(infoData) }} - {{ - infoData.contractName - }} - 林工1586000000 + + {{ infoData["contacts1"] || "--" }} + - {{ infoData["projectDeviceName"] }} + {{ infoData["contacts2"] || "--" }} + + + {{ infoData["contacts3"] || "--" }} {{ infoData.projectAddress @@ -51,7 +62,10 @@
- +
@@ -81,19 +95,28 @@
@@ -101,7 +124,7 @@