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