From 97a2b1e038d4efc58230542685ab220e8552df94 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 11 Apr 2024 17:32:49 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=20=3D>=20=20=E0=B8=A5=E0=B8=B1=E0=B8=81?= =?UTF-8?q?=E0=B8=A9=E0=B8=93=E0=B8=B0=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ProjectDetail.vue | 121 +++++++++++++++++- 1 file changed, 119 insertions(+), 2 deletions(-) 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
+
+ + + + + + +
+
+ + + + + + +