From f879cdaf094fdfaa039a82c414e381e67968587e Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Fri, 23 Aug 2024 08:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=9B=91=E6=8E=A7-=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E6=95=B0=E6=8D=AE=E9=A1=B6=E9=83=A8=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E7=BB=84=E6=94=B9=E4=B8=BA=E4=BE=BF=E6=90=BA=E5=BC=8F=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E6=89=80=E6=9C=89tab=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tree/govern/pointTree.vue | 22 +++++---- src/components/tree/point.vue | 29 +++++++----- .../device/control/analysisList/index.vue | 36 ++++++++++---- src/views/govern/device/control/index.vue | 47 +++++++++---------- .../govern/device/control/tabs/realtime.vue | 16 +++---- 5 files changed, 85 insertions(+), 65 deletions(-) diff --git a/src/components/tree/govern/pointTree.vue b/src/components/tree/govern/pointTree.vue index 1f86e27..74e1fc7 100644 --- a/src/components/tree/govern/pointTree.vue +++ b/src/components/tree/govern/pointTree.vue @@ -1,5 +1,5 @@ - + diff --git a/src/views/govern/device/control/index.vue b/src/views/govern/device/control/index.vue index 1134248..0c84e6c 100644 --- a/src/views/govern/device/control/index.vue +++ b/src/views/govern/device/control/index.vue @@ -5,40 +5,20 @@ v-loading="loading" style="position: relative" > - +
@@ -100,7 +80,16 @@ 查询 -
+
{ loading.value = false } } +//治理设备和便携式设备切换判断 +const deviceType = ref('0') +const pointTypeChange = (val: any, obj: any) => { + deviceType.value = val + nodeClick(obj) +} const realTimeRef: any = ref() const intRealTime = async (val: any) => { await getTabsDataByType(val).then(res => { diff --git a/src/views/govern/device/control/tabs/realtime.vue b/src/views/govern/device/control/tabs/realtime.vue index 96bdba6..a9b53fc 100644 --- a/src/views/govern/device/control/tabs/realtime.vue +++ b/src/views/govern/device/control/tabs/realtime.vue @@ -20,7 +20,7 @@
-
+
@@ -75,10 +75,10 @@
{{ - tableData.find(item => { + tableData.find((item: any) => { return item.anotherName == vv.showName && item.phase == vv.phase })?.statisticalData - ? tableData.find(item => { + ? tableData.find((item: any) => { return item.anotherName == vv.showName && item.phase == vv.phase })?.statisticalData : '/' @@ -317,7 +317,7 @@ const initRadioCharts = () => { } }, { - value:70, + value: 70, name: 'B相', itemStyle: { color: '#DAA521' @@ -448,7 +448,7 @@ const getTableData = (list: any) => { })?.statisticalData }) if (index < 4) { - columnsDataTop.value.push(item) + columnsDataTop.value.push(item) } if (index >= 4) { columnsDataBot.value.push(item) @@ -582,8 +582,8 @@ onMounted(() => { height: auto; display: flex; justify-content: space-between; - border: 1px solid #eee; - padding: 10px; + //border: 1px solid #eee; + // padding: 10px; .view_top_left, .view_top_right { width: 30%; @@ -650,7 +650,7 @@ onMounted(() => { .table_info { width: 100%; height: 120px; - border: 1px solid #eee; + // border: 1px solid #eee; border-bottom: 2px solid #eee; margin-bottom: 20px; display: flex;