From bbec0065eba47d471006af3a122a334eebe219b9 Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Thu, 19 Dec 2024 14:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BF=9D=E5=AE=89?= =?UTF-8?q?=E5=BD=95=E5=85=A5=E5=A2=9E=E5=8A=A0=E6=96=B0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collect_information/src/enums/index.ts | 1 + .../projectDetails/projectDetails.vue | 11 +- .../securityUserForm/securityUserForm.vue | 145 +++++++++++------- .../projectManager/myProject/index.ts | 4 + .../projectManager/securityUserForm/index.ts | 3 +- 5 files changed, 105 insertions(+), 59 deletions(-) diff --git a/collect_information/src/enums/index.ts b/collect_information/src/enums/index.ts index efdc1ef..a4da952 100644 --- a/collect_information/src/enums/index.ts +++ b/collect_information/src/enums/index.ts @@ -9,6 +9,7 @@ type EnumType = | 'Sex' | 'ServiceProjectType' | 'MiniProgramUserIdentity' + | 'EducationLevel' export const initEnum = () => { api.get[]>>('/common/enums').then(resp => { diff --git a/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue b/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue index cabc5fa..bbc7cbf 100644 --- a/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue +++ b/collect_information/src/subPages/projectManager/myProject/projectDetails/projectDetails.vue @@ -96,10 +96,11 @@ - 籍贯:{{ securityUserDetail.nativePlace }} - 公司:{{ securityUserDetail.securityUnitName }} - 家庭地址:{{ securityUserDetail.homeAddress }} - 备注:{{ securityUserDetail.remark }} + 籍贯:{{ securityUserDetail?.nativePlace }} + 公司:{{ securityUserDetail?.securityUnitName }} + 家庭地址:{{ securityUserDetail?.homeAddress }} + 文化程度:{{ securityUserDetail.educationLevel?.label }} + 备注:{{ securityUserDetail?.remark }} @@ -240,7 +241,7 @@ const detail = (item: ServiceProjectSecurityUserPagerVo) => { } const securityUserEdit = (item: ServiceProjectSecurityUserPagerVo) => { console.log(item) - const params = {...item, sex: item.sex.value} + const params = {...item, sex: item.sex.value,educationLevel:item.educationLevel} Taro.navigateTo({url: `/subPages/projectManager/securityUserForm/securityUserForm?securityUser=${JSON.stringify(params)}&type=formInput`}) } diff --git a/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue b/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue index 914fe64..1a2ca65 100644 --- a/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue +++ b/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue @@ -1,13 +1,13 @@