Browse Source

fix:画像返回异常状态处理

yangfeng 3 years ago
parent
commit
80d4c116f5

+ 6 - 6
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/analysis_result.js

@@ -180,12 +180,12 @@ var vNode = {
     },
     },
     beforeDestroy() {
     beforeDestroy() {
         window.removeEventListener("resize", this.init,20);
         window.removeEventListener("resize", this.init,20);
-        if(this.hotChartRef) {
-          this.hotChartRef.dispose();
-        }
-        if(this.pieChartRef) {
-          this.pieChartRef.dispose();
-        }
+        // if(this.hotChartRef) {
+        //   this.hotChartRef.dispose();
+        // }
+        // if(this.pieChartRef) {
+        //   this.pieChartRef.dispose();
+        // }
     },
     },
     mounted() {
     mounted() {
         this.year = new Date().getFullYear() - 2;
         this.year = new Date().getFullYear() - 2;

+ 10 - 0
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/ent_portrait.js

@@ -387,6 +387,14 @@ var vNode = {
                 _this.getEntPortrait()
                 _this.getEntPortrait()
               }
               }
             }
             }
+          } else {
+            _this.loading.clear()
+            _this.show.yearData = false
+            _this.show.monthData = false
+            _this.show.areaData = false
+            _this.show.rate = false
+            _this.show.top10 = false
+            _this.show.topShow = false
           }
           }
         },
         },
         error: function (error) {
         error: function (error) {
@@ -470,6 +478,8 @@ var vNode = {
             }
             }
           } else {
           } else {
             // _this.$toast(res.error_msg)
             // _this.$toast(res.error_msg)
+            _this.loading.clear()
+            _this.show.dt = false
           }
           }
         },
         },
         error: function (error) {
         error: function (error) {

+ 1 - 7
src/jfw/modules/app/src/web/staticres/jyapp/big-member/js/unit_portrayal.js

@@ -191,16 +191,10 @@ var vNode = {
         
         
         this.getNewMsg(); // 中标动态
         this.getNewMsg(); // 中标动态
         this.getChartData(); // 企业画像
         this.getChartData(); // 企业画像
-        this.init();
+        // this.init();
     },
     },
     beforeDestroy() {
     beforeDestroy() {
       window.removeEventListener("resize", this.init,20);
       window.removeEventListener("resize", this.init,20);
-      if(this.hotChart) {
-        this.hotChart.dispose();
-      }
-      if(this.pieChart) {
-        this.pieChart.dispose();
-      }
     },
     },
     methods: {
     methods: {
         // 获取权限信息
         // 获取权限信息

+ 1 - 1
src/jfw/modules/app/src/web/templates/big-member/page_ent_portrait.html

@@ -255,7 +255,7 @@
             <div class="zb-time-frame border-line-t">
             <div class="zb-time-frame border-line-t">
               <span>数据统计范围:</span>
               <span>数据统计范围:</span>
               <span>${entPortraitInfo.timeRangeStart ? new Date(entPortraitInfo.timeRangeStart *
               <span>${entPortraitInfo.timeRangeStart ? new Date(entPortraitInfo.timeRangeStart *
-                1000).pattern('yyyy/MM/dd') : '2016'}</span>
+                1000).pattern('yyyy/MM/dd') : ''}</span>
               <span>-</span>
               <span>-</span>
               <span>${entPortraitInfo.timeRangeEnd ? new Date(entPortraitInfo.timeRangeEnd * 1000).pattern('yyyy/MM/dd')
               <span>${entPortraitInfo.timeRangeEnd ? new Date(entPortraitInfo.timeRangeEnd * 1000).pattern('yyyy/MM/dd')
                 : '至今'}</span>
                 : '至今'}</span>

+ 1 - 7
src/web/staticres/big-member/js/unit_portrayal.js

@@ -187,16 +187,10 @@ var vNode = {
       
       
         this.getNewMsg(); // 中标动态
         this.getNewMsg(); // 中标动态
         this.getChartData(); // 企业画像
         this.getChartData(); // 企业画像
-        this.init();
+        // this.init();
     },
     },
     beforeDestroy() {
     beforeDestroy() {
       window.removeEventListener("resize", this.init,20);
       window.removeEventListener("resize", this.init,20);
-      if(this.hotChart) {
-        this.hotChart.dispose();
-      }
-      if(this.pieChart) {
-        this.pieChart.dispose();
-      }
     },
     },
     methods: {
     methods: {
         // 获取权限信息
         // 获取权限信息

+ 10 - 0
src/web/staticres/common-module/collection/js/ent_portrait.js

@@ -392,6 +392,14 @@ var vNode = {
                 _this.getEntPortrait()
                 _this.getEntPortrait()
               }
               }
             }
             }
+          } else {
+            _this.loading.clear()
+            _this.show.yearData = false
+            _this.show.monthData = false
+            _this.show.areaData = false
+            _this.show.rate = false
+            _this.show.top10 = false
+            _this.show.topShow = false
           }
           }
         },
         },
         error: function (error) {
         error: function (error) {
@@ -472,6 +480,8 @@ var vNode = {
             }
             }
           } else {
           } else {
             // _this.$toast(res.error_msg)
             // _this.$toast(res.error_msg)
+            _this.loading.clear()
+            _this.show.dt = false
           }
           }
         },
         },
         error: function (error) {
         error: function (error) {

+ 1 - 1
src/web/templates/frontRouter/wx/collection/sess/ent_portrait.html

@@ -250,7 +250,7 @@
                     </div>
                     </div>
                     <div class="zb-time-frame border-line-t">
                     <div class="zb-time-frame border-line-t">
                         <span>数据统计范围:</span>
                         <span>数据统计范围:</span>
-                        <span>${entPortraitInfo.timeRangeStart ? new Date(entPortraitInfo.timeRangeStart * 1000).pattern('yyyy/MM/dd') : '2016'}</span>
+                        <span>${entPortraitInfo.timeRangeStart ? new Date(entPortraitInfo.timeRangeStart * 1000).pattern('yyyy/MM/dd') : ''}</span>
                         <span>-</span>
                         <span>-</span>
                         <span>${entPortraitInfo.timeRangeEnd ? new Date(entPortraitInfo.timeRangeEnd * 1000).pattern('yyyy/MM/dd') : '至今'}</span>
                         <span>${entPortraitInfo.timeRangeEnd ? new Date(entPortraitInfo.timeRangeEnd * 1000).pattern('yyyy/MM/dd') : '至今'}</span>
                     </div>
                     </div>