currencyInput
This commit is contained in:
parent
ac74a83dad
commit
f6958b5251
4 changed files with 111 additions and 52 deletions
|
|
@ -79,34 +79,34 @@ const options = ref<optionType[]>([
|
|||
},
|
||||
]);
|
||||
|
||||
// const getDataNotification = async () => {
|
||||
// showLoader();
|
||||
// await http
|
||||
// .get(config.API.msgNotificate)
|
||||
// .then((res: any) => {
|
||||
// const response = res.data.result;
|
||||
// // console.log("response", response);
|
||||
// let list: notiType[] = [];
|
||||
// response.map((e: any) => {
|
||||
// list.push({
|
||||
// id: e.id,
|
||||
// sender:
|
||||
// e.createdFullName == "" || e.createdFullName == null
|
||||
// ? "เจ้าหน้าที่"[0]
|
||||
// : e.createdFullName[0],
|
||||
// body: e.body ?? "",
|
||||
// timereceive: new Date(e.createdAt),
|
||||
// });
|
||||
// });
|
||||
// notiList.value = list;
|
||||
// })
|
||||
// .catch((e) => {
|
||||
// // messageError($q, e);
|
||||
// })
|
||||
// .finally(() => {
|
||||
// hideLoader();
|
||||
// });
|
||||
// };
|
||||
const getDataNotification = async () => {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.msgNotificate)
|
||||
.then((res: any) => {
|
||||
const response = res.data.result;
|
||||
// console.log("response", response);
|
||||
let list: notiType[] = [];
|
||||
response.map((e: any) => {
|
||||
list.push({
|
||||
id: e.id,
|
||||
sender:
|
||||
e.createdFullName == "" || e.createdFullName == null
|
||||
? "เจ้าหน้าที่"[0]
|
||||
: e.createdFullName[0],
|
||||
body: e.body ?? "",
|
||||
timereceive: new Date(e.createdAt),
|
||||
});
|
||||
});
|
||||
notiList.value = list;
|
||||
})
|
||||
.catch((e) => {
|
||||
// messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* ให้แสดง แทปด้านขวา เมื่อเข้าหน้า รายละเอียดทะเบียนประวัติ
|
||||
|
|
@ -211,7 +211,7 @@ const activeBtn = () => {
|
|||
* ยังจับ boolean ผิด จึงต้อง set
|
||||
*/
|
||||
onMounted(async () => {
|
||||
await getDataNotification();
|
||||
// await getDataNotification();
|
||||
myEventHandler(null, false);
|
||||
window.addEventListener("resize", (e: any) => {
|
||||
myEventHandler(e, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue