From f8f4b4d42f1a6997a6e1a1d329f2296eb37a2a62 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期一, 26 九月 2022 14:31:15 +0800
Subject: [PATCH] 1.工艺路线备份

---
 src/views/bbgl/pzyc.vue |   58 +++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 33 insertions(+), 25 deletions(-)

diff --git a/src/views/bbgl/pzyc.vue b/src/views/bbgl/pzyc.vue
index 70577b5..d5b8cea 100644
--- a/src/views/bbgl/pzyc.vue
+++ b/src/views/bbgl/pzyc.vue
@@ -117,6 +117,8 @@
         },
         yAxis: {
           name: '鏁伴噺',
+          max: Math.ceil(Math.max(...this.echartsData.map(r => r.cont)) * 1.1), // 鍙栨暟缁勯噷闈㈡渶澶х殑鍊间箻1.1鍊嶇殑鏁存暟鐨勫ぉ鑺辨澘
+          interval: 1,
           nameTextStyle: {
             color: '#000',
             fontSize: 16,
@@ -177,13 +179,19 @@
           height: 15,
           start: 1,
           end: 35
-
         }
         ],
         series: [{
           name: '鏁伴噺',
           type: 'bar',
           barWidth: '15%',
+          label: {
+            show: true,
+            position: 'top',
+            textStyle: {
+              color: '#000'
+            }
+          },
           itemStyle: {
             normal: {
               color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
@@ -245,30 +253,30 @@
 
       const myChart = echarts.init(document.getElementById('Echarts'))
 
-      setInterval(function() {
-        var dataLen = option.series[0].data.length
-
-        // 鍙栨秷涔嬪墠楂樹寒鐨勫浘褰�
-        myChart.dispatchAction({
-          type: 'downplay',
-          seriesIndex: 0,
-          dataIndex: app.currentIndex
-        })
-        app.currentIndex = (app.currentIndex + 1) % dataLen
-        // console.log(app.currentIndex);
-        // 楂樹寒褰撳墠鍥惧舰
-        myChart.dispatchAction({
-          type: 'highlight',
-          seriesIndex: 0,
-          dataIndex: app.currentIndex
-        })
-        // 鏄剧ず tooltip
-        myChart.dispatchAction({
-          type: 'showTip',
-          seriesIndex: 0,
-          dataIndex: app.currentIndex
-        })
-      }, 1000)
+      // setInterval(function() {
+      //   var dataLen = option.series[0].data.length
+      //
+      //   // 鍙栨秷涔嬪墠楂樹寒鐨勫浘褰�
+      //   myChart.dispatchAction({
+      //     type: 'downplay',
+      //     seriesIndex: 0,
+      //     dataIndex: app.currentIndex
+      //   })
+      //   app.currentIndex = (app.currentIndex + 1) % dataLen
+      //   // console.log(app.currentIndex);
+      //   // 楂樹寒褰撳墠鍥惧舰
+      //   myChart.dispatchAction({
+      //     type: 'highlight',
+      //     seriesIndex: 0,
+      //     dataIndex: app.currentIndex
+      //   })
+      //   // 鏄剧ず tooltip
+      //   myChart.dispatchAction({
+      //     type: 'showTip',
+      //     seriesIndex: 0,
+      //     dataIndex: app.currentIndex
+      //   })
+      // }, 1000)
 
       if (option.textStyle == null) {
         option.textStyle = {

--
Gitblit v1.9.3