Przeglądaj źródła

产业增加点击

unknown 2 lat temu
rodzic
commit
2191e31e87
2 zmienionych plików z 20 dodań i 20 usunięć
  1. 9 9
      investment/js/data.js
  2. 11 11
      investment/js/investHome.js

+ 9 - 9
investment/js/data.js

@@ -54,15 +54,15 @@ let tipData = [
 ]
 
 let tipTopData = [
-  { value: '13.63', name: '新一代信息技术产业'},
-    { value: '61.39', name: '高端装备制造产业'},
-    { value: '21.17', name: '新材料产业'},
-    { value: '40.08', name: '新能源产业'},
-    { value: '1.18', name: '生物医药产业'},   
-    { value: '11.84', name: '节能环保产业'},
-    { value: '0', name: '新能源汽车产业'},
-    { value: '0', name: '通用航空产业'},
-    { value: '19.34', name: '煤层气产业'},
+  { value: '13.63', name: '新一代信息技术'},
+    { value: '61.39', name: '高端装备制造'},
+    { value: '21.17', name: '新材料'},
+    { value: '40.08', name: '新能源'},
+    { value: '1.18', name: '生物医药'},   
+    { value: '11.84', name: '节能环保'},
+    { value: '0', name: '新能源汽车'},
+    { value: '0', name: '通用航空'},
+    { value: '19.34', name: '煤层气'},
     { value: '8.56', name: '现代煤化工'},
     { value: '2.65', name: '文化旅游'},
     { value: '0', name: '军民融合'},

+ 11 - 11
investment/js/investHome.js

@@ -826,7 +826,7 @@ let app = new Vue({
         series: [
           {
             name: '2022年投资完成额',
-            type: 'bar',
+            type: 'line',
             barWidth: 15,
             itemStyle: {
               normal: {
@@ -837,7 +837,7 @@ let app = new Vue({
                   },
                   {
                     offset: 1,
-                    color: '#082550',
+                    color: '#69c0ff',
                   },
                 ]),
               },
@@ -1052,6 +1052,15 @@ let app = new Vue({
           },
         ],
       }
+      let that = this
+      myChart.on('click', function(param) {
+        console.log(param)
+        if(param.name == '战略新兴产业投资'){
+          that.tipTitle2 = param.name
+          that.showTip2 = true
+        }
+        
+      })
       myChart.setOption(option)
       tools.loopShowTooltip(myChart, option, {
         nterval: 2000,
@@ -1290,15 +1299,6 @@ let app = new Vue({
         nterval: 2000,
         loopSeries: true,
       })
-      let that = this
-      myChart.on('click', function(param) {
-        console.log(param)
-        if(param.name == '战略新兴产业投资'){
-          that.tipTitle2 = param.name
-          that.showTip2 = true
-        }
-        
-      })
     },
     initProjectList() {
       let dataList = []