fix
This commit is contained in:
parent
a0e3e88e7e
commit
fced27b6f5
9 changed files with 201 additions and 35 deletions
|
|
@ -171,7 +171,7 @@ async function clickSave() {
|
|||
showLoader();
|
||||
await http
|
||||
.post(config.API.candidateId(candidateId.value), {
|
||||
prefixId: defaultInformation.value.prefixId,
|
||||
// prefixId: defaultInformation.value.prefixId,
|
||||
lastName: defaultInformation.value.lastname,
|
||||
dateOfBirth:
|
||||
defaultInformation.value.birthDate == null
|
||||
|
|
@ -181,7 +181,7 @@ async function clickSave() {
|
|||
),
|
||||
citizenId: defaultInformation.value.cardid,
|
||||
firstName: defaultInformation.value.firstname,
|
||||
religionId: defaultInformation.value.religionId,
|
||||
// religionId: defaultInformation.value.religionId,
|
||||
nationality: defaultInformation.value.nationality,
|
||||
email: defaultInformation.value.email,
|
||||
mobilePhone: defaultInformation.value.phone,
|
||||
|
|
@ -236,8 +236,8 @@ async function clickSave() {
|
|||
defaultEducation.value.educationScores,
|
||||
educationLevelHighId:
|
||||
defaultEducation.value.educationLevelHighId,
|
||||
contactPrefixId:
|
||||
defaultContact.value.contactPrefixId,
|
||||
// contactPrefixId:
|
||||
// defaultContact.value.contactPrefixId,
|
||||
contactFirstname:
|
||||
defaultContact.value.contactFirstname,
|
||||
contactLastname:
|
||||
|
|
@ -245,6 +245,12 @@ async function clickSave() {
|
|||
contactRelations:
|
||||
defaultContact.value.contactRelations,
|
||||
contactTel: defaultContact.value.contactTel,
|
||||
|
||||
contactPrefixName:
|
||||
defaultContact.value.contactPrefixName,
|
||||
prefixName: defaultInformation.value.prefix,
|
||||
religionName:
|
||||
defaultInformation.value.religionName,
|
||||
})
|
||||
.then(async () => {
|
||||
success($q, "บันทึกข้อมูลส่วนตัวสำเร็จ");
|
||||
|
|
|
|||
|
|
@ -1302,13 +1302,10 @@ onMounted(async () => {
|
|||
/>
|
||||
</q-td>
|
||||
|
||||
<q-td
|
||||
key="highDegree"
|
||||
:props="props"
|
||||
class="q-col-gutter-sm"
|
||||
>
|
||||
<q-td key="highDegree" :props="props" class="q-col-gutter-sm">
|
||||
<div class="col-12">
|
||||
<q-radio
|
||||
dense
|
||||
v-model="props.row.highDegree"
|
||||
label="ประเภททั่วไป"
|
||||
color="teal"
|
||||
|
|
@ -1324,6 +1321,7 @@ onMounted(async () => {
|
|||
</div>
|
||||
<div class="col-12">
|
||||
<q-radio
|
||||
dense
|
||||
v-model="props.row.highDegree"
|
||||
label="ประเภทวิชาการ"
|
||||
color="teal"
|
||||
|
|
@ -1405,13 +1403,10 @@ onMounted(async () => {
|
|||
</template>
|
||||
</selector>
|
||||
</q-td>
|
||||
<q-td
|
||||
key="educational"
|
||||
:props="props"
|
||||
class="q-col-gutter-sm"
|
||||
>
|
||||
<q-td key="educational" :props="props" class="q-col-gutter-sm">
|
||||
<div class="col-12">
|
||||
<q-radio
|
||||
dense
|
||||
v-model="props.row.educationLevel"
|
||||
label="วุฒิปริญญาตรี"
|
||||
color="teal"
|
||||
|
|
@ -1421,6 +1416,7 @@ onMounted(async () => {
|
|||
</div>
|
||||
<div class="col-12">
|
||||
<q-radio
|
||||
dense
|
||||
v-model="props.row.educationLevel"
|
||||
label="ต่ำกว่าปริญญาตรี"
|
||||
color="teal"
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ const yearly = ref<number | null>(null);
|
|||
const examId = ref<string>(route.params.examId.toString());
|
||||
const visible = ref<boolean>(false); //เปิดปิด card สรุปข้อมูล
|
||||
const dataNum = ref<DataNumObject[]>([]); //จำนวนสรุปจำนวนข้อมูลหลัก
|
||||
const isFee = ref<boolean>(false);
|
||||
const rows = ref<any[]>([]);
|
||||
const visibleColumns = ref<String[]>([
|
||||
"no",
|
||||
|
|
@ -279,6 +280,7 @@ async function fetchData(loading: boolean = true) {
|
|||
position: `${r.positionName}${r.positionLevelName}`,
|
||||
positionLevel: r.positionLevelName,
|
||||
check: false,
|
||||
isShowExamInfo: r.isShowExamInfo,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -303,6 +305,7 @@ async function fetchPeriodExam() {
|
|||
yearly.value = data.year;
|
||||
statusPayment.value = data.status;
|
||||
setSeat.value = data.setSeat;
|
||||
isFee.value = data.fee === 0 ? false : true;
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -489,10 +492,14 @@ onMounted(async () => {
|
|||
:page="page"
|
||||
@update:change-page="changePage"
|
||||
:max-page="maxPage"
|
||||
:is-fee="isFee"
|
||||
>
|
||||
<template #columns="props">
|
||||
<q-tr :props="props" class="cursor-pointer">
|
||||
<q-td auto-width v-if="checkPermission($route)?.attrIsUpdate">
|
||||
<q-td
|
||||
auto-width
|
||||
v-if="checkPermission($route)?.attrIsUpdate && isFee"
|
||||
>
|
||||
<q-checkbox v-model="props.selected" />
|
||||
</q-td>
|
||||
<q-td
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue