|
|
@@ -131,6 +131,14 @@
|
|
|
marginChart:0
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ param: {
|
|
|
+ handler (val) {
|
|
|
+ console.log(val);
|
|
|
+ },
|
|
|
+ deep:true
|
|
|
+ }
|
|
|
+ },
|
|
|
methods:{
|
|
|
async listData(val){
|
|
|
this.param.content.dataid = val || this.dataid
|
|
|
@@ -281,11 +289,16 @@
|
|
|
},
|
|
|
},
|
|
|
})
|
|
|
- this.chartPie.on('plot:click',ev=>{
|
|
|
- const states = this.chartPie.getStates()
|
|
|
- this.param.content.where.feestype = states.length ===0 ? '':ev.data.data.type
|
|
|
- this.param.content.pageNumber = 1
|
|
|
- this.queryTable(this.param.content.dataid,this.param.content.where.isleave)
|
|
|
+ this.chartPie.on('element:click',(v) => {
|
|
|
+ if (v.data.data.type != this.param.content.where.feestype) {
|
|
|
+ this.param.content.pageNumber = 1
|
|
|
+ this.param.content.where.feestype = v.data.data.type
|
|
|
+ this.queryTable(this.param.content.dataid,null,this.param.content.where.isleave)
|
|
|
+ } else {
|
|
|
+ this.param.content.pageNumber = 1
|
|
|
+ this.param.content.where.feestype = ''
|
|
|
+ this.queryTable(this.param.content.dataid,null,this.param.content.where.isleave)
|
|
|
+ }
|
|
|
})
|
|
|
this.chartPie.render()
|
|
|
this.queryModel(val,this.param.content.where.isleave)
|