comment code retirement

This commit is contained in:
AnandaTon 2023-11-17 14:21:53 +07:00
parent 45fc4848ac
commit 45ef9649e1
15 changed files with 295 additions and 64 deletions

View file

@ -6,11 +6,14 @@ import { useCounterMixin } from "@/stores/mixin";
import { useRouter } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
/** Use */
const router = useRouter();
const $q = useQuasar();
const mixin = useCounterMixin();
const { showLoader, hideLoader, messageError, success, date2Thai } = mixin;
/** คอลัมน์ */
const rows = ref<any>([]);
const columns = ref<QTableProps["columns"]>([
{
@ -88,6 +91,8 @@ const columns = ref<QTableProps["columns"]>([
style: "font-size: 14px",
},
]);
/** คอลัมน์ที่แสดง */
const visibleColumns = ref<string[]>([
"no",
"prefix",
@ -99,9 +104,13 @@ const visibleColumns = ref<string[]>([
"oc",
"createdAt",
]);
/**Hook */
onMounted(() => {
fectListDecased();
});
/**เรียกข้อมูลจาก APi */
const fectListDecased = async () => {
showLoader();
await http
@ -134,6 +143,8 @@ const resetFilter = () => {
filterKeyword.value = "";
filterRef.value.focus();
};
/** Setting Pagination */
const nextPage = (id: string) => {
router.push("/deceased/" + id);
};