แก้ไขเงื่อนไข ในส่วนของแก้ไขประวัติผู้สอบผ่าน

This commit is contained in:
Warunee Tamkoo 2023-10-06 17:32:08 +07:00
parent 063b9c584a
commit cff39d85fb
2 changed files with 11 additions and 12 deletions

View file

@ -360,14 +360,13 @@ const getClass = (val: boolean) => {
};
};
//
const selectData = (pid: string) => {
router.push("/placement/personal-detail/" + pid);
// if (roleAdmin.value === true) {
// personalId.value = pid;
// modal.value = true;
// } else {
// router.push("/placement/personal-detail/" + pid);
// }
const selectData = (pid: string, draft: string) => {
if (roleAdmin.value && draft === 'ส่งตัวแล้ว') {
personalId.value = pid;
modal.value = true;
} else {
router.push("/placement/personal-detail/" + pid);
}
};
const getNumFile = ref(0);
const dataInfo = reactive({
@ -582,7 +581,7 @@ const pagination = ref({
v-for="col in props.cols"
:key="col.name"
:props="props"
@click="selectData(props.row.personalId)"
@click="selectData(props.row.personalId, props.row.draft)"
class="cursor-pointer"
>
<template v-if="col.name === 'position'">