refactor: by virtual
This commit is contained in:
parent
fa1f2f61ef
commit
bcc27580b9
1 changed files with 22 additions and 6 deletions
|
|
@ -55,7 +55,7 @@ const typeBranchItem = [
|
||||||
{
|
{
|
||||||
icon: 'mdi-home-group',
|
icon: 'mdi-home-group',
|
||||||
text: 'Virtual Branch',
|
text: 'Virtual Branch',
|
||||||
color: '#03A9F4',
|
color: 'var(--blue-6)',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'mdi-home-group',
|
icon: 'mdi-home-group',
|
||||||
|
|
@ -1639,13 +1639,13 @@ watch(currentHq, () => {
|
||||||
|
|
||||||
<DrawerInfo
|
<DrawerInfo
|
||||||
ref="formDialogRef"
|
ref="formDialogRef"
|
||||||
v-model:drawerOpen="modalDrawer"
|
v-model:drawer-open="modalDrawer"
|
||||||
:category="changeTitle(formType, formTypeBranch)"
|
:category="changeTitle(formType, formTypeBranch)"
|
||||||
:title="$i18n.locale === 'eng' ? formData.nameEN : formData.name"
|
:title="$i18n.locale === 'eng' ? formData.nameEN : formData.name"
|
||||||
:addressSeparator="true"
|
:address-separator="true"
|
||||||
:undo="() => undo()"
|
:undo="() => undo()"
|
||||||
:isEdit="formType === 'edit'"
|
:is-edit="formType === 'edit'"
|
||||||
:editData="() => drawerEdit()"
|
:edit-data="() => drawerEdit()"
|
||||||
:submit="() => onSubmit()"
|
:submit="() => onSubmit()"
|
||||||
:delete-data="() => triggerDelete(currentEdit.id)"
|
:delete-data="() => triggerDelete(currentEdit.id)"
|
||||||
:close="
|
:close="
|
||||||
|
|
@ -1783,6 +1783,7 @@ watch(currentHq, () => {
|
||||||
>
|
>
|
||||||
<FormBranchInformation
|
<FormBranchInformation
|
||||||
id="info-information"
|
id="info-information"
|
||||||
|
v-model:virtual="formData.virtual"
|
||||||
v-model:abbreviation="formData.code"
|
v-model:abbreviation="formData.code"
|
||||||
v-model:code="formData.codeHeadOffice"
|
v-model:code="formData.codeHeadOffice"
|
||||||
v-model:code-sub-branch="currentEdit.code"
|
v-model:code-sub-branch="currentEdit.code"
|
||||||
|
|
@ -2047,7 +2048,7 @@ watch(currentHq, () => {
|
||||||
:title="$t('general.typeBranch')"
|
:title="$t('general.typeBranch')"
|
||||||
hide-footer
|
hide-footer
|
||||||
no-app-box
|
no-app-box
|
||||||
width="60vw"
|
width="40vw"
|
||||||
height="300px"
|
height="300px"
|
||||||
:close="() => (modelCreateTypeBranch = false)"
|
:close="() => (modelCreateTypeBranch = false)"
|
||||||
>
|
>
|
||||||
|
|
@ -2179,4 +2180,19 @@ watch(currentHq, () => {
|
||||||
* :deep(.q-icon.mdi-play) {
|
* :deep(.q-icon.mdi-play) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.badge-virtual {
|
||||||
|
--_badge-fg: var(--blue-8-hsl);
|
||||||
|
--_badge-bg: var(--blue-6-hsl);
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-branch {
|
||||||
|
--_badge-fg: var(--purple-8-hsl);
|
||||||
|
--_badge-bg: var(--purple-6-hsl);
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-color {
|
||||||
|
color: hsl(var(--_badge-fg));
|
||||||
|
background-color: hsla(var(--_badge-bg) / 0.1);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue