Browse Source

fix:图表加载

tangshizhe 2 năm trước cách đây
mục cha
commit
b84acb6403
1 tập tin đã thay đổi với 3 bổ sung15 xóa
  1. 3 15
      src/web/templates/pc/supsearch.html

+ 3 - 15
src/web/templates/pc/supsearch.html

@@ -2605,11 +2605,7 @@ if(sessionselect){
                     }
                   })
                   setTimeout(() => {
-                    if (window.proxy.vComponentChart) {
-                      window.proxy.vComponentChart('#chartTreeMap', data, {}, 've-treemap')
-                    } else {
-                      window.vComponentChart('#chartTreeMap', data, {}, 've-treemap')
-                    }
+                    window.vComponentChart('#chartTreeMap', data, {}, 've-treemap')
                   }, 1000)
                 } else if (item === 'winner_time_distribution') {
                   $('#buyerChart').show()
@@ -2641,11 +2637,7 @@ if(sessionselect){
                   if (total) {
                     data.rows.reverse()
                     setTimeout(() => {
-                      if(window.proxy.vComponentChart) {
-                        window.proxy.vComponentChart('#chartLineChartBuyer', data, {}, 've-line')
-                      } else {
-                        window.vComponentChart('#chartLineChartBuyer', data, {}, 've-line')
-                      }
+                      window.vComponentChart('#chartLineChartBuyer', data, {}, 've-line')
                     }, 1000)
                   }
                 } else if (item === 'buyer_time_distribution') {
@@ -2678,11 +2670,7 @@ if(sessionselect){
                   if (total) {
                     data.rows.reverse()
                     setTimeout(() => {
-                      if(window.proxy.vComponentChart) {
-                        window.proxy.vComponentChart('#chartLineChart', data, {}, 've-line')
-                      } else {
-                        window.vComponentChart('#chartLineChart', data, {}, 've-line')
-                      }
+                      window.vComponentChart('#chartLineChart', data, {}, 've-line')
                     }, 1000)
                   }
                 }