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 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 = []; + }, + `ยืนยันการส่งไปออกคำสั่ง`, + `ต้องการยืนยันการส่งไปออกคำสั่งหรือไม่` + ); + } } /**