This commit is contained in:
liuye
2023-04-23 10:57:12 +08:00
parent 3bf5efdd64
commit fb3206a9ec

View File

@@ -593,14 +593,16 @@ export default {
}
},
created() {
this.disabledLevel = this.user.info.areaMap[this.user.info.areaId].length;
if (!this.params.id) {
// this.baseInfo.householdAreaId = JSON.parse(JSON.stringify(this.user.info.areaId))
this.baseInfo.currentAreaId = JSON.parse(JSON.stringify(this.user.info.areaId))
this.$nextTick(() => this.$refs.ruleForm?.resetFields())
} else {
this.getDetail(this.params.id);
}
this.$dict.load(['sex', 'education', 'politicsStatus', 'job', 'faithType', 'nation', 'maritalStatus', 'militaryStatus', 'householdName', 'householdRelation', ]).then(()=> {
this.disabledLevel = this.user.info.areaMap[this.user.info.areaId].length;
if (!this.params.id) {
// this.baseInfo.householdAreaId = JSON.parse(JSON.stringify(this.user.info.areaId))
this.baseInfo.currentAreaId = JSON.parse(JSON.stringify(this.user.info.areaId))
this.$nextTick(() => this.$refs.ruleForm?.resetFields())
} else {
this.getDetail(this.params.id);
}
})
}
};
</script>