Selaa lähdekoodia

Merge branch 'feature/v4.7.49' of http://192.168.3.207:8080/qmx/jy into feature/v4.7.49

tangshizhe 2 vuotta sitten
vanhempi
commit
2cac4e114e
1 muutettua tiedostoa jossa 9 lisäystä ja 6 poistoa
  1. 9 6
      src/web/templates/pc/supsearch.html

+ 9 - 6
src/web/templates/pc/supsearch.html

@@ -2571,12 +2571,15 @@ if(sessionselect){
           success: function(res) {
             if (res && res.error_code === 0 && res.data) {
               try {
-                _this.advancedInfo.briefList = (res.data.ahead.subTypeCount || []).map(v => {
-                  v.value = v.doc_count
-                  return v
-                })
-                _this.advancedInfo.projectList = res.data.ahead.projectTop2 || []
-
+                //超前项目
+                if(res.data.ahead){
+                  _this.advancedInfo.briefList = (res.data.ahead.subTypeCount || []).map(v => {
+                    v.value = v.doc_count
+                    return v
+                  })
+                  _this.advancedInfo.projectList = res.data.ahead.projectTop2 || []
+                }
+                //定制化分析报告
                 _this.chartCustomData = res.data.custom || {}
                 if (_this.advancedInfo.briefList.length || _this.advancedInfo.projectList.length || Object.keys(_this.chartCustomData).length) {
                   _this.advancedInfo.show = true