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 };