From d9a5a7c9d7d5aae2bb98b49d55f83ca3353089d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B2=E4=B9=88=E4=BA=86?= Date: Thu, 29 Feb 2024 10:50:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=B5=8B=E7=82=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echarts/MyEchart.vue | 3 ++- src/components/tree/pms/pointTree.vue | 2 +- .../pqs/harmonicMonitoring/monitoringPoint/online/index.vue | 4 ++-- .../monitoringPoint/online/wentaizonghepinggu/index.vue | 3 +++ vite.config.ts | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/echarts/MyEchart.vue b/src/components/echarts/MyEchart.vue index 0dfa751e..98a616f3 100644 --- a/src/components/echarts/MyEchart.vue +++ b/src/components/echarts/MyEchart.vue @@ -16,7 +16,8 @@ const props = defineProps(['options']) let chart: echarts.ECharts | any = null const resizeHandler = () => { // 不在视野中的时候不进行resize - if(chartRef.value!.offsetHeight == 0) return + if (!chartRef.value) return + if (chartRef.value.offsetHeight == 0) return chart.getZr().painter.getViewportRoot().style.display = 'none' requestAnimationFrame(() => { chart.resize() diff --git a/src/components/tree/pms/pointTree.vue b/src/components/tree/pms/pointTree.vue index f53d24ae..30e25992 100644 --- a/src/components/tree/pms/pointTree.vue +++ b/src/components/tree/pms/pointTree.vue @@ -103,7 +103,7 @@ const loadData = () => { if (nodeKey) { nextTick(() => { treeRef.value.treeRef.setCurrentKey(nodeKey) - treeRef.value.treeRef.setExpandedKeys(nodeKey) + // treeRef.value.treeRef.setExpandedKeys(nodeKey) }) } }) diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue index 7689911e..15ea3635 100644 --- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue +++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/index.vue @@ -39,7 +39,7 @@ -
+
当前位置:{{ monitoringPoint.state.lineName }}
@@ -72,7 +72,7 @@ const pointTree = ref() const size = ref(0) const isReload = ref(false) const height = mainHeight(40) -const activeName = ref('3') +const activeName = ref('1') onMounted(() => { const dom = document.getElementById('navigation-splitpanes') if (dom) { diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizonghepinggu/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizonghepinggu/index.vue index 5049c901..7786e792 100644 --- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizonghepinggu/index.vue +++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaizonghepinggu/index.vue @@ -41,6 +41,9 @@ const grade = gradeColor5.map((item, index) => { const init = () => { loading.value = true + if (!monitoringPoint.state.lineId) { + return + } formData.id = monitoringPoint.state.lineId formData.searchBeginTime = datePickerRef.value.timeValue[0] formData.searchEndTime = datePickerRef.value.timeValue[1] diff --git a/vite.config.ts b/vite.config.ts index 41a9f42f..7c44258f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,7 +11,7 @@ export default defineConfig({ host: '0.0.0.0', proxy: { '/api': { - target: 'http://192.168.1.81:10215', //数据中心 + target: 'http://192.168.1.31:10215', //数据中心 changeOrigin: true, rewrite: path => path.replace(/^\/api/, '') //路径重写,把'/api'替换为'' },