updated registry

This commit is contained in:
Warunee Tamkoo 2024-08-13 11:22:48 +07:00
parent fd1f6a93d2
commit 64a9971665
26 changed files with 125 additions and 116 deletions

View file

@ -25,6 +25,7 @@ const {
messageError,
dialogRemove,
dialogConfirm,
pathRegistryEmp,
} = mixin;
const id = ref<string>("");
@ -36,9 +37,8 @@ const pagination = ref({
const profileId = ref<string>(
route.params.id ? route.params.id.toString() : ""
);
const empType = ref<string>(
route.name === "registryNewByid" ? "" : "-employee"
);
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
const mode = ref<string>("table");
const filterKeyword = ref<string>("");
const rows = ref<RowList[]>([]);

View file

@ -21,7 +21,8 @@ const id = defineModel<string>("id", { required: true });
const $q = useQuasar();
const route = useRoute();
const mixin = useCounterMixin();
const { showLoader, hideLoader, messageError, date2Thai } = mixin;
const { showLoader, hideLoader, messageError, date2Thai, pathRegistryEmp } =
mixin;
const historyPagination = ref({
page: 1,
rowsPerPage: 10,
@ -42,9 +43,7 @@ const formFilter = reactive<FormFilter>({
isShowRetire: false,
isProbation: false,
});
const empType = ref<string>(
route.name === "registryNewByid" ? "" : "-employee"
);
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
const visibleColumns = ref<String[]>([
"date",