ปรับ API ทะเบียนประวัติ (ใหม่)
This commit is contained in:
parent
e100ac0ec3
commit
f91f3d9b40
8 changed files with 645 additions and 598 deletions
|
|
@ -23,6 +23,7 @@ const props = defineProps({
|
|||
fetchData: { type: Function },
|
||||
fetchType: { type: Function },
|
||||
total: { type: Number },
|
||||
empType: { type: String },
|
||||
});
|
||||
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
|
|
@ -166,7 +167,11 @@ function onClickHistory() {
|
|||
}
|
||||
|
||||
function onClickViewDetail(id: string) {
|
||||
router.push(`/registry-new/${id}`);
|
||||
if (props.empType === "officer") {
|
||||
router.push(`/registry-new/${id}`);
|
||||
} else {
|
||||
router.push(`/registry-new-employee/${id}`);
|
||||
}
|
||||
}
|
||||
|
||||
watch(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue