From 19f0e68b3fe3cf5244a2b936bfef4e0712bdf025 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期六, 20 六月 2026 11:02:12 +0800
Subject: [PATCH] tooltip错位修改

---
 src/views/reportAnalysis/PSIDataAnalysis/components/center-bottom.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/views/reportAnalysis/PSIDataAnalysis/components/center-bottom.vue b/src/views/reportAnalysis/PSIDataAnalysis/components/center-bottom.vue
index 8277650..e5a1781 100644
--- a/src/views/reportAnalysis/PSIDataAnalysis/components/center-bottom.vue
+++ b/src/views/reportAnalysis/PSIDataAnalysis/components/center-bottom.vue
@@ -23,14 +23,14 @@
 </template>
 
 <script setup>
-import { ref, onMounted } from 'vue'
+import { ref, onMounted, inject, watch } from 'vue'
 import * as echarts from 'echarts'
 import Echarts from '@/components/Echarts/echarts.vue'
 import PanelHeader from './PanelHeader.vue'
 import ProductTypeSwitch from './ProductTypeSwitch.vue'
 import { productInOutAnalysis } from '@/api/viewIndex.js'
 
-const productType = ref(1) // 1=鍘熸潗鏂� 2=鍗婃垚鍝� 3=鎴愬搧
+const productType = ref(2) // 1=鍘熸潗鏂� 3=鍗婃垚鍝� 2=鎴愬搧
 
 const chartStyle = { width: '100%', height: '130%' }
 
@@ -51,8 +51,8 @@
   itemHeight: 12,
   textStyle: { color: '#B8C8E0', fontSize: 14 },
   data: [
-    { name: '鍑哄簱', itemStyle: { color: '#4EE4FF' } },
-    { name: '鍏ュ簱', itemStyle: { color: '#00D68F' } },
+    { name: '鍑哄簱', itemStyle: { color: 'rgba(11, 137, 254, 1)' } },
+    { name: '鍏ュ簱', itemStyle: { color: 'rgba(11, 249, 254, 1)' } },
   ],
 }
 
@@ -151,6 +151,13 @@
   fetchData()
 }
 
+const dataDashboardRefreshTick = inject('dataDashboardRefreshTick', null)
+if (dataDashboardRefreshTick) {
+  watch(dataDashboardRefreshTick, () => {
+    fetchData()
+  })
+}
+
 onMounted(() => {
   fetchData()
 })

--
Gitblit v1.9.3