no message

This commit is contained in:
setthawutttty 2023-07-04 09:41:24 +07:00
parent dc5ea784a3
commit c296bdfc48
8 changed files with 219 additions and 174 deletions

View file

@ -9,7 +9,6 @@ import DialogCard from "@/modules/05_placement/components/pass/TableDetail.vue";
import DialogFooter from "@/modules/05_placement/components/pass/DialogFooter.vue";
import DialogHeader from "@/modules/05_placement/components/pass/DialogHeader.vue";
import type { TableName } from "@/modules/05_placement/interface/request/placement";
import type Deferment from "@/modules/05_placement/components/pass/Deferment.vue";
import type {
treeTab,
DataOption,
@ -291,7 +290,7 @@ const getClass = (val: boolean) => {
};
};
const selectData = (props: TableName) => {
itemtest.value = props;
itemtest.value = props.personalId;
modal.value = true;
};
const onSelected = async (id: string) => {
@ -432,7 +431,8 @@ const columns = ref<QTableProps["columns"]>([
]);
const rows = ref<TableName[]>([
{
{
personalId:"test11111",
profileID: "4016500103241",
position: 1,
fullName: "นางสาวกัณฐิมา กาฬสินธุ์",
@ -466,7 +466,7 @@ const rows = ref<TableName[]>([
examResult: "ผ่าน",
},
},
{
{ personalId:"",
profileID: "4016500092355",
position: 2,
fullName: "นางสาวรัชภรณ์ ภักดี",
@ -500,7 +500,7 @@ const rows = ref<TableName[]>([
examResult: "ผ่าน",
},
},
{
{ personalId:"",
profileID: "4016500086436",
position: 3,
fullName: "นางสาวภาพรรณ ลออ",
@ -535,7 +535,7 @@ const rows = ref<TableName[]>([
},
},
{
{personalId:"",
profileID: "4016500073585",
position: 4,
fullName: "นางกติมา พนมเทียน",
@ -570,7 +570,7 @@ const rows = ref<TableName[]>([
},
},
{
{personalId:"",
profileID: "4016500053234",
position: 5,
fullName: "นางสาววิยฎา ทองเอียด",
@ -604,7 +604,7 @@ const rows = ref<TableName[]>([
examResult: "ผ่าน",
},
},
{
{personalId:"",
profileID: "4016500042345",
position: 6,
fullName: "นายศรุณ เจริญเมือง",
@ -638,7 +638,7 @@ const rows = ref<TableName[]>([
examResult: "ผ่าน",
},
},
{
{personalId:"",
profileID: "401650002245",
position: 7,
fullName: "นายอภินัน บอบู่",
@ -672,7 +672,7 @@ const rows = ref<TableName[]>([
examResult: "ผ่าน",
},
},
{
{personalId:"",
profileID: "401650002245",
position: 7,
fullName: "นายอภินัน บอบู่",
@ -938,7 +938,7 @@ const refOptionsFilter = ref<DataOption[]>([
name: "ปรับอัตราค่าจ้าง ตามหนังสือกระทรวงการคลังฯ ที่ กค 0428/ว 47 ลว. 29 พ.ค. 2558 และข้อบังคับ กทม. ว่าด้วยการกำหนดอัตราค่าจ้างฯ ตั้งแต่วันที่ 1 ธ.ค. 2557 ข้อ {} ตามคำสั่ง {สนข.} ที่ {ที่}/{พ.ศ} ลงวันที่ {วัน} {เดือน} {พ.ศ.}",
},
]);
const itemtest = ref<object>({});
const itemtest = ref<string>({});
const openAppointModal = (value: any) => {
appointModal.value = true;

View file

@ -6,10 +6,35 @@ import DialogFooter from "@/modules/05_placement/components/pass/DialogFooter.vu
import type { QTableProps } from "quasar";
import type { CheckboxItem } from "@/modules/05_placement/interface/index/Main";
import { useCounterMixin } from "@/stores/mixin";
import http from "@/plugins/http";
import config from "@/app.config";
const mixin = useCounterMixin(); //
const modal = ref<boolean>();
const { success } = mixin;
const graduationExample = "2023-03-01T00:00:00";
const $q = useQuasar();
const { success, date2Thai,messageError,
showLoader ,hideLoader} = mixin;
const save = ref<boolean>(true);
const uid = ref<any>()
const idCard = ref<any>()
const fullName = ref<any>()
const dateOfBirth = ref<any>()
const gender = ref<any>()
const address = ref<any>()
const education = ref<any>()
const pointA = ref<any>()
const pointB = ref<any>()
const pointC = ref<any>()
const pointTotalA = ref<any>()
const pointTotalB = ref<any>()
const pointTotalC = ref<any>()
const point = ref<any>()
const pointTotal = ref<any>()
const examNumber = ref<any>()
const examRound = ref<any>()
const pass = ref<any>()
const isProperty = ref<any>()
const props = defineProps({
Modal: Boolean,
close: {
@ -25,15 +50,61 @@ const props = defineProps({
default: () => console.log("not function"),
},
});
// const getDetailbyId = (props.getdetail) => {
// showLoader();
// // personalId API
// try {
// const response = await http.get(config.API.personalId(id));
// const personalId = response.data.personalId;
// // personalId API
// const organizationResponse = await http.get(config.API.organizationName(personalId));
// const data = organizationResponse.data.result;
// // UI
// uid.value = data.personalId;
// idCard.value = data.idCard;
// fullName.value = "tee";
// dateOfBirth.value = new Date(data.dateOfBirth).toLocaleDateString();
// gender.value = data.gender;
// address.value = data.address;
// education.value = data.education;
// pointA.value = data.pointA;
// pointB.value = data.pointB;
// pointC.value = data.pointC;
// pointTotalA.value = data.pointTotalA;
// pointTotalB.value = data.pointTotalB;
// pointTotalC.value = data.pointTotalC;
// point.value = data.point;
// pointTotal.value = data.pointTotal;
// examNumber.value = data.examNumber;
// examRound.value = data.examRound;
// pass.value = data.pass;
// isProperty.value = data.isProperty;
// } catch (error) {
// messageError($q, error);
// } finally {
// hideLoader();
// }
// };
const rows = ref<any[]>([
{
university: props.getdetail.university || "-",
degree: props.getdetail.degree || "-",
major: props.getdetail.major || "-",
graduation: "2022-01-01",
graduation: "",
},
]);
//--------------------()------------------------------------//
const graduationDate = new Date(graduationExample);
rows.value[0].graduation = date2Thai(graduationDate, false, false);
//--------------------------------------------------------------------//
const columns = ref<QTableProps["columns"]>([
{
name: "university",
@ -125,7 +196,6 @@ const checkboxItems: CheckboxItem[] = [
"เป็นผู้เคยกระทำการทุจริตในการสอบเข้ารับราชการ หรือเข้าปฏิบัติงานใน หน่วยงานของรัฐ",
},
];
const $q = useQuasar();
function isRequired(val: any): boolean | string {
return !!val || "กรุณาเลือกไฟล์เอกสารหลักฐาน";
}
@ -164,7 +234,7 @@ const close = async () => {
<q-form ref="myForm">
<div class="row">
<DialogHeader
:title="`รายละเอียดของ ${props.getdetail.fullName}`"
:title="`รายละเอียดของ ${fullName}`"
@click="close"
/>
</div>
@ -231,6 +301,7 @@ const close = async () => {
virtual-scroll
:virtual-scroll-sticky-size-start="48"
dense
hide-bottom
>
</q-table>
</q-card>