zhbyyy 2 gadi atpakaļ
vecāks
revīzija
1334b23013
2 mainītis faili ar 105 papildinājumiem un 93 dzēšanām
  1. 3 3
      investmentNew/index.html
  2. 102 90
      investmentNew/js/index.js

+ 3 - 3
investmentNew/index.html

@@ -734,10 +734,10 @@
             border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
         </div>
       </div>
-      <!-- 企业额度分析专属弹窗 -->
+      <!-- 投资额度使用情况专属弹窗 -->
       <div class="tip-box1" v-if="echartEnterpriseShow">
         <img src="./img/close.png" style="width: 40px;height: 40px;top: 30px;right: 30px;" class="absolute pointer"
-          alt="" @click="echartEnterpriseShow = false">
+          alt="" @click="echartEnterpriseFun()">
         <div class="pop-title1">{{titleName}}</div>
         <div class="pop-content1 text-center">
           <div class="tip2">
@@ -775,7 +775,7 @@
               @click="leftPenetrateTwo('投资额度分析','总额度','','',titleName,212)">
               <div class="total3 total">总额度:<span style="font-size: 40px;">{{numFormat(yuanChange(common1[5]))}}<span
                     style="font-size: 30px;">亿</span></span></div>
-              <img src="./groupImg/light2.png" class="absolute ballLight2" alt="">
+              <!-- <img src="./groupImg/light2.png" class="absolute ballLight2" alt=""> -->
               <div ref="echartBall" style="width: 100%; height: 80%;"></div>
             </div>
           </div>

+ 102 - 90
investmentNew/js/index.js

@@ -279,84 +279,84 @@ let app = new Vue({
             url: "./img/logos/logo9.png",
           },
           {
-            name: "太重集团",
-            yse: "26.79",
-            yqhte: "9.64",
-            czrde: "121.59",
-            jse: "120.13",
-            fke: "36.4",
+            name: "",
+            yse: "",
+            yqhte: "",
+            czrde: "",
+            jse: "",
+            fke: "",
             url: "./img/logos/logo10.png",
           },
           {
-            name: "国际能源",
-            yse: "46.99",
-            yqhte: "50.89",
-            czrde: "46.99",
-            jse: "50.89",
-            fke: "46.99",
+            name: "",
+            yse: "",
+            yqhte: "",
+            czrde: "",
+            jse: "",
+            fke: "",
             url: "./img/logos/logo11.png",
           },
           {
-            name: "华远陆港",
-            yse: "26.79",
-            yqhte: "9.64",
-            czrde: "121.59",
-            jse: "120.13",
-            fke: "36.4",
+            name: "",
+            yse: "",
+            yqhte: "",
+            czrde: "",
+            jse: "",
+            fke: "",
             url: "./img/logos/logo12.png",
           },
           {
-            name: "水控集团",
-            yse: "41.09",
-            yqhte: "42.67",
-            czrde: "41.09",
-            jse: "42.67",
-            fke: "41.09",
+            name: "",
+            yse: "",
+            yqhte: "",
+            czrde: "",
+            jse: "",
+            fke: "",
             url: "./img/logos/logo13.png",
           },
           {
-            name: "文旅集团",
-            yse: "26.79",
-            yqhte: "9.64",
-            czrde: "121.59",
-            jse: "120.13",
-            fke: "36.4",
+            name: "",
+            yse: "",
+            yqhte: "",
+            czrde: "",
+            jse: "",
+            fke: "",
             url: "./img/logos/logo14.png",
           },
           {
-            name: "交控集团",
-            yse: "47.05",
-            yqhte: "23.93",
-            czrde: "47.05",
-            jse: "23.93",
-            fke: "47.05",
+            name: "",
+            yse: "",
+            yqhte: "",
+            czrde: "",
+            jse: "",
+            fke: "",
             url: "./img/logos/logo15.png",
           },
           {
-            name: "航产集团",
-            yse: "26.79",
-            yqhte: "9.64",
-            czrde: "121.59",
-            jse: "120.13",
-            fke: "36.4",
+            name: "",
+            yse: "",
+            yqhte: "",
+            czrde: "",
+            jse: "",
+            fke: "",
             url: "./img/logos/logo16.png",
           },
           {
-            name: "山西建投",
-            yse: "14.76",
-            yqhte: "5.84",
-            czrde: "14.76",
-            jse: "120.13",
-            fke: "5.84",
+            name: "",
+            yse: "",
+            yqhte: "",
+            czrde: "",
+            jse: "",
+            fke: "",
             url: "./img/logos/logo17.png",
           },
           {
-            name: "汾酒集团",
-            yse: "26.79",
-            yqhte: "9.64",
-            czrde: "121.59",
-            jse: "120.13",
-            fke: "36.4",
+            name: "",
+            yse: "",
+            yqhte: "",
+            czrde: "",
+            jse: "",
+            fke: "",
             url: "./img/logos/logo18.png",
           },
         ],
