fix citizenId

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-04 13:31:50 +07:00
parent 2c21eb46d5
commit b0b077b1d4
2 changed files with 10 additions and 8 deletions

View file

@ -157,18 +157,18 @@ const pagination = ref({
});
//
function closeModal(){
function closeModal() {
modal.value = false;
filterKeyword2.value = "";
};
}
//reset filter
function resetFilter(){
function resetFilter() {
filterKeyword.value = "";
filterRef.value.focus();
};
}
// Modal
async function openModalOrder(){
async function openModalOrder() {
openModal();
const row = await filters.value.filter(
(r: ResponseItems) =>
@ -182,10 +182,10 @@ async function openModalOrder(){
r.sendDate
);
rows2.value = row;
};
}
// API
async function fecthlist(){
async function fecthlist() {
showLoader();
await http
.get(config.API.listResign())
@ -199,6 +199,7 @@ async function fecthlist(){
r.createdAt == null ? "-" : date2Thai(new Date(r.createdAt)),
activeDate: new Date(),
createdAt: new Date(r.createdAt),
citizenId: r.citizenId,
firstName: r.firstName ?? "",
id: r.id ?? "",
isActive: r.isActive ? r.isActive : false,
@ -228,7 +229,7 @@ async function fecthlist(){
.finally(() => {
hideLoader();
});
};
}
/**Hook */
onMounted(async () => {

View file

@ -28,6 +28,7 @@ interface ResponseItems {
statustext: string;
fullname: string;
datetext: string | null;
citizenId: string;
}
interface TypeFile {