添加机构注册头像功能

This commit is contained in:
yangjun 2026-03-16 08:49:37 +08:00
parent a5c081a0d8
commit a6d94a53f2
3 changed files with 18 additions and 3 deletions

View File

@ -94,4 +94,5 @@ export const applyObj = {
orgProvince: '机构省份', orgProvince: '机构省份',
orgCity: '机构城市', orgCity: '机构城市',
orgDistrict: '机构区域', orgDistrict: '机构区域',
headPath: '头像',
}; };

View File

@ -200,6 +200,12 @@
<!-- {{ formData.issuingAuthority }} --> <!-- {{ formData.issuingAuthority }} -->
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-item label="头像" v-bind="validateInfos.headPath" id="OrgApplyInfoForm-headPath"
name="headPath">
<JImageUpload :fileMax="1" text="无" v-model:value="formData.headPath" :disabled="true"></JImageUpload>
</a-form-item>
</a-col>
</a-row> </a-row>
</a-col> </a-col>
</a-row> </a-row>
@ -429,6 +435,7 @@ const formData = reactive<Record<string, any>>({
netUrl: '', netUrl: '',
accountNo: '', accountNo: '',
passwordText: '', passwordText: '',
headPath: '',
}); });
const tempNullVal = ref(''); const tempNullVal = ref('');
const sfsh = ref<string>('0'); const sfsh = ref<string>('0');
@ -519,6 +526,13 @@ function edit(record) {
cityViewValue.value = record.orgProvince_dictText cityViewValue.value = record.orgProvince_dictText
+ (!!record.orgCity_dictText ? record.orgCity_dictText : '') + (!!record.orgCity_dictText ? record.orgCity_dictText : '')
+ (!!record.orgDistrict_dictText ? record.orgDistrict_dictText : '') + (!!record.orgDistrict_dictText ? record.orgDistrict_dictText : '')
if(!tmpData.headPath){
if(tmpData.sex == '女'){
tmpData.headPath = 'https://www.focusnu.com/media/directive/index/nv.png';
}else{
tmpData.headPath = 'https://www.focusnu.com/media/directive/index/nan.png';
}
}
// //
Object.assign(formData, tmpData); Object.assign(formData, tmpData);
if (lsbl == '1') { if (lsbl == '1') {

View File

@ -9,10 +9,10 @@
<span>{{ applyObj[record.d1] }}</span> <span>{{ applyObj[record.d1] }}</span>
</template> </template>
<template v-if="column.dataIndex === 'd2' && isImg(record.d1)"> <template v-if="column.dataIndex === 'd2' && isImg(record.d1)">
<JImageUpload :fileMax="1" v-model:value="record.d2" disabled></JImageUpload> <JImageUpload :fileMax="1" text="无" v-model:value="record.d2" disabled></JImageUpload>
</template> </template>
<template v-if="column.dataIndex === 'd3' && isImg(record.d1)"> <template v-if="column.dataIndex === 'd3' && isImg(record.d1)">
<JImageUpload :fileMax="1" v-model:value="record.d3" disabled></JImageUpload> <JImageUpload :fileMax="1" text="无" v-model:value="record.d3" disabled></JImageUpload>
</template> </template>
<template <template
v-if="column.dataIndex === 'd2' && (record.d1 == 'orgProvince' || record.d1 == 'orgCity' || record.d1 == 'orgDistrict')"> v-if="column.dataIndex === 'd2' && (record.d1 == 'orgProvince' || record.d1 == 'orgCity' || record.d1 == 'orgDistrict')">
@ -83,7 +83,7 @@ const { createMessage } = useMessage();
const labelCol = { span: 4 }; // const labelCol = { span: 4 }; //
const wrapperCol = { span: 18 }; // const wrapperCol = { span: 18 }; //
const isImg = (v_) => { const isImg = (v_) => {
return v_ == 'cardZmPath' || v_ == 'cardFmPath' || v_ == 'comBusinessLicense' return v_ == 'cardZmPath' || v_ == 'cardFmPath' || v_ == 'comBusinessLicense'|| v_ == 'headPath'
} }
const provinceOptions = ref({}) const provinceOptions = ref({})
const formData = reactive<Record<string, any>>({ const formData = reactive<Record<string, any>>({