refactor: edit name defineModel

This commit is contained in:
Thanaphon Frappet 2024-10-02 14:04:23 +07:00
parent 882b5fb753
commit d7a99d2ee2
13 changed files with 241 additions and 269 deletions

View file

@ -1507,7 +1507,7 @@ watch(currentHq, () => {
}
"
@delete="triggerDelete(props.row.id)"
@changeStatus="
@change-status="
async () => {
const res = await triggerChangeStatus(
props.row.id,
@ -1692,9 +1692,9 @@ watch(currentHq, () => {
>
<ProfileBanner
active
useToggle
use-toggle
:title="formData.name"
:toggleTitle="$t('status.title')"
:toggle-title="$t('status.title')"
:caption="
formTypeBranch === 'headOffice'
? `${formData.code}`
@ -1702,7 +1702,7 @@ watch(currentHq, () => {
"
v-model:toggle-status="formData.status"
v-model:cover-url="imageUrl"
:hideFade="imageUrl === '' || imageUrl === null"
:hide-fade="imageUrl === '' || imageUrl === null"
:img="imageUrl || null"
icon="mdi-office-building-outline"
:color="`hsla(var(${
@ -1862,13 +1862,13 @@ watch(currentHq, () => {
>
<FormBranchInformation
id="form-information"
v-model:branchCount="formLastSubBranch"
v-model:branch-count="formLastSubBranch"
v-model:abbreviation="formData.code"
v-model:code="formData.codeHeadOffice"
v-model:code-sub-branch="currentEdit.code"
v-model:taxNo="formData.taxNo"
v-model:tax-no="formData.taxNo"
v-model:name="formData.name"
v-model:nameEN="formData.nameEN"
v-model:name-en="formData.nameEN"
v-model:type-branch="formTypeBranch"
v-model:permit-no="formData.permitNo"
v-model:permit-issue-date="formData.permitIssueDate"
@ -2219,9 +2219,9 @@ watch(currentHq, () => {
v-model:abbreviation="formData.code"
v-model:code="formData.codeHeadOffice"
v-model:code-sub-branch="currentEdit.code"
v-model:taxNo="formData.taxNo"
v-model:tax-no="formData.taxNo"
v-model:name="formData.name"
v-model:nameEN="formData.nameEN"
v-model:name-en="formData.nameEN"
v-model:type-branch="formTypeBranch"
v-model:permit-no="formData.permitNo"
v-model:permit-issue-date="formData.permitIssueDate"
@ -2355,7 +2355,7 @@ watch(currentHq, () => {
}
}
"
@deleteFile="
@delete-file="
async (filename) => {
const res = await branchStore.deleteByIdAttachment(
currentId,
@ -2523,7 +2523,7 @@ watch(currentHq, () => {
<QrCodeUploadDialog
ref="refQrCodeUpload"
v-model:dialogState="qrCodeDialog"
v-model:dialog-state="qrCodeDialog"
v-model:file="statusQrCodeFile as File"
v-model:image-url="statusQrCodeUrl"
@save="
@ -2552,13 +2552,13 @@ watch(currentHq, () => {
<ImageUploadDialog
ref="refImageUpload"
v-model:dialogState="imageDialog"
v-model:dialog-state="imageDialog"
v-model:file="profileFile"
v-model:image-url="imageUrl"
v-model:data-list="imageList"
v-model:on-create-data-list="onCreateImageList"
:on-create="modal"
:hiddenFooter="!isImageEdit"
:hidden-footer="!isImageEdit"
@add-image="
async (v) => {
if (!v) return;