添加了注册的搜索和档案的我还会说禁止选择

This commit is contained in:
luyuan 2020-11-10 10:58:42 +08:00
parent 82d7a69123
commit e7b3f694b0
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 17 additions and 3 deletions

View File

@ -23,16 +23,17 @@
>
<a-input-group compact>
<a-select
:default-value="quhaolist[0].code"
:default-value="quhaolist[0].name + '+' + quhaolist[0].code"
size="small"
@change="getquhao"
class="getcode"
style="width: 50%"
show-search
>
<a-select-option
v-for="(i, j) in quhaolist"
:key="j"
:value="i.code"
:value="i.name + '+' + i.code"
>
{{ i.name }}+{{ i.code }}
</a-select-option>

View File

@ -119,6 +119,7 @@
index) in chiveslist[1]"
:key="index"
:value="item.name"
:disabled="isdisabled(item.name)"
>
{{ item.name }}
</a-select-option>
@ -929,8 +930,19 @@ export default defineComponent({
function choosewillsay(e?: any) {
console.log(formData.value.willsayValue);
console.log(e);
}
function isdisabled(name: string){
for(const i in formData.value.willsay){
if(formData.value.willsay[i].name == name){
return true;
}else{
return false;
}
}
}
function currencychange(e?: any) {
console.log(e);
@ -994,7 +1006,8 @@ export default defineComponent({
showname,
uploadspic,
lan,
interestslist
interestslist,
isdisabled
};
},
});