เอา ฟอเม็ต ออก

This commit is contained in:
setthawutttty 2025-01-23 15:03:28 +07:00
parent 4f1c75b9f9
commit 3618bea96c

View file

@ -86,7 +86,6 @@ const columnsHistory = ref<QTableProps["columns"]>([
field: "registrationProvince", field: "registrationProvince",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
format: (v) => (v ? v.name : "-"),
sort: (a: string, b: string) => sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
}, },
@ -98,7 +97,6 @@ const columnsHistory = ref<QTableProps["columns"]>([
field: "registrationDistrict", field: "registrationDistrict",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
format: (v) => (v ? v.name : "-"),
sort: (a: string, b: string) => sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
}, },
@ -110,7 +108,6 @@ const columnsHistory = ref<QTableProps["columns"]>([
field: "registrationSubDistrict", field: "registrationSubDistrict",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
format: (v) => (v ? v.name : "-"),
sort: (a: string, b: string) => sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
}, },
@ -159,7 +156,6 @@ const columnsHistory = ref<QTableProps["columns"]>([
field: "currentProvince", field: "currentProvince",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
format: (v) => (v ? v.name : "-"),
sort: (a: string, b: string) => sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
}, },
@ -171,7 +167,6 @@ const columnsHistory = ref<QTableProps["columns"]>([
field: "currentDistrict", field: "currentDistrict",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
format: (v) => (v ? v.name : "-"),
sort: (a: string, b: string) => sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
}, },
@ -183,7 +178,6 @@ const columnsHistory = ref<QTableProps["columns"]>([
field: "currentSubDistrict", field: "currentSubDistrict",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
format: (v) => (v ? v.name : "-"),
sort: (a: string, b: string) => sort: (a: string, b: string) =>
a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }),
}, },
@ -273,6 +267,7 @@ function getHistory() {
.then((res) => { .then((res) => {
const data = res.data.result; const data = res.data.result;
rowsHistory.value = data; rowsHistory.value = data;
console.log("🚀 ~ .then ~ data:", data)
rowsHistoryData.value = data; rowsHistoryData.value = data;
}) })
.catch((e) => { .catch((e) => {