diff --git a/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue b/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue index dcc3ef14..15327311 100644 --- a/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsUsers/index.vue @@ -215,7 +215,7 @@ - +
@@ -457,7 +457,7 @@ function doImageUpload(type) { if (url) { url = location.origin + url; //url="http://62.234.3.186/statics/2025/01/19/4491f170cd1609142f9a6f097cbf681f_20250119000046A004.jpg" - proxy.$http.get(`/system/tools/id/front?url=${url}`).then(d => { + proxy.$http.get(`/system/tools/id/front?url=${url}`).then(d => { form.value.userName = d.data.name ||form.value.userName || ''; form.value.certificateCode = d.data.cardId || form.value.certificateCode || ''; form.value.address = d.data.address || form.value.address || ''; @@ -471,7 +471,7 @@ function doImageUpload(type) { } let sex = d.data.sex || ''; if (sex) { - form.value.sex = (sex == '男' ? 0 : 1) || form.value.sex ; + form.value.sex = sex?(sex == '男' ? "0" : "1") : form.value.sex ; } let birthDay = d.data.birthDay; if (birthDay && birthDay.length == 8) { @@ -558,7 +558,7 @@ function reset() { subDeptName: null,//所属单位名称 userName: null,//姓名 userPhone: "",//联系电话 - certificateType: '',//证件号码 + certificateType: '1',//证件号码 certificateCode: '',//证件号码 subDeptGroup: '',//班组ID groupName: '',//班组名称 @@ -568,7 +568,7 @@ function reset() { craftPost: '',//工种编号 nation: '',//民族 age: 20,//年龄 - sex: '',//性别 + sex: '0',//性别 educationalType: '',//文件程度 birthDay: '',//出生日期 nativePlace: '',//籍贯 @@ -717,7 +717,7 @@ function handleAdd() { loadSubDepts(() => { data.editData = null; data.mode = 'add'; - form.value.certificateType = ""; + form.value.certificateType = "1"; form.value.projectId = userStore.currentPrjId; form.value.comId = userStore.currentComId; form.value.projectName = userStore.currentProName;