currencyInput

This commit is contained in:
Thanit Konmek 2023-08-21 15:14:45 +07:00
parent ac74a83dad
commit f6958b5251
4 changed files with 111 additions and 52 deletions

View file

@ -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);