diff --git a/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue b/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue index 0ec4710b7..7012b3064 100644 --- a/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue +++ b/src/modules/04_registryNew/components/detail/Other/01_OtherInformation.vue @@ -55,7 +55,6 @@ const modal = ref(false); const edit = ref(false); const modalHistory = ref(false); -const isActive = ref(true); const date = ref(null); const detail = ref(); @@ -159,7 +158,6 @@ async function saveData() { await http .post(config.API.profileNewOther, { profileId: profileId.value, - isActive: isActive.value, date: date.value, detail: detail.value, }) @@ -183,7 +181,6 @@ async function editData() { showLoader(); await http .patch(config.API.profileNewOtherById(id.value), { - isActive: isActive.value, date: date.value, detail: detail.value, }) @@ -215,21 +212,21 @@ async function getData() { }); } -async function deleteData(id: string) { - showLoader(); - await http - .delete(config.API.profileNewOtherById(id)) - .then((res) => { - success($q, "ลบข้อมูลสำเร็จ"); - getData(); - }) - .catch((e) => { - messageError($q, e); - }) - .finally(() => { - hideLoader(); - }); -} +// async function deleteData(id: string) { +// showLoader(); +// await http +// .delete(config.API.profileNewOtherById(id)) +// .then((res) => { +// success($q, "ลบข้อมูลสำเร็จ"); +// getData(); +// }) +// .catch((e) => { +// messageError($q, e); +// }) +// .finally(() => { +// hideLoader(); +// }); +// } const infoRows = [ { title: "รายละเอียด", value: "" }, @@ -402,7 +399,7 @@ onMounted(() => { >แก้ไข ([ field: "date", headerStyle: "font-size: 14px", style: "font-size: 14px; width: 50px;", + format: (v) => date2Thai(v), }, { name: "detail", @@ -85,6 +86,7 @@ const columns = ref([ field: "createdAt", headerStyle: "font-size: 14px", style: "font-size: 14px", + format: (v) => date2Thai(v), sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), },