- ซ่อนเอกสารเพิ่มเติมในส่วนของ

- ซ่อนปิด error ของ inbox และ noti
- fix bug บรรจุในส่วน filter
This commit is contained in:
Warunee Tamkoo 2023-08-16 22:08:59 +07:00
parent 8576c937df
commit f698d036ab
6 changed files with 19 additions and 15 deletions

View file

@ -91,7 +91,7 @@ const fecthlistappointment = async () => {
rows.value = response.map((e: any) => ({ rows.value = response.map((e: any) => ({
personalId: e.id, personalId: e.id,
citizenId: e.citizenId, citizenId: e.citizenId,
fullname: e.firstname + " " + e.lastname, fullname: e.prefix+e.firstname + " " + e.lastname,
organizationName: organizationName:
e.organizationName + e.organizationName +
" " + " " +
@ -105,7 +105,7 @@ const fecthlistappointment = async () => {
positionNumber: e.positionNumber, positionNumber: e.positionNumber,
positionPath: e.positionPath, positionPath: e.positionPath,
status: status(e.status), status: status(e.status),
birthday: date2Thai(e.dateOfBirth), birthday: e.dateOfBirth == null ? "-" : date2Thai(e.dateOfBirth),
})); }));
// console.log(rows.value); // console.log(rows.value);
rows2.value = rows.value.filter((e: any) => e.orgName !== null); rows2.value = rows.value.filter((e: any) => e.orgName !== null);
@ -172,7 +172,7 @@ const columns = ref<QTableProps["columns"]>([
align: "left", align: "left",
label: "เลขประจำตัวประชาชน", label: "เลขประจำตัวประชาชน",
sortable: true, sortable: true,
field: "fullname", field: "citizenId",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
}, },
@ -230,7 +230,7 @@ const columns2 = ref<QTableProps["columns"]>([
align: "left", align: "left",
label: "เลขประจำตัวประชาชน", label: "เลขประจำตัวประชาชน",
sortable: true, sortable: true,
field: "fullname", field: "citizenId",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
}, },

View file

@ -160,6 +160,10 @@ const fetchPlacementData = async (val: number) => {
console.log(e); console.log(e);
}) })
.finally(() => { .finally(() => {
filterKeyword.value = "";
examTime.value = "all"
examType.value = "all"
expiredAccount.value = false
hideLoader(); hideLoader();
}); });
}; };
@ -183,7 +187,7 @@ const fetchYearOptions = async () => {
}); });
}; };
const filterYear = () => { const filterYear = () => {
console.log("searchYear", searchYear.value); // console.log("searchYear", searchYear.value);
fetchPlacementData(searchYear.value); fetchPlacementData(searchYear.value);
}; };

View file

@ -334,19 +334,19 @@ const putpersonalForm = async () => {
</q-card> </q-card>
</div> </div>
<div class="contanier-box-mini"> <!-- <div class="contanier-box-mini"> -->
<q-card bordered class="card-panding"> <!-- <q-card bordered class="card-panding">
<div class="col-12 row items-center q-pa-sm header-text"> <div class="col-12 row items-center q-pa-sm header-text">
เอกสารเพมเต เอกสารเพมเต
</div> </div> -->
<!-- <div v-for="(item, index) of personalForm.isProperty" :key="index" class="q-pa-sm"> <!-- <div v-for="(item, index) of personalForm.isProperty" :key="index" class="q-pa-sm">
<q-checkbox size="xs" v-model="item.value" :val="item.value" :label="item.name" keep-color color="teal" <q-checkbox size="xs" v-model="item.value" :val="item.value" :label="item.name" keep-color color="teal"
:rules="[isRequired]" class="checkbox-group" /> :rules="[isRequired]" class="checkbox-group" />
<q-separator /> <q-separator />
</div> --> </div> -->
</q-card> <!-- </q-card>
</div> </div> -->
</div> </div>
<!-- <q-separator /> <!-- <q-separator />
<div> <div>
<DialogFooter <DialogFooter

View file

@ -150,7 +150,7 @@ const columns2 = ref<QTableProps["columns"]>([
align: "left", align: "left",
label: "เลขประจำตัวประชาชน", label: "เลขประจำตัวประชาชน",
sortable: true, sortable: true,
field: "fullname", field: "citizenId",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
}, },
@ -202,7 +202,7 @@ const fecthlistRecevice = async () => {
list.push({ list.push({
personalId: e.id ?? "", personalId: e.id ?? "",
citizenId: e.citizenId ?? "-", citizenId: e.citizenId ?? "-",
fullname: e.firstname + " " + e.lastname, fullname: e.prefix+e.firstname + " " + e.lastname,
organizationName: organizationName:
e.organizationName + e.organizationName +
" " + " " +

View file

@ -103,7 +103,7 @@ const getData = async () => {
inboxList.value = list; inboxList.value = list;
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); // messageError($q, e);
}) })
.finally(() => { .finally(() => {
hideLoader(); hideLoader();

View file

@ -101,7 +101,7 @@ const getDataNotification = async () => {
notiList.value = list; notiList.value = list;
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); // messageError($q, e);
}) })
.finally(() => { .finally(() => {
hideLoader(); hideLoader();