From c6542d27c8c3f18f85f676b49d6a1b8ac6df3d2e Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期一, 22 六月 2026 17:13:44 +0800
Subject: [PATCH] fix: 指标统计订单数在折线图默认不显示

---
 src/views/salesManagement/indicatorStats/index.vue |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/views/salesManagement/indicatorStats/index.vue b/src/views/salesManagement/indicatorStats/index.vue
index 6c574ab..7e5e5ba 100644
--- a/src/views/salesManagement/indicatorStats/index.vue
+++ b/src/views/salesManagement/indicatorStats/index.vue
@@ -306,7 +306,15 @@
   const option = {
     title: { text: '澶氱淮搴﹂攢鍞寚鏍囪秼鍔�', left: 'center' },
     tooltip: { trigger: 'axis' },
-    legend: { data: ['璁㈠崟鏁�', '閿�鍞', '浜у搧閿�鍞暟閲�'], top: 30 },
+    legend: {
+      data: ['璁㈠崟鏁�', '閿�鍞', '浜у搧閿�鍞暟閲�'],
+      top: 30,
+      selected: {
+        '璁㈠崟鏁�': false,
+        '閿�鍞': true,
+        '浜у搧閿�鍞暟閲�': true
+      }
+    },
     grid: { left: '3%', right: '8%', bottom: '3%', containLabel: true },
     xAxis: { 
       type: 'category', 
@@ -361,7 +369,15 @@
   const option = {
     title: { text: '澶氱淮搴﹂攢鍞寚鏍囪秼鍔�', left: 'center' },
     tooltip: { trigger: 'axis' },
-    legend: { data: ['璁㈠崟鏁�', '閿�鍞', '浜у搧閿�鍞暟閲�'], top: 30 },
+    legend: {
+      data: ['璁㈠崟鏁�', '閿�鍞', '浜у搧閿�鍞暟閲�'],
+      top: 30,
+      selected: {
+        '璁㈠崟鏁�': false,
+        '閿�鍞': true,
+        '浜у搧閿�鍞暟閲�': true
+      }
+    },
     grid: { left: '3%', right: '8%', bottom: '3%', containLabel: true },
     xAxis: { type: 'category', data: [] },
     yAxis: [

--
Gitblit v1.9.3