diff --git a/src/modules/15_development/components/ProjectDetail.vue b/src/modules/15_development/components/ProjectDetail.vue index 2d49fca57..b4bc80565 100644 --- a/src/modules/15_development/components/ProjectDetail.vue +++ b/src/modules/15_development/components/ProjectDetail.vue @@ -66,6 +66,38 @@ const formData = reactive({ developmentProjectTechniqueActuals: [], }); +const nodes = ref([ + { + orgTreeName: " แผนพัฒนากรุงเทพมหานคร ระยะ 20 ปี ระยะที่ 3", + level: "0", + children: [ + { + orgTreeName: "ยุทธศาสตร์ที่ 1", + level: "1", + children: [ + { + orgTreeName: "ยุทธศาสตร์ที่ 2", + level: "2", + children: [ + { + orgTreeName: "ยุทธศาสตร์ที่ 3", + level: "3", + }, + ], + }, + ], + }, + ], + }, +]); +const filter = ref(""); +const filter2 = ref(""); +const notFound = ref("ไม่พบข้อมูลที่ค้นหา"); +const noData = ref("ไม่มีข้อมูล"); +const expanded = ref>([]); +const expanded2 = ref>([]); +const nodeId = ref(""); +const nodeId2 = ref(""); async function fetchData() { showLoader(); await http @@ -115,6 +147,14 @@ async function onSubmit() { }); } +function updateSelected(data: any, type: string) { + if (type === "1") { + nodeId.value = data.orgTreeName; + } else if (type === "2") { + nodeId2.value = data.orgTreeName; + } +} + onMounted(() => { fetchData(); }); @@ -311,8 +351,85 @@ onMounted(() => {
-
เลือกยุทธศาสตร์ 1
-
เลือกยุทธศาสตร์ 2
+
+ + + + + + +
+
+ + + + + + +