From bc365ef47ae4e01754aeadbae26170e11c9bb80e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 22 六月 2026 16:56:12 +0800
Subject: [PATCH] 新疆马铃薯 1.删除按钮添加操作权限

---
 src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue |   54 ++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 48 insertions(+), 6 deletions(-)

diff --git a/src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue b/src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue
index 357a452..90ca942 100644
--- a/src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue
+++ b/src/views/reportAnalysis/dataDashboard/components/basic/right-top.vue
@@ -21,7 +21,7 @@
 </template>
 
 <script setup>
-import { ref, onMounted, computed } from 'vue'
+import { ref, onMounted, computed, inject, watch } from 'vue'
 import Echarts from '@/components/Echarts/echarts.vue'
 import PanelHeader from '../PanelHeader.vue'
 import DateTypeSwitch from '../DateTypeSwitch.vue'
@@ -32,7 +32,7 @@
   height: '100%',
 }
 
-const radio1 = ref(1)
+const radio1 = ref(3)
 
 // 椋炴満鍥炬爣 SVG path
 const aircraft =
@@ -120,7 +120,7 @@
     textStyle: { fontSize: '100%' },
     formatter: function (params) {
       let result = params[0].axisValueLabel + '<br/>'
-      result += `<div style="">${params[0].marker}${params[0].value}</div>`
+      result += `<div>${params[0].marker}${params[0].value}鍏�</div>`
       return result
     },
   }
@@ -151,12 +151,21 @@
       inverse: false,
       data: xdataName.value,
       axisLabel: {
-        formatter: (params) => {
-          return `{a|${params}}`
+        formatter: (value) => {
+          if (!value) return ''
+          const maxLen = 6 // 姣忚鏈�澶氬瓧绗︽暟锛屽彲鎸夐渶璋冩暣
+          if (value.length <= maxLen) return `{a|${value}}`
+
+          const lines = []
+          for (let i = 0; i < value.length; i += maxLen) {
+            lines.push(value.slice(i, i + maxLen))
+          }
+          // 澶氳鏂囨湰锛屾瘡琛岄兘濂楀悓涓�涓� rich 鏍峰紡
+          return lines.map((line) => `{a|${line}}`).join('\n')
         },
         rich: {
           a: {
-            width: 160,
+            width: 120,
             fontSize: 14,
             color: '#fff',
             padding: [5, 4, 5, 0],
@@ -322,6 +331,13 @@
   fetchSupplierRanking()
 }
 
+const dataDashboardRefreshTick = inject('dataDashboardRefreshTick', null)
+if (dataDashboardRefreshTick) {
+  watch(dataDashboardRefreshTick, () => {
+    fetchSupplierRanking()
+  })
+}
+
 onMounted(() => {
   fetchSupplierRanking()
 })
@@ -333,6 +349,32 @@
   padding: 18px;
   width: 100%;
   height: 449px;
+  position: relative;
+  overflow: hidden;
+}
+
+/* 闈㈡澘瑙掕惤瑁呴グ */
+.panel-item-customers::before,
+.panel-item-customers::after {
+  content: '';
+  position: absolute;
+  width: 15px;
+  height: 15px;
+  border-color: rgba(0, 212, 255, 0.5);
+  border-style: solid;
+  pointer-events: none;
+}
+
+.panel-item-customers::before {
+  top: -1px;
+  left: -1px;
+  border-width: 2px 0 0 2px;
+}
+
+.panel-item-customers::after {
+  bottom: -1px;
+  right: -1px;
+  border-width: 0 2px 2px 0;
 }
 
 .switch-container {

--
Gitblit v1.9.3