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 }}
|
||||
</q-td>
|
||||
{{ console.log(props.row) }}
|
||||
<q-td>
|
||||
<KebabAction
|
||||
:status="props.row.status"
|
||||
|
|
@ -1721,7 +1720,12 @@ watch(currentHq, () => {
|
|||
@update:toggle-status="
|
||||
async (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 });
|
||||
}
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue