โครงสร้างอัตรากำลัง => fetch Tree
This commit is contained in:
parent
249e47e72b
commit
5a1dc5512c
2 changed files with 8 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ function onSubmit() {
|
||||||
store.draftId = res.data.result.id;
|
store.draftId = res.data.result.id;
|
||||||
store.statusView = "list";
|
store.statusView = "list";
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
// props.fetchActive?.();
|
props.fetchActive?.();
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
|
|
|
||||||
|
|
@ -209,6 +209,13 @@ watch(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => store.draftId,
|
||||||
|
() => {
|
||||||
|
store.draftId && fetchDataTree(store.draftId?.toString());
|
||||||
|
}
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue