From fb3206a9ec5f21f6bb6f78c0d2849a59e6dab5cf Mon Sep 17 00:00:00 2001 From: liuye Date: Sun, 23 Apr 2023 10:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/AppResidentInfo/components/Add.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/project/fengdu/app/AppResidentInfo/components/Add.vue b/project/fengdu/app/AppResidentInfo/components/Add.vue index ca61a571..0332add2 100644 --- a/project/fengdu/app/AppResidentInfo/components/Add.vue +++ b/project/fengdu/app/AppResidentInfo/components/Add.vue @@ -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); + } + }) } };