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: { watch: {
currentLevelData(val) { currentLevelData(val) {
if (val.orgId) { if (val.orgId) {
this.getReport(val); this.fetchDataAndProcess()
this.getSatisfactionEvent()
// this.getChartData(); // this.getChartData();
} }
}, },
}, },
mounted() { mounted() {
this.getReport(this.currentLevelData);
this.getData();
this.fetchDataAndProcess() this.fetchDataAndProcess()
this.getSatisfactionEvent() this.getSatisfactionEvent()
}, },
// //
methods: { 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() { async fetchData() {
const results = []; const results = [];
@ -248,11 +225,11 @@ export default {
mobile: "", mobile: "",
startTime: "", startTime: "",
endTime: "", endTime: "",
status: "",
firstIdList: [], firstIdList: [],
secondIdList: [], secondIdList: [],
status:"processing", status:"processing",
type: `${i + 1}`, type: `${i + 1}`,
agencyId: this.currentLevelData.orgId
}; };
const response = await requestPost(url, params); // const response = await requestPost(url, params); //
results.push(response.data); results.push(response.data);
@ -267,6 +244,10 @@ export default {
// //
async fetchDataAndProcess() { async fetchDataAndProcess() {
this.listLoading = true this.listLoading = true
this.nddd = []
this.mdjf = []
this.zswt = []
this.ccfwfw = []
const apiResults = await this.fetchData(); const apiResults = await this.fetchData();
this.listLoading = false this.listLoading = false
/* this.nddd = this.groupList(apiResults[0].list, 4); /* this.nddd = this.groupList(apiResults[0].list, 4);
@ -286,8 +267,7 @@ export default {
} }
return newArray; return newArray;
}, },
getData() {
},
handleView({icEventId}) { handleView({icEventId}) {
this.showDialog = true; this.showDialog = true;
this.rowId = icEventId; this.rowId = icEventId;
@ -297,7 +277,7 @@ export default {
}, },
// //
getSatisfactionEvent() { 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.event12345Num = data.event12345Num || 0
this.provinceSatisfactionNum = data.provinceSatisfactionNum || 0 this.provinceSatisfactionNum = data.provinceSatisfactionNum || 0
this.selfInspectNum = data.selfInspectNum || 0 this.selfInspectNum = data.selfInspectNum || 0

Loading…
Cancel
Save