unknown 2 lat temu
rodzic
commit
e970d63880
1 zmienionych plików z 12 dodań i 23 usunięć
  1. 12 23
      manpower/js/index.js

+ 12 - 23
manpower/js/index.js

@@ -4,7 +4,6 @@ let app = new Vue({
   el: '#app',
   data() {
     return {
-      time: '',
       year: '2022',
       config1: {
         number: [100],
@@ -128,10 +127,6 @@ let app = new Vue({
     }
   },
   mounted() {
-    this.time = formatDate()
-    this.timer = setInterval(()=> {
-      this.time = formatDate()
-    },1000)
     this.centerData = data
     // 左侧图表
     this.initChartL1()
@@ -155,11 +150,6 @@ let app = new Vue({
     this.initChartR7()
     this.initChartR8()
   },
-  beforeDestroy() {
-    if (this.timer) {
-      clearInterval(this.timer);
-    }
-  },
   methods: {
     numFormat(value) {
       if (!value) return '0'
@@ -636,18 +626,18 @@ let app = new Vue({
             },
             markLine: {
               data: [
-                {
-                  name: '省属企业平均水平(万/人)',
-                  yAxis: 50.13,
-                  lineStyle: {
-                    color: '#fff',
-                  },
-                  label: {
-                    formatter: '{b}',
-                    position: 'end',
-                    color: '#fff',
-                  },
-                },
+                // {
+                //   name: '省属企业平均水平(万/人)',
+                //   yAxis: 50.13,
+                //   lineStyle: {
+                //     color: '#fff',
+                //   },
+                //   label: {
+                //     formatter: '{b}',
+                //     position: 'middle',
+                //     color: '#fff',
+                //   },
+                // },
                 {
                   name: '央企平均水平(万/人)',
                   yAxis: 69.4,
@@ -1187,7 +1177,6 @@ let app = new Vue({
           {
             name: '2022年利润累计涨幅率',
             type: 'line',
-           
             smooth: true, //平滑曲线显示
             showAllSymbol: true, //显示所有图形。
             symbol: 'circle', //标记的图形为实心圆