|
@ -294,6 +294,7 @@ export default { |
|
|
this.queryEndTime = dateFormat(end, 'yyyy-MM-dd') + " 23:59:59" |
|
|
this.queryEndTime = dateFormat(end, 'yyyy-MM-dd') + " 23:59:59" |
|
|
} |
|
|
} |
|
|
if (index !== '0') { |
|
|
if (index !== '0') { |
|
|
|
|
|
this.categoryCode = '' |
|
|
await this.getApiData() |
|
|
await this.getApiData() |
|
|
// this.assignData() |
|
|
// this.assignData() |
|
|
} |
|
|
} |
|
@ -306,6 +307,7 @@ export default { |
|
|
|
|
|
|
|
|
handleSelectChange (value) { |
|
|
handleSelectChange (value) { |
|
|
console.log(value) |
|
|
console.log(value) |
|
|
|
|
|
this.categoryCode = '' |
|
|
this.queryStartTime = value[0] + " 00:00:00" |
|
|
this.queryStartTime = value[0] + " 00:00:00" |
|
|
this.queryEndTime = value[1] + " 23:59:59" |
|
|
this.queryEndTime = value[1] + " 23:59:59" |
|
|
this.getApiData() |
|
|
this.getApiData() |
|
@ -366,7 +368,7 @@ export default { |
|
|
name: item.categoryName, |
|
|
name: item.categoryName, |
|
|
categoryCode: item.categoryCode, |
|
|
categoryCode: item.categoryCode, |
|
|
color: item.color, |
|
|
color: item.color, |
|
|
selected: index == 0 ? true : false |
|
|
selected: false |
|
|
} |
|
|
} |
|
|
this.pieData.push(ob) |
|
|
this.pieData.push(ob) |
|
|
}) |
|
|
}) |
|
@ -405,7 +407,7 @@ export default { |
|
|
orgId: item.orgId, |
|
|
orgId: item.orgId, |
|
|
orgType: item.orgType, |
|
|
orgType: item.orgType, |
|
|
color: colorArray[colIndex], |
|
|
color: colorArray[colIndex], |
|
|
selected: index == 0 ? true : false |
|
|
selected: false |
|
|
} |
|
|
} |
|
|
this.gridPieData.push(ob) |
|
|
this.gridPieData.push(ob) |
|
|
}) |
|
|
}) |
|
@ -513,6 +515,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
clickPie (seriesIndex) { |
|
|
clickPie (seriesIndex) { |
|
|
|
|
|
let isSelected = false |
|
|
this.pieData.forEach((element, index) => { |
|
|
this.pieData.forEach((element, index) => { |
|
|
if (index === seriesIndex) { |
|
|
if (index === seriesIndex) { |
|
|
element.label = { |
|
|
element.label = { |
|
@ -525,6 +528,13 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.categoryCode = element.categoryCode |
|
|
this.categoryCode = element.categoryCode |
|
|
|
|
|
element.selected = !element.selected |
|
|
|
|
|
isSelected = element.selected |
|
|
|
|
|
// if (isSelected) { |
|
|
|
|
|
// this.categoryCode = element.categoryCode |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.categoryCode = '' |
|
|
|
|
|
// } |
|
|
} else { |
|
|
} else { |
|
|
element.label = { |
|
|
element.label = { |
|
|
show: false, |
|
|
show: false, |
|
@ -536,6 +546,7 @@ export default { |
|
|
color: 'rgba(255,255,255,0)' |
|
|
color: 'rgba(255,255,255,0)' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
element.selected = false |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
this.pieOption.series[1].data = this.pieData |
|
|
this.pieOption.series[1].data = this.pieData |
|
@ -631,6 +642,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleChangeAgency (value) { |
|
|
handleChangeAgency (value) { |
|
|
|
|
|
this.categoryCode = '' |
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
if (obj) { |
|
|
if (obj) { |
|
|
this.orgType = obj.level === 'grid' ? 'grid' : 'agency' |
|
|
this.orgType = obj.level === 'grid' ? 'grid' : 'agency' |
|
|