新增三个用户信息必传项

This commit is contained in:
X1627315083
2025-02-11 13:14:26 +08:00
parent 639993bcfb
commit 48ed49f164
5 changed files with 89 additions and 34 deletions

View File

@@ -6,7 +6,7 @@
v-model:visible="registerModel"
:footer="null"
:width="pageWidth"
:height="bindType == 'Modify'?'60rem':'70rem'"
:height="bindType == 'Modify'?'60rem':'80rem'"
:maskClosable="false"
:centered="true"
:closable="false"
@@ -60,12 +60,12 @@
/>
<div v-if="bindType != 'Modify'">
<!-- <div class="login_form_title marign_top30">{{ $t('account.Name') }}<span class="must">*</span></div>
<div class="login_form_title marign_top30">{{ $t('account.Name') }}<span class="must">*</span></div>
<div style="display: flex;justify-content: space-between;">
<a-select
class="gallerySelect"
v-model:value="selectSex"
:disabled="!!userDetail.country"
:disabled="!!userDetail.title"
size="large"
optionFilterProp="label"
style="width: 30%;"
@@ -74,9 +74,9 @@
allowClear
show-search
></a-select>
<input class="login_form_input" style="width: 30%;" :class="{active:!!userDetail.occupation}" :disabled="!!userDetail.occupation" type="text" :placeholder="$t('account.plaseFirst')" v-model="surname">
<input class="login_form_input" style="width: 30%;" :class="{active:!!userDetail.occupation}" :disabled="!!userDetail.occupation" type="text" :placeholder="$t('account.plaseLast')" v-model="givenName">
</div> -->
<input class="login_form_input" style="width: 30%;" :class="{active:!!userDetail.surname}" :disabled="!!userDetail.surname" type="text" :placeholder="$t('account.plaseFirst')" v-model="surname">
<input class="login_form_input" style="width: 30%;" :class="{active:!!userDetail.givenName}" :disabled="!!userDetail.givenName" type="text" :placeholder="$t('account.plaseLast')" v-model="givenName">
</div>
<div class="login_form_title marign_top30">{{$t('account.Country')}}:<span class="must">*</span></div>
<div class="login_form_select">
<a-select
@@ -190,13 +190,13 @@ export default defineComponent({
return store.state.UserHabit.userDetail.email
})
let userSex = computed(()=>{
return store.state.UserHabit.userDetail.email
return store.state.UserHabit.userDetail.title
})
let userSurname = computed(()=>{
return store.state.UserHabit.userDetail.email
return store.state.UserHabit.userDetail.surname
})
let userGivenName = computed(()=>{
return store.state.UserHabit.userDetail.email
return store.state.UserHabit.userDetail.givenName
})
let register = reactive({
registerModel:computed(()=>{
@@ -216,7 +216,7 @@ export default defineComponent({
{label:t('account.Ms'),value:'Ms'},
{label:t('account.Miss'),value:'Miss'},
],
selectSex:'Mr',
selectSex:null,
surname:'',
givenName:'',
})
@@ -230,7 +230,7 @@ export default defineComponent({
register.email = newValue == '-------------'?'':newValue
})
watch(userSex,(newValue,oldValue)=>{
register.selectSex = newValue?newValue:'Mr'
register.selectSex = newValue
})
watch(userSurname,(newValue,oldValue)=>{
register.surname = newValue
@@ -338,14 +338,18 @@ export default defineComponent({
message.info("Please select a country");
return;
}
// if (!this.Country && this.bindType != 'Modify') {
// message.info("Please select a country");
// return;
// }
// if (!this.Country && this.bindType != 'Modify') {
// message.info("Please select a country");
// return;
// }
if (!this.selectSex && this.bindType != 'Modify') {
message.info("Please select a title");
return;
}
if (!this.surname && this.bindType != 'Modify') {
message.info("Please select a surname");
return;
}
if (!this.givenName && this.bindType != 'Modify') {
message.info("Please select a givenName");
return;
}
let type = 'BIND_MAILBOX'
if(this.email == this.userDetail.email && this.bindType != 'Modify')type = 'UPDATE_USERINFO'
let data = {
@@ -354,9 +358,9 @@ export default defineComponent({
"operationType": type,
occupation:this.CompanyName,
country:this.Country,
// title:'',
// surname:'',
// givenName:'',
title:this.selectSex,
surname:this.surname,
givenName:this.givenName,
};
if(this.loginTime){
this.loginTime = false