From e77c57f8d0feeb83fb6651ddad79df6088fa06f0 Mon Sep 17 00:00:00 2001 From: guanj Date: Mon, 20 Jul 2026 09:30:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BE=BD=E5=AE=81=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../terminal/FrontManagement/index.vue | 12 +- .../area/harmonicDistortionRate/index.vue | 643 ++++++++++-------- .../monitoringPoint/online/index.vue | 10 +- src/views/system/auth/role/index.vue | 11 +- 4 files changed, 389 insertions(+), 287 deletions(-) diff --git a/src/views/pqs/business/terminal/FrontManagement/index.vue b/src/views/pqs/business/terminal/FrontManagement/index.vue index 14975e93..f74d177b 100644 --- a/src/views/pqs/business/terminal/FrontManagement/index.vue +++ b/src/views/pqs/business/terminal/FrontManagement/index.vue @@ -20,7 +20,12 @@ - + { tableRef.value.getRef().setCurrentRow(tableStore.table.data[0]) - currentChangeEvent() + setTimeout(() => { + currentChangeEvent() + }, 100) } }) const nodeId = ref('') @@ -440,6 +447,7 @@ const hasDevices = ref(false) /// 点击行 const currentChangeEvent = () => { // 确保 tableRef 和当前记录存在 + if (!tableRef.value || !tableRef.value.getRef().getCurrentRecord()) { loading.value = false dataSource.value = [] diff --git a/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/index.vue b/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/index.vue index 7cf5fd1d..04e7099f 100644 --- a/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/harmonicDistortionRate/index.vue @@ -1,279 +1,364 @@ - - - + + + + + diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue index cd3ec036..7daae7ef 100644 --- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue +++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue @@ -38,10 +38,15 @@ - + - + @@ -79,6 +84,7 @@ const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei' const VITE_FLAG1 = import.meta.env.VITE_NAME == 'hainan' // 环境标识 const IS_LNQR = import.meta.env.VITE_NAME === 'LNqr' +const IS_LN = import.meta.env.VITE_NAME === 'LN' import router from '@/router' import { useMonitoringPoint } from '@/stores/monitoringPoint' import { id } from 'element-plus/es/locale' diff --git a/src/views/system/auth/role/index.vue b/src/views/system/auth/role/index.vue index 78c05c05..de590a09 100644 --- a/src/views/system/auth/role/index.vue +++ b/src/views/system/auth/role/index.vue @@ -69,7 +69,8 @@ const tableStore = new TableStore({ } }, { - title: '操作',fixed: 'right', + title: '操作', + fixed: 'right', align: 'center', width: '180', render: 'buttons', @@ -108,9 +109,11 @@ const tableStore = new TableStore({ ], loadCallback: () => { tableRef.value.getRef().setCurrentRow(tableStore.table.data[0]) - currentChange({ - row: tableStore.table.data[0] - }) + setTimeout(() => { + currentChange({ + row: tableStore.table.data[0] + }) + }, 100) } }) tableStore.table.params.searchValue = ''