fix: แก้เงื่อนไขการตรวจสอบ id

This commit is contained in:
Net 2024-06-17 13:14:34 +07:00
parent ad18731a8c
commit be681f537d

View file

@ -137,7 +137,7 @@ watch(districtId, fetchSubDistrict);
" "
/> />
<q-select <q-select
:id="`${id ? `select-province-${id}` : 'select-province'}`" :id="`${id !== undefined ? `select-province-${id}` : 'select-province'}`"
:dense="dense" :dense="dense"
:readonly="readonly || sameWithEmployer" :readonly="readonly || sameWithEmployer"
:outlined="readonly ? false : outlined" :outlined="readonly ? false : outlined"
@ -166,7 +166,7 @@ watch(districtId, fetchSubDistrict);
/> />
<q-select <q-select
:id="`${id ? `select-district-${id}` : 'select-district'}`" :id="`${id !== undefined ? `select-district-${id}` : 'select-district'}`"
:dense="dense" :dense="dense"
:readonly="readonly || sameWithEmployer" :readonly="readonly || sameWithEmployer"
:outlined="readonly ? false : outlined" :outlined="readonly ? false : outlined"
@ -194,7 +194,7 @@ watch(districtId, fetchSubDistrict);
@update:model-value="subDistrictId = zipCode = null" @update:model-value="subDistrictId = zipCode = null"
/> />
<q-select <q-select
:id="`${id ? `select-sub-district-${id}` : 'select-sub-district'}`" :id="`${id !== undefined ? `select-sub-district-${id}` : 'select-sub-district'}`"
:dense="dense" :dense="dense"
:readonly="readonly || sameWithEmployer" :readonly="readonly || sameWithEmployer"
:outlined="readonly ? false : outlined" :outlined="readonly ? false : outlined"
@ -222,7 +222,7 @@ watch(districtId, fetchSubDistrict);
@update:model-value="(v: string) => selectSubDistrict(v)" @update:model-value="(v: string) => selectSubDistrict(v)"
/> />
<q-input <q-input
:for="`${id ? `input-zip-code-${id}` : 'input-zip-code'}`" :for="`${id !== undefined ? `input-zip-code-${id}` : 'input-zip-code'}`"
:dense="dense" :dense="dense"
:outlined="readonly ? false : outlined" :outlined="readonly ? false : outlined"
:borderless="readonly" :borderless="readonly"
@ -237,7 +237,7 @@ watch(districtId, fetchSubDistrict);
</div> </div>
<div class="col-9 row q-col-gutter-md"> <div class="col-9 row q-col-gutter-md">
<q-input <q-input
:for="`${id ? `input-address-en-${id}` : 'input-address-en'}`" :for="`${id !== undefined ? `input-address-en-${id}` : 'input-address-en'}`"
:dense="dense" :dense="dense"
:readonly="readonly || sameWithEmployer" :readonly="readonly || sameWithEmployer"
:outlined="readonly ? false : outlined" :outlined="readonly ? false : outlined"
@ -258,7 +258,7 @@ watch(districtId, fetchSubDistrict);
" "
/> />
<q-select <q-select
:id="`${id ? `select-province-en-${id}` : 'select-province-en'}`" :id="`${id !== undefined ? `select-province-en-${id}` : 'select-province-en'}`"
hide-bottom-space hide-bottom-space
:dense="dense" :dense="dense"
:readonly="readonly || sameWithEmployer" :readonly="readonly || sameWithEmployer"
@ -286,7 +286,7 @@ watch(districtId, fetchSubDistrict);
@update:model-value="districtId = subDistrictId = zipCode = null" @update:model-value="districtId = subDistrictId = zipCode = null"
/> />
<q-select <q-select
:id="`${id ? `select-district-en-${id}` : 'select-district-en'}`" :id="`${id !== undefined ? `select-district-en-${id}` : 'select-district-en'}`"
hide-bottom-space hide-bottom-space
:dense="dense" :dense="dense"
:readonly="readonly || sameWithEmployer" :readonly="readonly || sameWithEmployer"
@ -314,7 +314,7 @@ watch(districtId, fetchSubDistrict);
@update:model-value="subDistrictId = zipCode = null" @update:model-value="subDistrictId = zipCode = null"
/> />
<q-select <q-select
:id="`${id ? `select-sub-district-en-${id}` : 'select-sub-district-en'}`" :id="`${id !== undefined ? `select-sub-district-en-${id}` : 'select-sub-district-en'}`"
hide-bottom-space hide-bottom-space
:dense="dense" :dense="dense"
:readonly="readonly || sameWithEmployer" :readonly="readonly || sameWithEmployer"
@ -343,7 +343,7 @@ watch(districtId, fetchSubDistrict);
/> />
<q-input <q-input
hide-bottom-space hide-bottom-space
:for="`${id ? `input-zip-code-${id}` : 'input-zip-code'}`" :for="`${id !== undefined ? `input-zip-code-${id}` : 'input-zip-code'}`"
:dense="dense" :dense="dense"
:outlined="readonly ? false : outlined" :outlined="readonly ? false : outlined"
:borderless="readonly" :borderless="readonly"