|
|
@ -111,7 +111,7 @@ export default { |
|
|
if (val.orgId) { |
|
|
if (val.orgId) { |
|
|
this.getReport(val); |
|
|
this.getReport(val); |
|
|
this.getData(); |
|
|
this.getData(); |
|
|
this.getChartData(); |
|
|
this.getChartData(val); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
@ -148,10 +148,14 @@ export default { |
|
|
this.report = data; |
|
|
this.report = data; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
getChartData() { |
|
|
getChartData({ orgId, orgLevel }) { |
|
|
this.loading = true |
|
|
this.loading = true |
|
|
|
|
|
|
|
|
this.$http.get('/actual/base/resiCategory/categoryCountList').then(({data: {data}}) => { |
|
|
this.$http.get('/actual/base/resiCategory/categoryCountList?orgId=' + |
|
|
|
|
|
orgId + |
|
|
|
|
|
"&level=" + |
|
|
|
|
|
orgLevel |
|
|
|
|
|
).then(({data: {data}}) => { |
|
|
this.initCharts(data) |
|
|
this.initCharts(data) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|