From 86baa8ff948d2e79588e0dd7efa16f6b8ac3b157 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 06 十二月 2024 15:29:15 +0800
Subject: [PATCH] ll

---
 screen/src/views/TaskEfficiency.vue |   38 ++++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/screen/src/views/TaskEfficiency.vue b/screen/src/views/TaskEfficiency.vue
index 10a374f..fac6891 100644
--- a/screen/src/views/TaskEfficiency.vue
+++ b/screen/src/views/TaskEfficiency.vue
@@ -546,18 +546,19 @@
     }]),
     new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
       offset: 0,
+      color: '#4370f2'
+    }, {
+      offset: 1,
+      color: '#61d3f9'
+    }]),
+    new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
+      offset: 0,
       color: '#4679f6'
     }, {
       offset: 1,
       color: '#4674f6'
     }]),
-    new echarts.graphic.LinearGradient(0, 1, 0, 0, [{
-      offset: 0,
-      color: '#4370f2'
-    }, {
-      offset: 1,
-      color: '#61d3f9'
-    }])]
+  ]
   const temp = []
   temp.push({ name: '绛惧埌鏁�', value: data4.value?.signedNum || 0, rate: data4.value?.signedNum ? '100.0' : 0 })
   temp.push({ name: '宸插彨鍙�', value: data4.value?.calledNum || 0, rate: data4.value?.signedNum ? (data4.value.calledNum / data4.value?.signedNum * 100).toFixed(1) : 0 })
@@ -610,14 +611,15 @@
           show: true,
           position: 'outside',
           formatter: (params) => {
-            return `{a|${params.data.name} ${params.data.rate}%}`
+            const index = params.dataIndex;
+            return `{color${index}|${params.data.name} ${params.data.rate}%}`
             // return `<div>${params.data.name}</div>`
           },
           rich: {
-            a: {
-              color: '#869CC9',
-              fontSize: 13
-            },
+            color0: { color: 'orange', fontSize: 14 },
+            color1: { color: '#869CC9', fontSize: 13 },
+            color2: { color: '#869CC9', fontSize: 13 },
+            color3: { color: '#869CC9', fontSize: 13 }
           }
         },
         labelLine: {
@@ -689,7 +691,6 @@
       item.rate = ((item.workTotalTime / count) * 30).toFixed(0)
       return item
     })
-    loopFn2()
   })
 }
 
@@ -745,7 +746,6 @@
       i.finishTime = dayjs(i.finishTime).format('HH:mm')
       return i
     })
-    loopFn5()
   })
 }
 
@@ -765,7 +765,6 @@
       item.haveTime = dayjs.duration(new Date().getTime() - new Date(item.createDate).getTime()).format('HH灏忔椂mm鍒嗛挓')
       return item
     })
-    loopFn7()
   })
 }
 
@@ -836,9 +835,12 @@
     getData6()
     getData7()
   }, 1000 * 60)
-  // initEchart1()
-  // initEchart2()
-  // initEchart3()
+
+  setTimeout(() => {
+    loopFn2()
+    loopFn5()
+    loopFn7()
+  }, 12000)
 })
 
 

--
Gitblit v1.9.3