เพิ่ม interface ให้ row รายการอื่นๆ

This commit is contained in:
setthawutttty 2023-09-22 10:05:48 +07:00
parent 0f5879d250
commit 6104ca99bb
3 changed files with 79 additions and 27 deletions

View file

@ -77,7 +77,6 @@ const fecthOther = async () => {
title.value.organizationPositionOld = data.organizationPositionOld ?? "-";
title.value.positionLevelOld = data.positionLevelOld ?? "-";
title.value.positionTypeOld = data.positionTypeOld ?? "-";
responseData.value.profileId = data.profileId;
responseData.value.createdAt = data.createdAt;
responseData.value.date = data.date !== null ? new Date(data.date) : new Date();
@ -141,7 +140,6 @@ const saveOther = async () => {
})
.catch((e) => {
messageError($q, e);
console.log(e);
})
.finally(async () => {
await fecthOther();
@ -156,7 +154,6 @@ const getClass = (val: boolean) => {
onMounted(async () => {
if (keycloak.tokenParsed != null) {
roleAdmin.value = await keycloak.tokenParsed.role.includes("placement1");
console.log("roleAdmin===>", roleAdmin.value);
}
await fecthOther();
});