Przeglądaj źródła

修改样式调整BUG

callm 7 miesięcy temu
rodzic
commit
2c03bb0951

+ 5 - 1
src/components/makeprocesschart/bottom1Chart/chart.vue

@@ -216,7 +216,11 @@ export default {
     this.refreshdata();
   },
   beforeDestroy () {
-    clearInterval(this.timing)
+    clearInterval(this.drawTiming);
+    clearInterval(this.intervalId);
+    this.chart.dispose()
+    this.chart.clear()
+    this.chart=null
   },
   methods: {
     refreshdata() {

+ 2 - 0
src/components/makeprocesschart/bottom1Chart/index.vue

@@ -22,6 +22,8 @@ export default {
     //this.setData();
   },
   beforeDestroy () {
+    clearInterval(this.timing);
+    clearInterval(this.drawTiming);
     clearInterval(this.intervalId);
     this.chart.dispose()
     this.chart.clear()

+ 6 - 3
src/views/makeprocess/bottom1.vue

@@ -25,7 +25,7 @@ export default {
         data: [],
         rowNum: 14, //表格行数
         headerHeight: 35,
-        headerBGC: 'rgba(15,19,37,0.27)', //表头
+        headerBGC: 'rgba(15,19,37,0.27)', //表头    clearInterval(this.timing);
         oddRowBGC: 'rgba(15,19,37,0.6)', //奇数行
         evenRowBGC: 'rgba(23,28,51,0.51)', //偶数行
         columnWidth: [150,110,220,170, 110, 110, 110, 110, 110, 110,110, 110,110],
@@ -38,7 +38,10 @@ export default {
     this.refreshdata()
   },
   beforeDestroy() {
-    clearInterval(this.timing)
+    clearInterval(this.timing);
+    if (this.$refs['scroll-board'] && this.$refs['scroll-board'].destroy) {
+      this.$refs['scroll-board'].destroy();
+    }
   },
   methods: {
     refreshdata() {
@@ -164,7 +167,7 @@ export default {
               }, (result) => {
                 console.error(result)
               }
-          );
+      );
     }
   }
 };

+ 14 - 1
src/views/prodline/bottom1.vue

@@ -39,7 +39,10 @@ export default {
     this.refreshdata()
   },
   beforeDestroy() {
-    clearInterval(this.timing)
+    clearInterval(this.timing);
+    if (this.$refs['scroll-board'] && this.$refs['scroll-board'].destroy) {
+      this.$refs['scroll-board'].destroy();
+    }
   },
   methods: {
     refreshdata() {
@@ -123,6 +126,16 @@ export default {
 $box-height: 520px;
 $box-width: 100%;
 #bottom1 {
+  .dv-scroll-board {
+    .rows {
+      .row-item {
+        line-height: 1.5 !important;  // 统一行高
+        span {
+          vertical-align: middle;     // 垂直居中
+        }
+      }
+    }
+  }
   padding: 13px;
   height: $box-height;
   width: $box-width;

+ 5 - 0
src/views/prodline/index.vue

@@ -154,6 +154,11 @@ export default {
   beforeDestroy () {
     clearInterval(this.timing);
     clearInterval(this.timing2);
+    clearInterval(this.drawTiming);
+    clearInterval(this.intervalId);
+    this.chart.dispose()
+    this.chart.clear()
+    this.chart=null
   },
   methods: {
     ...mapMutations(['setFactory']),

+ 6 - 1
src/views/quality/bottom1.vue

@@ -80,7 +80,12 @@ export default {
     this.refreshdata();
   },
   beforeDestroy () {
-    clearInterval(this.timing)
+    clearInterval(this.timing);
+    clearInterval(this.drawTiming);
+    clearInterval(this.intervalId);
+    this.chart.dispose()
+    this.chart.clear()
+    this.chart=null
   },
   methods: {
     refreshdata() {