fix citizenId
This commit is contained in:
parent
2c21eb46d5
commit
b0b077b1d4
2 changed files with 10 additions and 8 deletions
|
|
@ -157,18 +157,18 @@ const pagination = ref({
|
||||||
});
|
});
|
||||||
|
|
||||||
// ปิดโมเดล
|
// ปิดโมเดล
|
||||||
function closeModal(){
|
function closeModal() {
|
||||||
modal.value = false;
|
modal.value = false;
|
||||||
filterKeyword2.value = "";
|
filterKeyword2.value = "";
|
||||||
};
|
}
|
||||||
//reset filter
|
//reset filter
|
||||||
function resetFilter(){
|
function resetFilter() {
|
||||||
filterKeyword.value = "";
|
filterKeyword.value = "";
|
||||||
filterRef.value.focus();
|
filterRef.value.focus();
|
||||||
};
|
}
|
||||||
|
|
||||||
//เปิด Modal
|
//เปิด Modal
|
||||||
async function openModalOrder(){
|
async function openModalOrder() {
|
||||||
openModal();
|
openModal();
|
||||||
const row = await filters.value.filter(
|
const row = await filters.value.filter(
|
||||||
(r: ResponseItems) =>
|
(r: ResponseItems) =>
|
||||||
|
|
@ -182,10 +182,10 @@ async function openModalOrder(){
|
||||||
r.sendDate
|
r.sendDate
|
||||||
);
|
);
|
||||||
rows2.value = row;
|
rows2.value = row;
|
||||||
};
|
}
|
||||||
|
|
||||||
//นำข้อมูลจาก API มาแสดง
|
//นำข้อมูลจาก API มาแสดง
|
||||||
async function fecthlist(){
|
async function fecthlist() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.listResign())
|
.get(config.API.listResign())
|
||||||
|
|
@ -199,6 +199,7 @@ async function fecthlist(){
|
||||||
r.createdAt == null ? "-" : date2Thai(new Date(r.createdAt)),
|
r.createdAt == null ? "-" : date2Thai(new Date(r.createdAt)),
|
||||||
activeDate: new Date(),
|
activeDate: new Date(),
|
||||||
createdAt: new Date(r.createdAt),
|
createdAt: new Date(r.createdAt),
|
||||||
|
citizenId: r.citizenId,
|
||||||
firstName: r.firstName ?? "",
|
firstName: r.firstName ?? "",
|
||||||
id: r.id ?? "",
|
id: r.id ?? "",
|
||||||
isActive: r.isActive ? r.isActive : false,
|
isActive: r.isActive ? r.isActive : false,
|
||||||
|
|
@ -228,7 +229,7 @@ async function fecthlist(){
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
/**Hook */
|
/**Hook */
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ interface ResponseItems {
|
||||||
statustext: string;
|
statustext: string;
|
||||||
fullname: string;
|
fullname: string;
|
||||||
datetext: string | null;
|
datetext: string | null;
|
||||||
|
citizenId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface TypeFile {
|
interface TypeFile {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue