Explorar el Código

修改切换年份问题

zhbyyy hace 2 años
padre
commit
e987202c95
Se han modificado 1 ficheros con 12 adiciones y 14 borrados
  1. 12 14
      investmentPort/js/investHomeGroup.js

+ 12 - 14
investmentPort/js/investHomeGroup.js

@@ -192,12 +192,12 @@ let app = new Vue({
       this.pieTime5 && clearInterval(this.pieTime5);
       this.pieTime6 && clearInterval(this.pieTime6);
       this.left10Chart ? this.left10Chart.dispose() : ''
-      this.left1Chart ? this.left1Chart.destroy() : ''
-      this.left2Chart ? this.left2Chart.destroy() : ''
-      this.left3Chart ? this.left3Chart.destroy() : ''
-      this.left4Chart ? this.left4Chart.destroy() : ''
-      this.left5Chart ? this.left5Chart.destroy() : ''
-      this.left6Chart ? this.left6Chart.destroy() : ''
+      this.left1Chart ? (this.left1Chart.destroy(),this.left1Chart = '' ): ''
+      this.left2Chart ? (this.left2Chart.destroy(),this.left2Chart = '' ) : ''
+      this.left3Chart ? (this.left3Chart.destroy(),this.left3Chart = '' ) : ''
+      this.left4Chart ? (this.left4Chart.destroy(),this.left4Chart = '' ) : ''
+      this.left5Chart ? (this.left5Chart.destroy(),this.left5Chart = '' ) : ''
+      this.left6Chart ? (this.left6Chart.destroy(),this.left6Chart = '' ) : ''
       this.left7Chart ? this.left7Chart.dispose() : ''
       this.left8Chart ? this.left8Chart.dispose() : ''
       this.left9Chart ? this.left9Chart.dispose() : ''
@@ -777,7 +777,6 @@ let app = new Vue({
           pageSize: 1000
         }
         post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_middle/getTwoLevelData', value).then(res => {
-          console.log(res.data,'?????????')
           that.originalConfig6 = res.data
           that.config6.data = []
           if (this.projectNum == 311) {
@@ -3983,12 +3982,12 @@ let app = new Vue({
       //     that.initChartLTip()
       //   });
       // })
-      this.chartCarousel.on('mouseover', (params) => {
-        that.$refs.indicator.handleHover(true, 1, 2, 3, 4)
-      })
-      this.chartCarousel.on('mouseout', (params) => {
-        that.$refs.indicator.handleHover(false, 1, 2, 3, 4)
-      })
+      // this.chartCarousel.on('mouseover', (params) => {
+      //   that.$refs.indicator.handleHover(true, 1, 2, 3, 4)
+      // })
+      // this.chartCarousel.on('mouseout', (params) => {
+      //   that.$refs.indicator.handleHover(false, 1, 2, 3, 4)
+      // })
       this.chartCarousel.setOption(option)
       // tools.loopShowTooltip(myChart, option, {
       //   nterval: 2000,
@@ -5708,7 +5707,6 @@ let app = new Vue({
           tooltip: {
             trigger: 'item',
           },
-
           tooltip: {
             show: false,
             formatter: function (params) {