From 02a95c1dcdc2189f205586b9d0881e7516487ba0 Mon Sep 17 00:00:00 2001 From: guanj Date: Wed, 7 Jan 2026 13:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95bug?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cockpit/monitoringPointList/index.vue | 45 +- src/components/tree/device.vue | 15 +- src/components/tree/govern/deviceTree.vue | 29 +- src/components/tree/point.vue | 14 +- .../control/tabs/components/realtrend.vue | 14 +- src/views/govern/device/fileService/popup.vue | 427 +++++++++--------- .../govern/device/officialUser/index.vue | 1 + src/views/govern/device/permission/index.vue | 3 + src/views/govern/device/tourist/index.vue | 22 +- .../setting/dictionary/component/add.vue | 64 +-- .../setting/dictionary/component/index.vue | 37 +- 11 files changed, 378 insertions(+), 293 deletions(-) diff --git a/src/components/cockpit/monitoringPointList/index.vue b/src/components/cockpit/monitoringPointList/index.vue index 875bbd4..6533cae 100644 --- a/src/components/cockpit/monitoringPointList/index.vue +++ b/src/components/cockpit/monitoringPointList/index.vue @@ -18,7 +18,13 @@ - + { + return `${row.lineId}` + } + }, { title: '操作', minWidth: 80, @@ -183,19 +198,19 @@ const tableStore: any = new TableStore({ } }, - { - name: 'productSetting', - title: '下载报告', - type: 'primary', - icon: 'el-icon-EditPen', - render: 'basicButton', - click: row => { - downloadTheReport(row.lineId) - }, - disabled: row => { - return row.reportFilePath == null || row.reportFilePath.length == 0 - } - }, + // { + // name: 'productSetting', + // title: '下载报告', + // type: 'primary', + // icon: 'el-icon-EditPen', + // render: 'basicButton', + // click: row => { + // downloadTheReport(row.lineId) + // }, + // disabled: row => { + // return row.reportFilePath == null || row.reportFilePath.length == 0 + // } + // }, { name: 'productSetting', title: '重新上传', @@ -252,6 +267,8 @@ const cellClickEvent = ({ row, column }: any) => { tableStore.table.params.searchBeginTime || prop.timeValue?.[0], tableStore.table.params.searchEndTime || prop.timeValue?.[1] ) + }else if (column.field == 'lineId') { + downloadTheReport(row.lineId) } } diff --git a/src/components/tree/device.vue b/src/components/tree/device.vue index b773381..af54e77 100644 --- a/src/components/tree/device.vue +++ b/src/components/tree/device.vue @@ -300,7 +300,6 @@ const chooseNode = (value: string, data: any, node: any) => { } const changeDevice = (val: any) => { - console.log('changeDevice', val) let arr1: any = [] //zlDeviceData @@ -331,22 +330,30 @@ const changeDevice = (val: any) => { arr2.map((item: any) => { item.checked = false }) - treeRef1.value && treeRef1.value.setCurrentKey(arr1[0]?.id) + emit('changeDeviceType', activeName.value, arr1[0]) + setTimeout(() => { + treeRef1.value?.setCurrentKey(arr1[0]?.id) + }, 100) } if (val == '1') { arr1.map((item: any) => { item.checked = false }) - treeRef2.value && treeRef2.value.setCurrentKey(arr2[0]?.id) emit('changeDeviceType', activeName.value, arr2[0]) + setTimeout(() => { + treeRef2.value?.setCurrentKey(arr2[0]?.id) + }, 100) } if (val == '2') { arr3.map((item: any) => { item.checked = false }) - treeRef3.value && treeRef3.value.setCurrentKey(arr3[0]?.id) + emit('changeDeviceType', activeName.value, arr3[0]) + setTimeout(() => { + treeRef3.value?.setCurrentKey(arr3[0]?.id) + }, 100) } } //治理 diff --git a/src/components/tree/govern/deviceTree.vue b/src/components/tree/govern/deviceTree.vue index 2f10d49..4d75404 100644 --- a/src/components/tree/govern/deviceTree.vue +++ b/src/components/tree/govern/deviceTree.vue @@ -11,10 +11,11 @@ diff --git a/src/components/tree/point.vue b/src/components/tree/point.vue index 64afc26..0937106 100644 --- a/src/components/tree/point.vue +++ b/src/components/tree/point.vue @@ -205,7 +205,7 @@ watch(filterText, val => { } }) watch(process, val => { - if (val == '' || val == undefined) { + if (val == '' || val == undefined) { zlDevList.value = JSON.parse(JSON.stringify(zlDeviceData.value)) } else { zlDevList.value = filterProcess(JSON.parse(JSON.stringify(zlDeviceData.value))) @@ -251,22 +251,28 @@ const changeDevice = (val: any) => { arr2.map((item: any) => { item.checked = false }) - treeRef1?.value && treeRef1.value.setCurrentKey(arr1[0]?.id) emit('changePointType', activeName.value, arr1[0]) + setTimeout(() => { + treeRef1.value?.setCurrentKey(arr1[0]?.id) + }, 100) } if (val == '1') { arr1.map((item: any) => { item.checked = false }) - treeRef2?.value && treeRef2.value.setCurrentKey(arr2[0]?.id) emit('changePointType', activeName.value, arr2[0]) + setTimeout(() => { + treeRef2.value?.setCurrentKey(arr2[0]?.id) + }, 100) } if (val == '2') { arr3.map((item: any) => { item.checked = false }) - treeRef3?.value && treeRef3.value.setCurrentKey(arr3[0]?.id) emit('changePointType', activeName.value, arr3[0]) + setTimeout(() => { + treeRef3.value?.setCurrentKey(arr3[0]?.id) + }, 100) } // if(activeName.value){ // emit('changePointType', activeName.value) diff --git a/src/views/govern/device/control/tabs/components/realtrend.vue b/src/views/govern/device/control/tabs/components/realtrend.vue index bb5d136..0eb72dc 100644 --- a/src/views/govern/device/control/tabs/components/realtrend.vue +++ b/src/views/govern/device/control/tabs/components/realtrend.vue @@ -2,7 +2,7 @@