fix: กดสร้างไม่ได้
This commit is contained in:
parent
d1cea85891
commit
1ad0c22131
1 changed files with 19 additions and 2 deletions
|
|
@ -429,7 +429,10 @@ watch(locale, () => {
|
|||
/>
|
||||
|
||||
<div class="row items-center justify-center" style="flex-grow: 1">
|
||||
<AddButton label="branchAdd" @trigger="() => {}" />
|
||||
<AddButton
|
||||
label="branchAdd"
|
||||
@trigger="() => triggerCreate('headOffice')"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
|
|
@ -524,6 +527,21 @@ watch(locale, () => {
|
|||
<q-menu class="bordered">
|
||||
<q-list v-close-popup>
|
||||
<q-item
|
||||
@click="
|
||||
if (node.isHeadOffice) {
|
||||
triggerView(
|
||||
node.id,
|
||||
'headOffice',
|
||||
node.branchLabelCode,
|
||||
);
|
||||
} else {
|
||||
triggerView(
|
||||
node.id,
|
||||
'subBranch',
|
||||
node.branchLabelCode,
|
||||
);
|
||||
}
|
||||
"
|
||||
clickable
|
||||
dense
|
||||
class="row q-py-sm"
|
||||
|
|
@ -807,7 +825,6 @@ watch(locale, () => {
|
|||
:inactive="item.status === 'INACTIVE'"
|
||||
@view-detail="
|
||||
(b) => {
|
||||
console.log(b);
|
||||
if (b.hq) {
|
||||
triggerView(b.id, 'headOffice', b.branchLabelCode);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue