refactor(02): add id

This commit is contained in:
Net 2024-08-19 11:03:47 +07:00
parent b2f2fbedbb
commit 12fd2ac2b3

View file

@ -1657,7 +1657,7 @@ watch(
style="height: 100%; max-height: 100; overflow-y: auto" style="height: 100%; max-height: 100; overflow-y: auto"
> >
<div <div
class="q-pt-sm row" class="surface-1 rounded q-pt-sm row"
style="position: absolute; z-index: 999; right: 4%" style="position: absolute; z-index: 999; right: 4%"
> >
<UndoButton <UndoButton
@ -1712,6 +1712,7 @@ watch(
:title="'formDialogTitleInformation'" :title="'formDialogTitleInformation'"
:readonly="!infoDrawerEdit" :readonly="!infoDrawerEdit"
:usernameReadonly="isEdit" :usernameReadonly="isEdit"
class="q-mb-xl"
/> />
<FormPerson <FormPerson
@ -1734,6 +1735,7 @@ watch(
outlined outlined
separator separator
:readonly="!infoDrawerEdit" :readonly="!infoDrawerEdit"
class="q-mb-xl"
/> />
<AddressForm <AddressForm
@ -1747,6 +1749,7 @@ watch(
:readonly="!infoDrawerEdit" :readonly="!infoDrawerEdit"
prefix-id="drawer-info-personnel" prefix-id="drawer-info-personnel"
dense dense
class="q-mb-xl"
/> />
<FormByType <FormByType
dense dense
@ -1768,6 +1771,7 @@ watch(
v-model:agencyFile="agencyFile" v-model:agencyFile="agencyFile"
v-model:agencyFileList="agencyFileList" v-model:agencyFileList="agencyFileList"
v-model:userId="userId" v-model:userId="userId"
class="q-mb-xl"
/> />
</div> </div>
</div> </div>
@ -1835,22 +1839,22 @@ watch(
[ [
{ {
name: $t('formDialogTitleInformation'), name: $t('formDialogTitleInformation'),
anchor: 'form-information', anchor: 'dialog-form-information',
}, },
{ {
name: $t('formDialogTitlePersonal'), name: $t('formDialogTitlePersonal'),
anchor: 'form-personal', anchor: 'dialog-form-personal',
}, },
{ {
name: $t('formDialogTitleAddressPersonnel'), name: $t('formDialogTitleAddressPersonnel'),
anchor: 'form-address', anchor: 'dialog-form-address',
}, },
].concat( ].concat(
!!formData.userType !!formData.userType
? [ ? [
{ {
name: $t('formDialogTitleByType'), name: $t('formDialogTitleByType'),
anchor: 'info-work', anchor: 'dialog-info-work',
}, },
] ]
: [], : [],
@ -1865,15 +1869,16 @@ watch(
/> />
</div> </div>
</div> </div>
<div class="col-10 q-pa-md q-gutter-y-xl"> <div class="col-10 q-pa-md">
<div <div
class="q-pt-sm row" class="surface-1 rounded q-pt-sm row"
style="position: absolute; z-index: 999; right: 4%" style="position: absolute; z-index: 999; right: 4%"
> >
<SaveButton id="btn-info-basic-save" icon-only type="submit" /> <SaveButton id="btn-info-basic-save" icon-only type="submit" />
</div> </div>
<FormInformation <FormInformation
id="dialog-form-information"
dense dense
outlined outlined
separator separator
@ -1885,8 +1890,10 @@ watch(
v-model:userRole="formData.userRole" v-model:userRole="formData.userRole"
v-model:username="formData.username" v-model:username="formData.username"
v-model:userCode="userCode" v-model:userCode="userCode"
class="q-mb-xl"
/> />
<FormPerson <FormPerson
id="dialog-form-personal"
prefix-id="form-dialog-personnel" prefix-id="form-dialog-personnel"
dense dense
outlined outlined
@ -1900,9 +1907,10 @@ watch(
v-model:email="formData.email" v-model:email="formData.email"
v-model:gender="formData.gender" v-model:gender="formData.gender"
v-model:birthDate="formData.birthDate" v-model:birthDate="formData.birthDate"
class="q-mb-xl"
/> />
<AddressForm <AddressForm
id="form-address" id="dialog-form-address"
v-model:address="formData.address" v-model:address="formData.address"
v-model:addressEN="formData.addressEN" v-model:addressEN="formData.addressEN"
v-model:provinceId="formData.provinceId" v-model:provinceId="formData.provinceId"
@ -1911,8 +1919,10 @@ watch(
v-model:zipCode="formData.zipCode" v-model:zipCode="formData.zipCode"
prefix-id="drawer-info-personnel" prefix-id="drawer-info-personnel"
dense dense
class="q-mb-xl"
/> />
<FormByType <FormByType
id="dialog-form-work"
dense dense
outlined outlined
separator separator
@ -1928,6 +1938,7 @@ watch(
v-model:checkpoint="formData.checkpoint" v-model:checkpoint="formData.checkpoint"
v-model:checkpointEN="formData.checkpointEN" v-model:checkpointEN="formData.checkpointEN"
v-model:agencyFile="agencyFile" v-model:agencyFile="agencyFile"
class="q-mb-xl"
/> />
</div> </div>
</div> </div>