From 6419d09f8b8b319338f9b1af3456a749d5546586 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Mon, 10 Jun 2024 18:00:18 +0700 Subject: [PATCH] =?UTF-8?q?UI=20=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84=E0=B8=B3?= =?UTF-8?q?=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B8=A2=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=A2=E0=B8=AA=E0=B8=B1=E0=B8=9A=E0=B9=80=E0=B8=9B=E0=B8=A5?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B8=A2=E0=B8=99=E0=B8=95=E0=B8=B3=E0=B9=81?= =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChangePosition/DialogChange.vue | 318 ++++++++++++++++++ .../components/ChangePosition/DialogRound.vue | 80 +++++ .../components/ChangePosition/Main.vue | 27 +- .../ChangePosition/PersonalList.vue | 9 +- .../05_placement/interface/index/Main.ts | 14 + 5 files changed, 444 insertions(+), 4 deletions(-) create mode 100644 src/modules/05_placement/components/ChangePosition/DialogChange.vue create mode 100644 src/modules/05_placement/components/ChangePosition/DialogRound.vue diff --git a/src/modules/05_placement/components/ChangePosition/DialogChange.vue b/src/modules/05_placement/components/ChangePosition/DialogChange.vue new file mode 100644 index 000000000..c53634b0e --- /dev/null +++ b/src/modules/05_placement/components/ChangePosition/DialogChange.vue @@ -0,0 +1,318 @@ + + diff --git a/src/modules/05_placement/components/ChangePosition/DialogRound.vue b/src/modules/05_placement/components/ChangePosition/DialogRound.vue new file mode 100644 index 000000000..91089030e --- /dev/null +++ b/src/modules/05_placement/components/ChangePosition/DialogRound.vue @@ -0,0 +1,80 @@ + + + diff --git a/src/modules/05_placement/components/ChangePosition/Main.vue b/src/modules/05_placement/components/ChangePosition/Main.vue index b12c08ce6..c484fdc82 100644 --- a/src/modules/05_placement/components/ChangePosition/Main.vue +++ b/src/modules/05_placement/components/ChangePosition/Main.vue @@ -7,14 +7,20 @@ import { useCounterMixin } from "@/stores/mixin"; import { useTransferDataStore } from "@/modules/05_placement/store"; import SendToCommand from "@/modules/05_placement/components/ChangePosition/SendToCommand.vue"; +import DialogRound from "@/modules/05_placement/components/ChangePosition/DialogRound.vue"; import type { listAppointType, resData, } from "@/modules/05_placement/interface/response/AppointMent"; import type { OpType } from "@/modules/05_placement/interface/response/Main"; + import http from "@/plugins/http"; import config from "@/app.config"; +const round = ref(''); +const idRound = ref(''); +const editCheck = ref(false); +const modalRound = ref(false); const $q = useQuasar(); const modal = ref(false); const storeFn = useTransferDataStore(); @@ -139,10 +145,17 @@ const fecthLists = async () => { }; // dialog สำหรับแก้ไข -const openModaledit = (data: any) => {}; +const openModaledit = (data: any) => { + modalRound.value = true; + editCheck.value = true; + round.value = data.name + idRound.value = data.id +}; // ฟังก์ชั่นสำหรับเพิ่มรอบการย้ายสับเปลี่ยนตำแหน่ง -function addRound() {} +function addRound() { + modalRound.value = true; +} //ลบข้อมูล const clickDelete = (id: string) => { @@ -373,6 +386,14 @@ onMounted(() => { :nextPage="personalListPage" :fecthLists="fecthLists" /> + + - + diff --git a/src/modules/05_placement/components/ChangePosition/PersonalList.vue b/src/modules/05_placement/components/ChangePosition/PersonalList.vue index 52014fd22..e52b84929 100644 --- a/src/modules/05_placement/components/ChangePosition/PersonalList.vue +++ b/src/modules/05_placement/components/ChangePosition/PersonalList.vue @@ -11,7 +11,9 @@ import http from "@/plugins/http"; import config from "@/app.config"; import DialogOrgSelect from "@/components/Dialogs/DialogOrgSelect.vue"; +import DialogEvalute from '@/modules/05_placement/components/ChangePosition/DialogChange.vue' +const modalDialog = ref(false) const posType = ref(""); const posLevel = ref(""); const position = ref(""); @@ -136,7 +138,9 @@ const clickClose = () => { }; // เพิ่มรายชื่อเพื่อย้ายสับเปลี่ยนตำแหน่ง -const addPerson = () => {}; +const addPerson = () => { + modalDialog.value = true +}; //ดึงข้อมูล API const fecthLists = async () => { @@ -593,6 +597,9 @@ onMounted(() => { :dataRows="dataRows" :onSubmit="onSave" /> + + diff --git a/src/modules/05_placement/interface/index/Main.ts b/src/modules/05_placement/interface/index/Main.ts index 28b96fd29..954625192 100644 --- a/src/modules/05_placement/interface/index/Main.ts +++ b/src/modules/05_placement/interface/index/Main.ts @@ -258,6 +258,19 @@ interface DataProfile { positionType?: string; positionLevel?: string; } + +interface tableType { + personId: string; + idcard: string; + prefix: string; + firstName: string; + lastName: string; + position: string; + positionLevel: string; + organization: string; + salary: string; + name: string; +} export type { DataOption, DataOptionInsignia, @@ -279,6 +292,7 @@ export type { Assign, AddressData, DataProfile, + tableType }; export { AddressDataDefualt, FamilyDataDefualt };