进件修改
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
|
||||
const show = ref(false);
|
||||
const modelValue = defineModel();
|
||||
const bankbank_branch_name = defineModel('bankbank_branch_name', {
|
||||
const bank_branch_name = defineModel('bank_branch_name', {
|
||||
default: '',
|
||||
});
|
||||
|
||||
@@ -79,7 +79,11 @@
|
||||
|
||||
function returnLabel() {
|
||||
const findShop = list.value.find(v => v.bank_branch_id == modelValue.value)
|
||||
return findShop ? findShop.bank_branch_name : ''
|
||||
if(findShop){
|
||||
return findShop ? findShop.bank_branch_name : ''
|
||||
}else{
|
||||
return bank_branch_name.value||'请选择'
|
||||
}
|
||||
}
|
||||
const selItem = ref(null)
|
||||
|
||||
@@ -98,7 +102,7 @@
|
||||
|
||||
function submit() {
|
||||
modelValue.value = selItem.value.bank_branch_id
|
||||
bankbank_branch_name.value = selItem.value.bank_branch_name
|
||||
bank_branch_name.value = selItem.value.bank_branch_name
|
||||
show.value = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user