refactor: add prefix id
This commit is contained in:
parent
732c81ed57
commit
c6190bbedc
8 changed files with 19 additions and 6 deletions
|
|
@ -13,6 +13,7 @@ defineProps<{
|
||||||
toggleTitle?: string;
|
toggleTitle?: string;
|
||||||
fallbackImg?: string;
|
fallbackImg?: string;
|
||||||
fallbackCover?: string;
|
fallbackCover?: string;
|
||||||
|
prefix: string;
|
||||||
|
|
||||||
hideFade?: boolean;
|
hideFade?: boolean;
|
||||||
hideActive?: boolean;
|
hideActive?: boolean;
|
||||||
|
|
@ -258,7 +259,7 @@ const smallBanner = ref(false);
|
||||||
>
|
>
|
||||||
<q-tab
|
<q-tab
|
||||||
v-for="tab in tabsList"
|
v-for="tab in tabsList"
|
||||||
:id="`tab-${tab.label}`"
|
:id="`${prefix}-tab-${tab.label}`"
|
||||||
v-bind:key="tab.name"
|
v-bind:key="tab.name"
|
||||||
class="content-tab text-capitalize"
|
class="content-tab text-capitalize"
|
||||||
:name="tab.name"
|
:name="tab.name"
|
||||||
|
|
|
||||||
|
|
@ -1733,6 +1733,7 @@ watch(currentHq, () => {
|
||||||
? `${formData.code}`
|
? `${formData.code}`
|
||||||
: `${formData.code?.slice(0, -5)}${(formLastSubBranch + 1).toString().padStart(5, '0')}`
|
: `${formData.code?.slice(0, -5)}${(formLastSubBranch + 1).toString().padStart(5, '0')}`
|
||||||
"
|
"
|
||||||
|
:prefix="formData.name"
|
||||||
v-model:toggle-status="formData.status"
|
v-model:toggle-status="formData.status"
|
||||||
v-model:cover-url="imageUrl"
|
v-model:cover-url="imageUrl"
|
||||||
:hide-fade="imageUrl === '' || imageUrl === null"
|
:hide-fade="imageUrl === '' || imageUrl === null"
|
||||||
|
|
|
||||||
|
|
@ -1470,6 +1470,7 @@ watch(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
:prefix="currentUser.firstName"
|
||||||
:active="formData.status !== 'INACTIVE'"
|
:active="formData.status !== 'INACTIVE'"
|
||||||
useToggle
|
useToggle
|
||||||
color="white"
|
color="white"
|
||||||
|
|
|
||||||
|
|
@ -1936,6 +1936,7 @@ const emptyCreateDialog = ref(false);
|
||||||
v-if="customerFormData.customerBranch !== undefined"
|
v-if="customerFormData.customerBranch !== undefined"
|
||||||
active
|
active
|
||||||
hide-fade
|
hide-fade
|
||||||
|
prefix="dialog"
|
||||||
:fallback-cover="`/images/customer-${customerFormData.customerType}-banner-bg.jpg`"
|
:fallback-cover="`/images/customer-${customerFormData.customerType}-banner-bg.jpg`"
|
||||||
:img="
|
:img="
|
||||||
customerFormState.customerImageUrl ||
|
customerFormState.customerImageUrl ||
|
||||||
|
|
@ -2330,6 +2331,7 @@ const emptyCreateDialog = ref(false);
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
active
|
active
|
||||||
useToggle
|
useToggle
|
||||||
|
prefix="dialog"
|
||||||
color="white"
|
color="white"
|
||||||
icon="mdi-account-plus-outline"
|
icon="mdi-account-plus-outline"
|
||||||
:bg-color="
|
:bg-color="
|
||||||
|
|
@ -2440,11 +2442,6 @@ const emptyCreateDialog = ref(false);
|
||||||
anchor: 'drawer-info-file-upload',
|
anchor: 'drawer-info-file-upload',
|
||||||
tab: 'personalInfo',
|
tab: 'personalInfo',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: $t('customerEmployee.form.group.personalInfo'),
|
|
||||||
anchor: 'drawer-form-personal',
|
|
||||||
tab: 'personalInfo',
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name: $t('customerEmployee.form.group.passport'),
|
name: $t('customerEmployee.form.group.passport'),
|
||||||
|
|
@ -3813,6 +3810,7 @@ const emptyCreateDialog = ref(false);
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
v-if="customerFormData.customerBranch !== undefined"
|
v-if="customerFormData.customerBranch !== undefined"
|
||||||
|
:prefix="customerFormData.registeredBranchId"
|
||||||
:active="customerFormData.status !== 'INACTIVE'"
|
:active="customerFormData.status !== 'INACTIVE'"
|
||||||
hide-fade
|
hide-fade
|
||||||
use-toggle
|
use-toggle
|
||||||
|
|
@ -4213,6 +4211,7 @@ const emptyCreateDialog = ref(false);
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
:prefix="employeeFormState.currentEmployee.firstName"
|
||||||
hideFade
|
hideFade
|
||||||
@view="
|
@view="
|
||||||
() => {
|
() => {
|
||||||
|
|
|
||||||
|
|
@ -3016,6 +3016,7 @@ watch(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
prefix="dialog"
|
||||||
readonly
|
readonly
|
||||||
no-image-action
|
no-image-action
|
||||||
active
|
active
|
||||||
|
|
@ -3165,6 +3166,7 @@ watch(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
:prefix="formDataGroup.name"
|
||||||
no-image-action
|
no-image-action
|
||||||
:active="currentStatusGroupType !== 'INACTIVE'"
|
:active="currentStatusGroupType !== 'INACTIVE'"
|
||||||
hide-fade
|
hide-fade
|
||||||
|
|
@ -3492,6 +3494,7 @@ watch(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
prefix="dialog"
|
||||||
hide-fade
|
hide-fade
|
||||||
use-toggle
|
use-toggle
|
||||||
hide-active
|
hide-active
|
||||||
|
|
@ -3639,6 +3642,7 @@ watch(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
prefix="dialog"
|
||||||
hideFade
|
hideFade
|
||||||
:use-toggle="actionDisplay"
|
:use-toggle="actionDisplay"
|
||||||
:active="formDataProduct.status !== 'INACTIVE'"
|
:active="formDataProduct.status !== 'INACTIVE'"
|
||||||
|
|
@ -3842,6 +3846,7 @@ watch(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
prefix="dialog"
|
||||||
hide-fade
|
hide-fade
|
||||||
use-toggle
|
use-toggle
|
||||||
hide-active
|
hide-active
|
||||||
|
|
@ -4176,6 +4181,7 @@ watch(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
prefix="dialog"
|
||||||
hide-fade
|
hide-fade
|
||||||
:use-toggle="actionDisplay"
|
:use-toggle="actionDisplay"
|
||||||
:title="formDataProductService.name"
|
:title="formDataProductService.name"
|
||||||
|
|
|
||||||
|
|
@ -753,6 +753,7 @@ async function storeDataLocal(id: string) {
|
||||||
>
|
>
|
||||||
<header class="q-mx-lg q-mt-lg">
|
<header class="q-mx-lg q-mt-lg">
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
prefix="dialog"
|
||||||
img="/images/quotation-bg-avatar.png"
|
img="/images/quotation-bg-avatar.png"
|
||||||
fallback-cover="/images/quotation-banner.png"
|
fallback-cover="/images/quotation-banner.png"
|
||||||
bg-color="var(--surface-1)"
|
bg-color="var(--surface-1)"
|
||||||
|
|
@ -856,6 +857,7 @@ async function storeDataLocal(id: string) {
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
prefix="dialog"
|
||||||
v-if="customerFormData.customerBranch !== undefined"
|
v-if="customerFormData.customerBranch !== undefined"
|
||||||
active
|
active
|
||||||
hide-fade
|
hide-fade
|
||||||
|
|
|
||||||
|
|
@ -2080,6 +2080,7 @@ async function getWorkerFromCriteria(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
prefix="dialog"
|
||||||
active
|
active
|
||||||
useToggle
|
useToggle
|
||||||
color="white"
|
color="white"
|
||||||
|
|
|
||||||
|
|
@ -197,6 +197,7 @@ watch(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
prefix="dialog"
|
||||||
active
|
active
|
||||||
hide-fade
|
hide-fade
|
||||||
hide-active
|
hide-active
|
||||||
|
|
@ -311,6 +312,7 @@ watch(
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<ProfileBanner
|
<ProfileBanner
|
||||||
|
:prefix="data.name"
|
||||||
active
|
active
|
||||||
hide-fade
|
hide-fade
|
||||||
hide-active
|
hide-active
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue