diff --git a/src/modules/05_placement/components/pass/Table.vue b/src/modules/05_placement/components/pass/Table.vue index d7a033d69..53398fdf6 100644 --- a/src/modules/05_placement/components/pass/Table.vue +++ b/src/modules/05_placement/components/pass/Table.vue @@ -7,6 +7,7 @@ import { usePlacementDataStore } from "@/modules/05_placement/store"; import type { QTableProps } from "quasar"; import DialogHeader from "@/modules/05_placement/components/pass/DialogHeader.vue"; import DialogFooter from "@/modules/05_placement/components/pass/DialogFooter.vue"; +import DialogCard from "@/modules/05_placement/components/pass/TableDetail.vue"; import { useCounterMixin } from "@/stores/mixin"; const mixin = useCounterMixin(); //เรียกฟังก์ชันกลาง @@ -38,26 +39,6 @@ const appoint = ref({ PositionLevel: '' }); -const information = reactive({ - cardId: '', - fullname: '', - birthday: '', - gender: '', - address: '', - school: '', - degree: '', - department: '', - other: '', - A1: null, - A2: null, - B1: null, - B2: null, - C1: null, - C2: null, - status: '', - range: null, - total: null -}); const saveAppoint = () => { console.log("save appoint===>", appoint.value); @@ -87,46 +68,18 @@ const getClass = (val: boolean) => { }; }; const selectData = (props: TableName) => { - information.cardId = '4016500103241' - information.fullname = props.Name - information.birthday = '17 ก.พ. 2535' - information.gender = 'หญิง' - information.address = '200/88 ซอยศาลายา3 ถนนพุทธมณฑลสาย4 แขวงศาลายา เขตพุทธมณฑล อำเภอพุทธมณฑล จังหวัดนครปฐม 73170' - information.school = 'มหาวิทยาลัยมหาสารคาม' - information.degree = 'การศึกษาบัณฑิต' - information.department = 'เทคโนโลยีสื่อสารการศึกษา' - information.other = 'ใบอนุญาตประกอบวิชาชีพ' - information.A1 = 200 - information.A2 = 133 - information.B1 = 200 - information.B2 = 149 - information.C1 = 100 - information.C2 = 382 - information.status = 'ผ่าน' - information.range = 3 - information.total = 5 - Name.value = props.Name; - modal.value = true; - - // if (editvisible.value == true) { - // // editRow.value = false; - // // modalEdit.value = true; - // modal.value = false; - // // edit.value = true; - // // position.value = props.position; - // Name.value = props.Name; - // // ExamOrder.value = props.ExamOrder; - // // Unit.value = props.Unit; - // // ReportingDate.value = props.ReportingDate; - // // BMAOfficer.value = props.BMAOfficer; - // // Status.value = props.Status; - // // checkList.value = props.checkList; - // } else { - // // editRow.value = false; - // // modalEdit.value = true; - // modal.value = true; - // // edit.value = true; - // } + itemtest.value = props + if (editvisible.value == true) { + editRow.value = false; + modalEdit.value = true; + modal.value = false; + edit.value = true; + } else { + editRow.value = false; + modalEdit.value = true; + modal.value = true; + edit.value = true; + } }; const getNumFile = ref(0); @@ -138,14 +91,14 @@ const editDetail = (props: TableName, action: "cancel" | "wait") => { modalEdit.value = false; modal_right.value = true; edit.value = true; - Name.value = props.Name; + Name.value = props.fullName; } else if (action === "wait") { getNumFile.value = 1; editRow.value = false; modalEdit.value = true; modal_right.value = true; edit.value = true; - Name.value = props.Name; + Name.value = props.fullName; } }; @@ -234,11 +187,14 @@ const columns = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, ]); + const rows = ref([ { - Id: "4016500103241", + profileID: "4016500103241", position: 1, - Name: "นางสาวกัณฐิมา กาฬสินธุ์", + fullName: "นางสาวกัณฐิมา กาฬสินธุ์", + dateOfBirth: "17 ก.พ. 2535", + gender: "หญิง", ExamOrder: 1, unitId: "", UnitGroup: "", @@ -247,11 +203,31 @@ const rows = ref([ BMAOfficer: true, Status: "สละสิทธิ์", checkList: null, + address: "200/88 ซอยศาลายา3 ถนนพุทธมณฑลสาย4 แขวงศาลายา เขตพุทธมณฑล อำเภอพุทธมณฑล จังหวัดนครปฐม 73170", + university: "มหาวิทยาลัยบูรพา", + degree: "การศึกษาบัณฑิต", + major: "เทคโนโลยีการศึกษา", + remark: "-", + number: 3, + examCount: 5, + scoreResult: { + scoreAFull: 200, + scoreA: 133, + scoreBFull: 200, + scoreB: 149, + scoreCFull: 100, + scoreC: 0, + scoreSumFull: 500, + scoreSum: 282, + examResult: "ผ่าน" + }, }, { - Id: "4016500092355", + profileID: "4016500092355", position: 2, - Name: "นางสาวรัชภรณ์ ภักดี", + fullName: "นางสาวรัชภรณ์ ภักดี", + dateOfBirth: "17 ก.พ. 2535", + gender: "หญิง", ExamOrder: 2, unitId: "", UnitGroup: "", @@ -260,11 +236,31 @@ const rows = ref([ BMAOfficer: false, Status: "ยังไม่บรรจุ", checkList: null, + address: "200/88 ซอยศาลายา3 ถนนพุทธมณฑลสาย4 แขวงศาลายา เขตพุทธมณฑล อำเภอพุทธมณฑล จังหวัดนครปฐม 73170", + university: "มหาวิทยาลัยบูรพา", + degree: "การศึกษาบัณฑิต", + major: "เทคโนโลยีการศึกษา", + remark: "-", + number: 3, + examCount: 5, + scoreResult: { + scoreAFull: 200, + scoreA: 133, + scoreBFull: 200, + scoreB: 149, + scoreCFull: 100, + scoreC: 0, + scoreSumFull: 500, + scoreSum: 282, + examResult: "ผ่าน" + }, }, { - Id: "4016500086436", + profileID: "4016500086436", position: 3, - Name: "นางสาวภาพรรณ ลออ", + fullName: "นางสาวภาพรรณ ลออ", + dateOfBirth: "17 ก.พ. 2535", + gender: "หญิง", ExamOrder: 3, unitId: "", UnitGroup: "", @@ -273,12 +269,32 @@ const rows = ref([ BMAOfficer: true, Status: "ยังไม่บรรจุ", checkList: null, + address: "200/88 ซอยศาลายา3 ถนนพุทธมณฑลสาย4 แขวงศาลายา เขตพุทธมณฑล อำเภอพุทธมณฑล จังหวัดนครปฐม 73170", + university: "มหาวิทยาลัยบูรพา", + degree: "การศึกษาบัณฑิต", + major: "เทคโนโลยีการศึกษา", + remark: "-", + number: 3, + examCount: 5, + scoreResult: { + scoreAFull: 200, + scoreA: 133, + scoreBFull: 200, + scoreB: 149, + scoreCFull: 100, + scoreC: 0, + scoreSumFull: 500, + scoreSum: 282, + examResult: "ผ่าน" + }, }, { - Id: "4016500073585", + profileID: "4016500073585", position: 4, - Name: "นางกติมา พนมเทียน", + fullName: "นางกติมา พนมเทียน", + dateOfBirth: "17 ก.พ. 2535", + gender: "หญิง", ExamOrder: 4, unitId: "", UnitGroup: "กลุ่มงานช่วยนักบริหาร (กบห.)", @@ -287,12 +303,32 @@ const rows = ref([ BMAOfficer: true, Status: "เตรียมบรรจุ", checkList: null, + address: "200/88 ซอยศาลายา3 ถนนพุทธมณฑลสาย4 แขวงศาลายา เขตพุทธมณฑล อำเภอพุทธมณฑล จังหวัดนครปฐม 73170", + university: "มหาวิทยาลัยบูรพา", + degree: "การศึกษาบัณฑิต", + major: "เทคโนโลยีการศึกษา", + remark: "-", + number: 3, + examCount: 5, + scoreResult: { + scoreAFull: 200, + scoreA: 133, + scoreBFull: 200, + scoreB: 149, + scoreCFull: 100, + scoreC: 0, + scoreSumFull: 500, + scoreSum: 282, + examResult: "ผ่าน" + }, }, { - Id: "4016500053234", + profileID: "4016500053234", position: 5, - Name: "นางสาววิยฎา ทองเอียด", + fullName: "นางสาววิยฎา ทองเอียด", + dateOfBirth: "17 ก.พ. 2535", + gender: "หญิง", ExamOrder: 5, unitId: "", UnitGroup: "กลุ่มงานช่วยนักบริหาร (กบห.)", @@ -301,11 +337,31 @@ const rows = ref([ BMAOfficer: true, Status: "เตรียมบรรจุ", checkList: null, + address: "200/88 ซอยศาลายา3 ถนนพุทธมณฑลสาย4 แขวงศาลายา เขตพุทธมณฑล อำเภอพุทธมณฑล จังหวัดนครปฐม 73170", + university: "มหาวิทยาลัยบูรพา", + degree: "การศึกษาบัณฑิต", + major: "เทคโนโลยีการศึกษา", + remark: "-", + number: 3, + examCount: 5, + scoreResult: { + scoreAFull: 200, + scoreA: 133, + scoreBFull: 200, + scoreB: 149, + scoreCFull: 100, + scoreC: 0, + scoreSumFull: 500, + scoreSum: 282, + examResult: "ผ่าน" + }, }, { - Id: "4016500042345", + profileID: "4016500042345", position: 6, - Name: "นายศรุณ เจริญเมือง", + fullName: "นายศรุณ เจริญเมือง", + dateOfBirth: "17 ก.พ. 2535", + gender: "ชาย", ExamOrder: 6, unitId: "", UnitGroup: "กลุ่มงานช่วยนักบริหาร (กบห.)", @@ -314,11 +370,31 @@ const rows = ref([ BMAOfficer: true, Status: "เตรียมบรรจุ", checkList: null, + address: "200/88 ซอยศาลายา3 ถนนพุทธมณฑลสาย4 แขวงศาลายา เขตพุทธมณฑล อำเภอพุทธมณฑล จังหวัดนครปฐม 73170", + university: "มหาวิทยาลัยบูรพา", + degree: "การศึกษาบัณฑิต", + major: "เทคโนโลยีการศึกษา", + remark: "-", + number: 3, + examCount: 5, + scoreResult: { + scoreAFull: 200, + scoreA: 133, + scoreBFull: 200, + scoreB: 149, + scoreCFull: 100, + scoreC: 0, + scoreSumFull: 500, + scoreSum: 282, + examResult: "ผ่าน" + }, }, { - Id: "401650002245", + profileID: "401650002245", position: 7, - Name: "นายอภินัน บอบู่", + fullName: "นายอภินัน บอบู่", + dateOfBirth: "17 ก.พ. 2535", + gender: "ชาย", ExamOrder: 7, unitId: "", UnitGroup: "กลุ่มงานช่วยนักบริหาร (กบห.)", @@ -327,9 +403,29 @@ const rows = ref([ BMAOfficer: true, Status: "บรรจุเเล้ว", checkList: null, + address: "200/88 ซอยศาลายา3 ถนนพุทธมณฑลสาย4 แขวงศาลายา เขตพุทธมณฑล อำเภอพุทธมณฑล จังหวัดนครปฐม 73170", + university: "มหาวิทยาลัยบูรพา", + degree: "การศึกษาบัณฑิต", + major: "เทคโนโลยีการศึกษา", + remark: "-", + number: 3, + examCount: 5, + scoreResult: { + scoreAFull: 200, + scoreA: 133, + scoreBFull: 200, + scoreB: 149, + scoreCFull: 100, + scoreC: 0, + scoreSumFull: 500, + scoreSum: 282, + examResult: "ผ่าน" + }, }, ]); +const itemtest = ref({}); + const clickCancel = async () => { editvisible.value = false; }; @@ -363,30 +459,6 @@ const save = () => { console.log("rows===>", rows.value) } -// modal detail -interface CheckboxItem { - value: number; - label: string; -} - -const selection = ref([]); -const checkboxItems: CheckboxItem[] = [ - { value: 1, label: 'ไม่เป็นผู้ดำรงตำแหน่งทางการเมือง' }, - { value: 2, label: 'ไม่เป็นคนไร้ความสามารถ คนเสมือนไร้ความสามารถ คนวิกลจริตหรือจิตฟั่นเฟือน ไม่สมประกอบหรือเป็นโรคตามที่กำหนดในกฎ ก.พ.' }, - { value: 3, label: 'ไม่เป็นผู้อยู่ในระหว่างถูกสั่งพักราชการหรือถูกสั่งให้ออกจากราชการไว้ก่อนตามพระราชบัญญัตินี้ หรือตามกฎหมายอื่น' }, - { value: 4, label: 'ไม่เป็นผู้บกพร่องในศีลธรรมอันดีจนเป็นที่รังเกียจของสังคม' }, - { value: 5, label: 'ไม่เป็นกรรมการหรือผู้ดำรงตำแหน่งที่รับผิดชอบในการบริหารพรรคการเมือง หรือเจ้าหน้าที่ในพรรคการเมือง' }, - { value: 6, label: 'ไม่เป็นบุคคลล้มละลาย' }, - { value: 7, label: 'ไม่เป็นผู้เคยต้องรับโทษจำคุกโดยคำพิพากษาถึงที่สุดให้จำคุกเพราะกระทำความผิดทางอาญา เว้นแต่เป็นโทษสำหรับความผิดที่ใด้กระทำโดยประมาทหรือความผิดลหุโทษ' }, - { value: 8, label: 'ไม่เป็นผู้เคยถูกลงโทษให้ออก ปลดออก หรือไล่ออกจากรัฐวิสาหกิจ หรือ หน่วยงานอื่นของรัฐ' }, - { value: 9, label: 'เป็นผู้เคยถูลงโทษให้ออก หรือปลดออก เพราะกระทำผิตวินัยตามพระราชบัญญัตินี้ หรือตามกฎหมายอื่น' }, - { value: 10, label: 'เป็นผู้เคยถูกลงโทษไล่ออก เพราะกระทำผิดวินัยตามพระราชบัญญัตินี้ หรือตามกฎหมายอื่น' }, - { value: 11, label: 'เป็นผู้เคยกระทำการทุจริตในการสอบเข้ารับราชการ หรือเข้าปฏิบัติงานใน หน่วยงานของรัฐ' }, -]; - -const clickSave = async () => { - console.log(selection.value) -};