From d7fe8ae3888c8e2b1eea3c1e3769be0d42a21cc9 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 16 十月 2023 09:03:47 +0800
Subject: [PATCH] Merge branch '1.0.3' of http://139.186.142.91:10010/r/productDev/dmMes into 1.0.3

---
 screen_standard/src/views/process.vue |   33 +++++++++++++++++++++++++++++----
 1 files changed, 29 insertions(+), 4 deletions(-)

diff --git a/screen_standard/src/views/process.vue b/screen_standard/src/views/process.vue
index c44e935..d81206d 100644
--- a/screen_standard/src/views/process.vue
+++ b/screen_standard/src/views/process.vue
@@ -113,7 +113,7 @@
 </template>
 
 <script setup>
-import { reactive, ref, toRefs, onMounted, onUnmounted } from 'vue'
+import { reactive, ref, toRefs, onMounted, onUnmounted, nextTick } from 'vue'
 import { getProcedurePlanData, getTop, getProcedurePlansList, getRecordLogPage, getUnqualified7DayData, getUnqualifiedCateData } from '@/utils/api.js'
 import { useCounterStore } from '@/stores/counter.js'
 import { useRoute } from 'vue-router'
@@ -148,8 +148,11 @@
 
 onMounted(() => {
   window.addEventListener('resize', () => {
-    setDayChart()
-    setTypeChart()
+    console.log('resize');
+    nextTick(() => {
+      setDayChart()
+      setTypeChart()
+    })
   })
   initData()
   scrollTimer.value = setInterval(() => {
@@ -303,7 +306,6 @@
     dateList.push(item.createTime)
     numList.push(item.unqualifiedNum || 0)
   })
-  console.log(data.allBad);
   let option;
   option = {
     title: {
@@ -313,6 +315,10 @@
         fontSize: 12
       }
     },
+    grid: {
+      top: 40,
+      bottom: 40
+    },
     xAxis: {
       type: 'category',
       boundaryGap: false,
@@ -320,6 +326,15 @@
         lineStyle: {
           width: 0.5,
           color: ['#fff']
+        }
+      },
+      axisLine: {
+        show: true,
+        onZero: true,
+        lineStyle: {
+          width: 1,
+          color: '#fff',
+          opacity: .5
         }
       },
       axisLabel: {
@@ -336,6 +351,15 @@
         lineStyle: {
           width: 0.5,
           color: ['#fff']
+        }
+      },
+      axisLine: {
+        show: true,
+        onZero: true,
+        lineStyle: {
+          width: 1,
+          color: '#fff',
+          opacity: .5
         }
       },
       axisLabel: {
@@ -388,6 +412,7 @@
  */
 function setTypeChart() {
   let dayChartDom = document.getElementById('type-distribution');
+  console.log(dayChartDom);
   let myChart = echarts.init(dayChartDom);
   let legendData = []
   let seriesData = []

--
Gitblit v1.9.3