refactor: handle mode
This commit is contained in:
parent
d90d392cfc
commit
0090190bcd
1 changed files with 3 additions and 2 deletions
|
|
@ -422,7 +422,6 @@ async function fetchBranchById(id: string) {
|
||||||
const resAttachment = await branchStore.fetchListAttachment(res.id);
|
const resAttachment = await branchStore.fetchListAttachment(res.id);
|
||||||
|
|
||||||
if (resAttachment) {
|
if (resAttachment) {
|
||||||
|
|
||||||
currentAttachmentList.value = await Promise.all(
|
currentAttachmentList.value = await Promise.all(
|
||||||
resAttachment.map(async (v) => {
|
resAttachment.map(async (v) => {
|
||||||
return {
|
return {
|
||||||
|
|
@ -782,7 +781,6 @@ async function onSubmit(submitSelectedItem?: boolean) {
|
||||||
id: res.id,
|
id: res.id,
|
||||||
code: res.code,
|
code: res.code,
|
||||||
};
|
};
|
||||||
formType.value = 'view';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await fetchList({ tree: true, pageSize: 99999, withHead: true });
|
await fetchList({ tree: true, pageSize: 99999, withHead: true });
|
||||||
|
|
@ -830,6 +828,8 @@ async function onSubmit(submitSelectedItem?: boolean) {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
formType.value = 'view';
|
||||||
}
|
}
|
||||||
|
|
||||||
const _stats = await branchStore.stats();
|
const _stats = await branchStore.stats();
|
||||||
|
|
@ -1702,6 +1702,7 @@ watch(currentHq, () => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- add Branch -->
|
||||||
<DialogForm
|
<DialogForm
|
||||||
hide-footer
|
hide-footer
|
||||||
ref="formDialogRef"
|
ref="formDialogRef"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue