添加机构注册头像功能
This commit is contained in:
parent
a5c081a0d8
commit
a6d94a53f2
|
|
@ -94,4 +94,5 @@ export const applyObj = {
|
||||||
orgProvince: '机构省份',
|
orgProvince: '机构省份',
|
||||||
orgCity: '机构城市',
|
orgCity: '机构城市',
|
||||||
orgDistrict: '机构区域',
|
orgDistrict: '机构区域',
|
||||||
|
headPath: '头像',
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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') {
|
||||||
|
|
|
||||||
|
|
@ -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>>({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue