refactor: header can't edit branch is INACTIVE
This commit is contained in:
parent
e72e2497de
commit
426a486ef9
1 changed files with 6 additions and 2 deletions
|
|
@ -1276,7 +1276,6 @@ watch(currentHq, () => {
|
||||||
>
|
>
|
||||||
{{ props.row.address }}
|
{{ props.row.address }}
|
||||||
</q-td>
|
</q-td>
|
||||||
{{ console.log(props.row) }}
|
|
||||||
<q-td>
|
<q-td>
|
||||||
<KebabAction
|
<KebabAction
|
||||||
:status="props.row.status"
|
:status="props.row.status"
|
||||||
|
|
@ -1721,7 +1720,12 @@ watch(currentHq, () => {
|
||||||
@update:toggle-status="
|
@update:toggle-status="
|
||||||
async (v) => {
|
async (v) => {
|
||||||
const res = await triggerChangeStatus(currentId, v);
|
const res = await triggerChangeStatus(currentId, v);
|
||||||
if (res) formData.status = res.status;
|
if (res) {
|
||||||
|
undo();
|
||||||
|
formData.status = res.status;
|
||||||
|
formType = 'view';
|
||||||
|
}
|
||||||
|
|
||||||
await branchStore.fetchList({ pageSize: 99999 });
|
await branchStore.fetchList({ pageSize: 99999 });
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue