updated kpi & check token
This commit is contained in:
parent
4d8acb49a3
commit
c7d672aeda
8 changed files with 110 additions and 35 deletions
|
|
@ -138,27 +138,29 @@ const fetchlistInbox = async (index: number) => {
|
|||
let data = res.data.result.data;
|
||||
totalInbox.value = res.data.result.total;
|
||||
let listItem: any = [];
|
||||
data.map((e: any) => {
|
||||
listItem.push({
|
||||
no: e.id ?? "",
|
||||
sender:
|
||||
e.createdFullName == "" || e.createdFullName == null
|
||||
? "เจ้าหน้าที่"
|
||||
: e.createdFullName,
|
||||
subject: e.subject ?? "",
|
||||
timereceive: date2Thai(e.createdAt),
|
||||
body: e.body ?? "-",
|
||||
ratingModel: 0,
|
||||
receiveDate: e.receiveDate,
|
||||
payload: e.payload,
|
||||
isOpen: e.isOpen,
|
||||
if (data && data.length > 0) {
|
||||
data.map((e: any) => {
|
||||
listItem.push({
|
||||
no: e.id ?? "",
|
||||
sender:
|
||||
e.createdFullName == "" || e.createdFullName == null
|
||||
? "เจ้าหน้าที่"
|
||||
: e.createdFullName,
|
||||
subject: e.subject ?? "",
|
||||
timereceive: date2Thai(e.createdAt),
|
||||
body: e.body ?? "-",
|
||||
ratingModel: 0,
|
||||
receiveDate: e.receiveDate,
|
||||
payload: e.payload,
|
||||
isOpen: e.isOpen,
|
||||
});
|
||||
});
|
||||
});
|
||||
inboxList.value.push(...listItem);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
inboxList.value.push(...listItem);
|
||||
}
|
||||
})
|
||||
// .catch((err) => {
|
||||
// console.log(err);
|
||||
// })
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue