Browse Source

修改问题清单下钻不联动

feature
战立标 2 years ago
parent
commit
a65cc59ec2
  1. 38
      src/views/dataBoard/overview/components/wtqd.vue

38
src/views/dataBoard/overview/components/wtqd.vue

@ -196,42 +196,19 @@ export default {
watch: {
currentLevelData(val) {
if (val.orgId) {
this.getReport(val);
this.fetchDataAndProcess()
this.getSatisfactionEvent()
// this.getChartData();
}
},
},
mounted() {
this.getReport(this.currentLevelData);
this.getData();
this.fetchDataAndProcess()
this.getSatisfactionEvent()
},
//
methods: {
getReport({orgId, orgLevel}) {
this.$http
.get(
"/actual/base/streetOverview/communityOverview?orgId=" +
orgId +
"&level=" +
orgLevel
)
.then(({data: {data}}) => {
this.overview = data;
});
this.$http
.get(
"/actual/base/streetOverview/summaryReport?orgId=" +
orgId +
"&level=" +
orgLevel
)
.then(({data: {data}}) => {
this.report = data;
});
},
async fetchData() {
const results = [];
@ -248,11 +225,11 @@ export default {
mobile: "",
startTime: "",
endTime: "",
status: "",
firstIdList: [],
secondIdList: [],
status:"processing",
type: `${i + 1}`,
agencyId: this.currentLevelData.orgId
};
const response = await requestPost(url, params); //
results.push(response.data);
@ -267,6 +244,10 @@ export default {
//
async fetchDataAndProcess() {
this.listLoading = true
this.nddd = []
this.mdjf = []
this.zswt = []
this.ccfwfw = []
const apiResults = await this.fetchData();
this.listLoading = false
/* this.nddd = this.groupList(apiResults[0].list, 4);
@ -286,8 +267,7 @@ export default {
}
return newArray;
},
getData() {
},
handleView({icEventId}) {
this.showDialog = true;
this.rowId = icEventId;
@ -297,7 +277,7 @@ export default {
},
//
getSatisfactionEvent() {
this.$http.get('/governance/satisfactionOverview/satisfactionEvent').then(({data: {data}}) => {
this.$http.get('/governance/satisfactionOverview/satisfactionEvent?agencyId='+this.currentLevelData.orgId).then(({data: {data}}) => {
this.event12345Num = data.event12345Num || 0
this.provinceSatisfactionNum = data.provinceSatisfactionNum || 0
this.selfInspectNum = data.selfInspectNum || 0

Loading…
Cancel
Save