@@ -502,30 +502,18 @@ let app = new Vue({
       this.lpRotate();
       this.getAppToken()
       setTimeout(() => {
-        if (that.mapShow) {
-          // that.leftEcharts12Fun()
-          // that.leftEcharts14Fun()
-          that.leftEcharts9Fun()
-          // that.leftEcharts15Fun()
-          that.leftEcharts13Fun()
-          that.shanxiEchartsFun()
-        } else {
-          // that.chinaEchartsFun()
-          // that.leftEcharts16Fun() // 中国地图背景地球
-        }
+        // if (that.mapShow) {
+        //   // that.leftEcharts12Fun()
+        //   // that.leftEcharts14Fun()
+        //   that.leftEcharts9Fun()
+        //   // that.leftEcharts15Fun()
+        //   that.leftEcharts13Fun()
+        //   that.shanxiEchartsFun()
+        // } else {
+        //   // that.chinaEchartsFun()
+        //   // that.leftEcharts16Fun() // 中国地图背景地球
+        // }
         this.changeTopColor()
-        // this.leftEcharts1Fun();
-        // this.leftEcharts2Fun();
-        // this.leftEcharts3Fun();
-        // this.leftEcharts4Fun();
-        // this.leftEcharts5Fun();
-        // this.leftEcharts6Fun();
-        // this.leftEcharts7Fun();
-        // this.leftEcharts8Fun();
-        // this.leftEcharts10Fun();
-        // this.leftEcharts11Fun();
-        // this.rightEcharts1Fun();
-        // this.initChartR2();
         this.initChartR4();
       });
     },
@@ -725,7 +713,7 @@ let app = new Vue({
           pageSize: 1000
         }
         post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_preinvest/tqcebjfx', value).then(res => {
-          if (res.data.rows.length > 0) {
+          if (res.data.rows[0].mdnb_entryentity) {
             let dataList = this.classify(res.data.rows[0].mdnb_entryentity, 'mdnb_textfield1')
             // 传统产业分析
             dataList[0].data.forEach((item, i) => {
@@ -837,7 +825,6 @@ let app = new Vue({
         post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_preinvest/tqtzedfx', value).then(res => {
           if (res.data.rows.length > 0) {
             let dataList = res.data.rows[0]
-            that.fling = true
             left16[0] = dataList.mdnb_amountfield
             left16[1] = dataList.mdnb_amountfield1
             left16[2] = dataList.mdnb_amountfield2
@@ -862,7 +849,7 @@ let app = new Vue({
           pageSize: 1000
         }
         post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_preinvest/tqzdlxzb', value).then(res => {
-          if (res.data.rows.length > 0) {
+          if (res.data.rows[0].mdnb_entryentity1) {
             let dataList2 = this.classify(res.data.rows[0].mdnb_entryentity1, 'mdnb_textfield3')
             // 左边的轮播
             let dataList = []
@@ -3910,7 +3897,6 @@ let app = new Vue({
           className: "custom-tooltip-box",
           confine: true, // 不超出当前表
           formatter: (e) => {
-            console.log('走了这里了', e)
           }
         },
         xAxis: {
@@ -4620,7 +4606,6 @@ let app = new Vue({
         ],
       };
       that.leftEcharts10.on('click', function (param) {
-        console.log(param, '看看点击了')
         that.titleName = param.name
         that.echartEnterpriseShow = true
         // 如果是接口版数据版
@@ -5095,7 +5080,6 @@ let app = new Vue({
           }
 
         }
-        console.log(dataArr);
         return dataArr
 
       }
@@ -5691,12 +5675,12 @@ let app = new Vue({
         return
       }
       this.mapShow = false
-      that.leftEcharts12.dispose()
-      that.leftEcharts14.dispose()
-      that.leftEcharts9.dispose()
-      that.leftEcharts15.dispose()
-      that.leftEcharts13.dispose()
-      that.shanxiMap.dispose()
+      that.leftEcharts12 && that.leftEcharts12.dispose()
+      that.leftEcharts14 && that.leftEcharts14.dispose()
+      that.leftEcharts9 && that.leftEcharts9.dispose()
+      that.leftEcharts15 && that.leftEcharts15.dispose()
+      that.leftEcharts13 && that.leftEcharts13.dispose()
+      that.shanxiMap && that.shanxiMap.dispose()
       setTimeout(() => {
         that.chinaEchartsFun()
         that.leftEcharts16Fun()
@@ -5710,12 +5694,21 @@ let app = new Vue({
         this.tipShow1 = true
       })
     },
+    // 投资额度使用情况
+    echartEnterpriseFun () {
+      this.echartEnterpriseShow = false
+      this.echartBall && this.echartBall.dispose()
+
+    },
     // 关闭所有弹窗的方法
     closeTap () {
       this.tipShow1 = false
       this.tipShow2 = false
       this.tipShow3 = false
       this.projectListTipShow = false
+      this.leftEcharts18 && that.leftEcharts18.dispose()
+      this.echartSingleTip2 && that.echartSingleTip2.dispose()
+      this.echartSingleTip3 && that.echartSingleTip3.dispose()
     },
     //点击弹窗左半部分
     popLeftClick () {
@@ -6968,7 +6961,6 @@ let app = new Vue({
       let that = this
       this.backChina()
       this.year = value
-      that.fling = false
       that.destroyCharts()
       that.closeTap()
       this.pullShow = false
@@ -6980,6 +6972,26 @@ let app = new Vue({
       this.timer && clearInterval(this.timer);
       this.time1 && clearInterval(this.time1);
       this.time2 && clearInterval(this.time2);
+      // 左边
+      this.leftEcharts1 && this.leftEcharts1.dispose()
+      this.leftEcharts2 && this.leftEcharts2.dispose()
+      this.leftEcharts3 && this.leftEcharts3.dispose()
+      this.leftEcharts4 && this.leftEcharts4.dispose()
+      this.leftEcharts5 && this.leftEcharts5.dispose()
+      this.leftEcharts6 && this.leftEcharts6.dispose()
+      this.leftEcharts7 && this.leftEcharts7.dispose()
+      this.leftEcharts8 && this.leftEcharts8.dispose()
+      this.leftEcharts10 && this.leftEcharts10.dispose()
+      this.leftEcharts11 && this.leftEcharts11.dispose()
+      // 中间
+      this.chinaMap && this.chinaMap.dispose()
+      this.leftEcharts16 && this.leftEcharts16.dispose()
+      // 右边
+      this.rightEcharts1 && this.rightEcharts1.dispose()
+      this.echartR2 && this.echartR2.dispose()
+      this.echartR3 && this.echartR3.dispose()
+      this.echartR4 && this.echartR4.dispose()
+
     },
     changeTopColor () {
       this.list = document.getElementsByClassName('row-item')