shuishen
2024-02-18 44cbbe2494580d7c34530c3e8473095045f2b9de
echarts取消点击事件
2 files modified
28 ■■■■ changed files
src/views/propertySupervision/houseHoldSupervision.vue 18 ●●●● patch | view | raw | blame | history
src/views/propertySupervision/residentSupervision.vue 10 ●●●● patch | view | raw | blame | history
src/views/propertySupervision/houseHoldSupervision.vue
@@ -874,11 +874,11 @@
                })
                option && myCharts.setOption(option)
            }
            myCharts.on('click', (params) => {
                console.log(params)
                this.query.labelId = params.data.id
                this.onLoad(this.page, this.query)
            })
            // myCharts.on('click', (params) => {
            //     console.log(params)
            //     this.query.labelId = params.data.id
            //     this.onLoad(this.page, this.query)
            // })
        },
        setBarEchartsOption (data) {
@@ -984,10 +984,10 @@
            this.myChart.setOption(option)
            this.myChart.on('click', (params) => {
                this.query.neiName = params.data.name
                this.onLoad(this.page, this.query)
            })
            // this.myChart.on('click', (params) => {
            //     this.query.neiName = params.data.name
            //     this.onLoad(this.page, this.query)
            // })
        }
    }
}
src/views/propertySupervision/residentSupervision.vue
@@ -846,11 +846,11 @@
                option.legend.type = series.length > 4 ? "scroll" : "plain"
                option.series[0].data = series
                option && myCharts.setOption(option)
                myCharts.on('click', (params) => {
                    console.log(params)
                    this.query.labelId = params.data.id
                    this.onLoad(this.page, this.query)
                })
                // myCharts.on('click', (params) => {
                //     console.log(params)
                //     this.query.labelId = params.data.id
                //     this.onLoad(this.page, this.query)
                // })
            }