From 19296e5543ff90d157c55638757fe101ef3ab378 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 9 Jan 2024 14:21:17 +0700 Subject: [PATCH 1/2] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B9=80=E0=B9=80=E0=B8=88=E0=B9=89=E0=B8=87=E0=B9=80?= =?UTF-8?q?=E0=B8=95=E0=B8=B7=E0=B8=AD=E0=B8=99=E0=B9=80=E0=B8=A1=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B9=84=E0=B8=94?= =?UTF-8?q?=E0=B9=89=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B9=80=E0=B8=A0=E0=B8=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../7_ListSuspend/DialogSendToCommand.vue | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue b/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue index 31757ab8c..dc6aa74df 100644 --- a/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue +++ b/src/modules/11_discipline/components/7_ListSuspend/DialogSendToCommand.vue @@ -14,7 +14,7 @@ import config from "@/app.config"; const $q = useQuasar(); const selected = ref([]); const mixin = useCounterMixin(); -const { showLoader, success, messageError, dialogConfirm, hideLoader } = mixin; +const { showLoader, success, messageError, dialogConfirm, hideLoader,dialogMessageNotify } = mixin; const emit = defineEmits([ "update:filterKeyword2", "update:selected", @@ -110,17 +110,21 @@ const optionsType = ref<[]>([]); //popup ยืนยันส่งัว function saveOrder() { - dialogConfirm( - $q, - async () => { - await emit("returnPerson", selected.value, type.value); - props.closeModal?.(); - type.value = ""; - selected.value = []; - }, - `ยืนยันการส่งไปออกคำสั่ง`, - `ต้องการยืนยันการส่งไปออกคำสั่งหรือไม่` - ); + if (type.value === "") { + dialogMessageNotify($q,'กรุณาเลือกประเภทคำสั่ง') + } else { + dialogConfirm( + $q, + async () => { + await emit("returnPerson", selected.value, type.value); + props.closeModal?.(); + type.value = ""; + selected.value = []; + }, + `ยืนยันการส่งไปออกคำสั่ง`, + `ต้องการยืนยันการส่งไปออกคำสั่งหรือไม่` + ); + } } /** From 79cf1d0f715b056cd15472a627e61a098a6dafe5 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Tue, 9 Jan 2024 15:07:36 +0700 Subject: [PATCH 2/2] research nodes tree --- src/modules/02_organizational/router.ts | 13 + .../02_organizational/views/TreeTest.vue | 370 ++++++++++++++++++ 2 files changed, 383 insertions(+) create mode 100644 src/modules/02_organizational/views/TreeTest.vue diff --git a/src/modules/02_organizational/router.ts b/src/modules/02_organizational/router.ts index cec042ef6..add08831a 100644 --- a/src/modules/02_organizational/router.ts +++ b/src/modules/02_organizational/router.ts @@ -21,6 +21,9 @@ const ManageReport2Add = () => const ManageReport2History = () => import("@/modules/02_organizational/views/ManageReport2History.vue"); +const TreeTestPage = () => + import("@/modules/02_organizational/views/TreeTest.vue"); + export default [ { path: "/organizational/mapping", @@ -122,4 +125,14 @@ export default [ Role: "organization", }, }, + { + path: "/tree-test", + name: "treeTest", + component: TreeTestPage, + meta: { + Auth: true, + Key: [14], + Role: "organization", + }, + }, ]; diff --git a/src/modules/02_organizational/views/TreeTest.vue b/src/modules/02_organizational/views/TreeTest.vue new file mode 100644 index 000000000..58e446b5f --- /dev/null +++ b/src/modules/02_organizational/views/TreeTest.vue @@ -0,0 +1,370 @@ + + + + + \ No newline at end of file