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();
}
},
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() {
this.getDisKey();
@ -129,7 +143,6 @@ export default {
this.$http.post("/sys/dict/data/dictlist", { dictType: "satisfaction_category" }).then(({ data: { data } }) => {
this.typeCondition = data[0].value;
this.typeConditionList = data;
this.getData();
});
},
getData() {
@ -141,6 +154,7 @@ export default {
category: this.resultType == "provinceAndSelf" ? this.typeCondition : null,
};
this.$http.get("/governance/satisfactionOverview/satisfactionCrowdPortrait?" + this.$paramsFormat(params)).then(({ data: { data } }) => {
console.log(data);
this.gender = data.gender;
this.marriageName = data.marriageName;
this.ageClassification = data.ageClassification;

Loading…
Cancel
Save