Browse Source

监听下拉数据变化

feature
PLUTO 2 years ago
parent
commit
68102c6c74
  1. 16
      src/views/dataBoard/satisfactionEval/modules/PersonnelPortrait/index.vue

16
src/views/dataBoard/satisfactionEval/modules/PersonnelPortrait/index.vue

@ -110,6 +110,20 @@ export default {
this.getData(); this.getData();
} }
}, },
typeCondition(val) {
if (val) {
this.gender = "";
this.marriageName = "";
this.ageClassification = "";
this.cultureName = "";
this.gridName = "";
this.monthIncomeLevel = "";
this.residentTagName = "";
this.matchPeopleNum = 0;
this.typeCondition = val;
this.getData();
}
},
}, },
mounted() { mounted() {
this.getDisKey(); this.getDisKey();
@ -129,7 +143,6 @@ export default {
this.$http.post("/sys/dict/data/dictlist", { dictType: "satisfaction_category" }).then(({ data: { data } }) => { this.$http.post("/sys/dict/data/dictlist", { dictType: "satisfaction_category" }).then(({ data: { data } }) => {
this.typeCondition = data[0].value; this.typeCondition = data[0].value;
this.typeConditionList = data; this.typeConditionList = data;
this.getData();
}); });
}, },
getData() { getData() {
@ -141,6 +154,7 @@ export default {
category: this.resultType == "provinceAndSelf" ? this.typeCondition : null, category: this.resultType == "provinceAndSelf" ? this.typeCondition : null,
}; };
this.$http.get("/governance/satisfactionOverview/satisfactionCrowdPortrait?" + this.$paramsFormat(params)).then(({ data: { data } }) => { this.$http.get("/governance/satisfactionOverview/satisfactionCrowdPortrait?" + this.$paramsFormat(params)).then(({ data: { data } }) => {
console.log(data);
this.gender = data.gender; this.gender = data.gender;
this.marriageName = data.marriageName; this.marriageName = data.marriageName;
this.ageClassification = data.ageClassification; this.ageClassification = data.ageClassification;

Loading…
Cancel
Save