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">
|
<div class="row items-center justify-center" style="flex-grow: 1">
|
||||||
<AddButton label="branchAdd" @trigger="() => {}" />
|
<AddButton
|
||||||
|
label="branchAdd"
|
||||||
|
@trigger="() => triggerCreate('headOffice')"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
|
@ -524,6 +527,21 @@ watch(locale, () => {
|
||||||
<q-menu class="bordered">
|
<q-menu class="bordered">
|
||||||
<q-list v-close-popup>
|
<q-list v-close-popup>
|
||||||
<q-item
|
<q-item
|
||||||
|
@click="
|
||||||
|
if (node.isHeadOffice) {
|
||||||
|
triggerView(
|
||||||
|
node.id,
|
||||||
|
'headOffice',
|
||||||
|
node.branchLabelCode,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
triggerView(
|
||||||
|
node.id,
|
||||||
|
'subBranch',
|
||||||
|
node.branchLabelCode,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
"
|
||||||
clickable
|
clickable
|
||||||
dense
|
dense
|
||||||
class="row q-py-sm"
|
class="row q-py-sm"
|
||||||
|
|
@ -807,7 +825,6 @@ watch(locale, () => {
|
||||||
:inactive="item.status === 'INACTIVE'"
|
:inactive="item.status === 'INACTIVE'"
|
||||||
@view-detail="
|
@view-detail="
|
||||||
(b) => {
|
(b) => {
|
||||||
console.log(b);
|
|
||||||
if (b.hq) {
|
if (b.hq) {
|
||||||
triggerView(b.id, 'headOffice', b.branchLabelCode);
|
triggerView(b.id, 'headOffice', b.branchLabelCode);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue