fix: id missing

This commit is contained in:
Net 2024-07-30 14:17:47 +07:00
parent fba8992419
commit 2c9f7ba02d
10 changed files with 25 additions and 26 deletions

View file

@ -231,7 +231,7 @@ watch(districtId, fetchSubDistrict);
:options="provinceOptions"
:readonly="readonly || sameWithEmployer"
:hide-dropdown-icon="readonly || sameWithEmployer"
:id="`${prefixId}-${id !== undefined ? `select-province-${id}` : 'select-province'}`"
:for="`${prefixId}-${id !== undefined ? `select-province-${id}` : 'select-province'}`"
:rules="
disabledRule
? []
@ -273,7 +273,7 @@ watch(districtId, fetchSubDistrict);
:options="districtOptions"
:readonly="readonly || sameWithEmployer"
:hide-dropdown-icon="readonly || sameWithEmployer"
:id="`${prefixId}-${id !== undefined ? `select-district-${id}` : 'select-district'}`"
:for="`${prefixId}-${id !== undefined ? `select-district-${id}` : 'select-district'}`"
:rules="
disabledRule
? []
@ -314,7 +314,7 @@ watch(districtId, fetchSubDistrict);
:options="subDistrictOptions"
:readonly="readonly || sameWithEmployer"
:hide-dropdown-icon="readonly || sameWithEmployer"
:id="`${prefixId}-${id !== undefined ? `select-sub-district-${id}` : 'select-sub-district'}`"
:for="`${prefixId}-${id !== undefined ? `select-sub-district-${id}` : 'select-sub-district'}`"
:rules="
disabledRule
? []
@ -393,7 +393,7 @@ watch(districtId, fetchSubDistrict);
:options="provinceOptions"
:readonly="readonly || sameWithEmployer"
:hide-dropdown-icon="readonly || sameWithEmployer"
:id="`${prefixId}-${id !== undefined ? `select-province-en-${id}` : 'select-province-en'}`"
:for="`${prefixId}-${id !== undefined ? `select-province-en-${id}` : 'select-province-en'}`"
:rules="
disabledRule
? []
@ -434,7 +434,7 @@ watch(districtId, fetchSubDistrict);
:options="districtOptions"
:readonly="readonly || sameWithEmployer"
:hide-dropdown-icon="readonly || sameWithEmployer"
:id="`${prefixId}-${id !== undefined ? `select-district-en-${id}` : 'select-district-en'}`"
:for="`${prefixId}-${id !== undefined ? `select-district-en-${id}` : 'select-district-en'}`"
:rules="
disabledRule
? []
@ -475,7 +475,7 @@ watch(districtId, fetchSubDistrict);
:options="subDistrictOptions"
:readonly="readonly || sameWithEmployer"
:hide-dropdown-icon="readonly || sameWithEmployer"
:id="`${prefixId}-${id !== undefined ? `select-sub-district-en-${id}` : 'select-sub-district-en'}`"
:for="`${prefixId}-${id !== undefined ? `select-sub-district-en-${id}` : 'select-sub-district-en'}`"
:rules="
disabledRule
? []

View file

@ -85,7 +85,7 @@ onMounted(async () => {
hide-selected
hide-bottom-space
v-model="hqId"
id="select-hq-id"
for="select-hq-id"
input-debounce="0"
option-label="label"
option-value="value"
@ -118,7 +118,7 @@ onMounted(async () => {
hide-selected
hide-bottom-space
v-model="brId"
id="select-br-id"
for="select-br-id"
input-debounce="0"
option-label="label"
option-value="value"
@ -172,7 +172,7 @@ onMounted(async () => {
option-value="value"
option-label="label"
lazy-rules="ondemand"
id="select-user-type"
for="select-user-type"
:dense="dense"
:readonly="readonly"
:hide-dropdown-icon="readonly"
@ -203,7 +203,7 @@ onMounted(async () => {
option-label="label"
option-value="value"
lazy-rules="ondemand"
id="select-user-role"
for="select-user-role"
:dense="dense"
v-model="userRole"
:readonly="readonly"

View file

@ -149,7 +149,6 @@ defineProps<{
:readonly="readonly"
:options="genderOptions"
:hide-dropdown-icon="readonly"
:id="`${prefixId}-select-gender`"
:for="`${prefixId}-select-gender`"
:label="$t('formDialogInputGender')"
@filter="genderFilter"
@ -261,7 +260,6 @@ defineProps<{
:readonly="readonly"
:options="genderOptions"
:hide-dropdown-icon="readonly"
:id="`${prefixId}-select-gender`"
:for="`${prefixId}-select-gender`"
:label="$t('formDialogInputGender')"
:rules="[
@ -298,7 +296,7 @@ defineProps<{
:readonly="readonly"
:options="nationalityOptions"
:hide-dropdown-icon="readonly"
:id="`${prefixId}-select-nationality`"
:for="`${prefixId}-select-nationality`"
:label="$t('formDialogInputNationality')"
:rules="[
(val: string) =>

View file

@ -84,6 +84,7 @@ const employeeTab = defineModel<string>('employeeTab');
dense
outlined
separator
prefix-id="default"
:employee="employee"
:readonly="readonly"
:disabledRule="disabledRule"