fix
This commit is contained in:
parent
671c7103ab
commit
d5f0b562f9
2 changed files with 4 additions and 8 deletions
|
|
@ -247,7 +247,6 @@ function close() {
|
|||
|
||||
async function getDataTable(id: string, level: number = 0) {
|
||||
showLoader();
|
||||
|
||||
const body = {
|
||||
node: level,
|
||||
nodeId: id,
|
||||
|
|
@ -343,7 +342,7 @@ function updateSelected(data: DataTree) {
|
|||
|
||||
/** ดึงข้อมูล active */
|
||||
async function fetchTree() {
|
||||
const dataTree = await fetchStructureTree(route.meta.Key as string, true);
|
||||
const dataTree = await fetchStructureTree(route.meta.Key as string);
|
||||
if (dataTree) {
|
||||
formActive.activeId = storeTree.activeId;
|
||||
nodes.value = dataTree;
|
||||
|
|
@ -512,8 +511,8 @@ function onSubmit() {
|
|||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
fetchTree();
|
||||
onMounted(async () => {
|
||||
await fetchTree();
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -10,10 +10,7 @@ import http from "@/plugins/http";
|
|||
import config from "@/app.config";
|
||||
|
||||
/** importType*/
|
||||
import type {
|
||||
listAppointType,
|
||||
resData,
|
||||
} from "@/modules/05_placement/interface/response/AppointMent";
|
||||
import type { resData } from "@/modules/05_placement/interface/response/AppointMent";
|
||||
import type { OpType } from "@/modules/05_placement/interface/response/Main";
|
||||
import type { QTableProps } from "quasar";
|
||||
import type { PersonData } from "@/modules/05_placement/interface/index/Main";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue