โครงสร้างอัตรากำลัง => แก้ไขการ fetch โครางสร้าง ประวัติ
This commit is contained in:
parent
cd26f1a08a
commit
b331a79277
3 changed files with 100 additions and 5 deletions
|
|
@ -9,6 +9,7 @@ import { StructChart } from "structure-chart";
|
|||
import "structure-chart/structure-chart.css";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useOrganizational } from "@/modules/02_organizationalNew/store/organizational";
|
||||
import { log } from "console";
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const store = useOrganizational();
|
||||
|
|
@ -31,13 +32,12 @@ const savePDF = () => {
|
|||
const loader = ref<boolean>(false); // Loader
|
||||
|
||||
onMounted(async () => {
|
||||
// await fetchTreeRoot();
|
||||
const id =
|
||||
store.typeOrganizational === "current"
|
||||
? store.activeId
|
||||
: store.typeOrganizational === "draft"
|
||||
? store.draftId
|
||||
: "";
|
||||
: store.historyId;
|
||||
|
||||
id && (await fetchStructChart(id, "0"));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue