Compare commits

..

No commits in common. "817f8da43b2e2b33bcdf86db6ef7361fa9fe34e5" and "1bf926e39c6de7383cbfda4276f83bee6cf77230" have entirely different histories.

4 changed files with 7 additions and 22 deletions

View file

@ -269,15 +269,14 @@ async function fetchProfile(id: string, avatarName: string) {
}
function redirecToRegistry() {
window.open(
router.push(
`/registry-${
employeeClass.value.toLocaleLowerCase() === "perm"
? "employee"
: employeeClass.value.toLocaleLowerCase() === "temp"
? "temp"
: "officer"
}/${props.id}`,
"_blank"
}/${props.id}`
);
modal.value = false;
}

View file

@ -196,9 +196,9 @@ function onClickHistory() {
*/
function onClickViewDetail(id: string) {
if (empType.value === "officer") {
window.open(`/registry-officer/${id}`, "_blank");
router.push(`/registry-officer/${id}`);
} else {
window.open(`/registry-employee/${id}`, "_blank");
router.push(`/registry-employee/${id}`);
}
}

View file

@ -800,19 +800,6 @@ function openDialogSendTransferResign(
: (modalDialogResign.value = true);
}
/** ฟังก์ชันจัดการการกลับหน้า*/
function handleBackNavigation() {
if (window.history.length > 1) {
router.go(-1);
} else {
if (empType.value === "") {
router.push("/registry-officer");
} else if (empType.value === "-employee") {
router.push("/registry-employee");
}
}
}
onMounted(async () => {
await fetchDataPersonal();
});
@ -829,7 +816,7 @@ onMounted(async () => {
flat
color="primary"
class="q-mr-sm"
@click="handleBackNavigation"
@click="router.go(-1)"
/>
{{ titleName }}
</div>

View file

@ -82,11 +82,10 @@ async function fetchProfile(id: string, avatarName: string) {
* function rediract ไปทะเบยนประว
*/
function redirecToRegistry() {
window.open(
router.push(
`/registry${props.employeeClass ? props.employeeClass : "-officer"}/${
profileId.value
}`,
"_blank"
}`
);
modal.value = false;
}