From 02a3f7d75e4f11f70dec8c1a62f8d2a4248affb9 Mon Sep 17 00:00:00 2001 From: lll Date: Tue, 7 Nov 2023 21:12:51 +0800 Subject: [PATCH] 11 --- src/App.vue | 53 +- src/components/AddPolicy.vue | 662 ++++++++++++++---------- src/components/ChiWireld.vue | 685 +++++++++++++------------ src/components/DataAcquire.vue | 46 -- src/components/DataAcquisition.vue | 85 +++- src/components/DeviceVIew.vue | 727 ++++++++++++++------------- src/components/GateWay.vue | 200 +++++--- src/components/NetworkManagement.vue | 2 - src/components/ObjectManagement.vue | 50 +- 9 files changed, 1417 insertions(+), 1093 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1c7e7cb..e5cf40d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,6 +12,16 @@ export default { data() { return { grade: 0, + DB_IotLite_yx: [], + CHGYWG_yx: [], + CHGYWG_wx: [], + DB_IotLite_wx: [], + CKFWQ_yx: [], + CKFWQ_wx: [], + GYWZ_yx: [], + GYWZ_wx: [], + YDPZYM_wgpz: [], + YDPZYM_wgwh: [], }; }, created() { @@ -25,7 +35,36 @@ export default { let arr = []; arr = data.data; arr.forEach((item) => { - item.answer = JSON.parse(item.answer); + if (item.mark == "DB-IotLite_yx") { + this.DB_IotLite_yx = JSON.parse(item.answer); + } + if (item.mark == "CHGYWG_yx") { + this.CHGYWG_yx = JSON.parse(item.answer); + } + if (item.mark == "CHGYWG_wx") { + this.CHGYWG_wx = JSON.parse(item.answer); + } + if (item.mark == "DB_IotLite_wx") { + this.DB_IotLite_wx = JSON.parse(item.answer); + } + if (item.mark == "CKFWQ_yx") { + this.CKFWQ_yx = JSON.parse(item.answer); + } + if (item.mark == "CKFWQ_wx") { + this.CKFWQ_wx = JSON.parse(item.answer); + } + if (item.mark == "GYWZ_yx") { + this.GYWZ_yx = JSON.parse(item.answer); + } + if (item.mark == "GYWZ_wx") { + this.GYWZ_wx = JSON.parse(item.answer); + } + if (item.mark == "YDPZYM_wgpz") { + this.YDPZYM_wgpz = JSON.parse(item.answer); + } + if (item.mark == "YDPZYM_wgwh") { + this.YDPZYM_wgwh = JSON.parse(item.answer); + } }); }, // console.log(arr); @@ -216,7 +255,7 @@ export default { } .el-dialog__body { - color: #FFFFFF !important; + color: #ffffff !important; background-image: url(./assets/image/bg.png); background-size: 100% 100%; } @@ -267,11 +306,11 @@ export default { color: white; } -.el-button { - width: 80px; - height: 30px; - line-height: 0.5 !important; -} +// .el-button { +// width: 80px; +// height: 30px; +// line-height: 0.5 !important; +// } /* .el-tree-node__content:hover { background-image: url(./assets/image/bg.png); diff --git a/src/components/AddPolicy.vue b/src/components/AddPolicy.vue index a185d95..efd4208 100644 --- a/src/components/AddPolicy.vue +++ b/src/components/AddPolicy.vue @@ -1,283 +1,414 @@