This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-04-08 18:08:03 +07:00
parent 96ad297224
commit ddceed4e51
8 changed files with 614 additions and 91 deletions

View file

@ -43,7 +43,7 @@ const page = ref<number>(1); //หน้า
const total = ref<number>(0); //
const filter = ref<string>(""); //
const pageSize = ref<number>(10); //
const filterRef = ref<HTMLInputElement | null>(null);
//
const selectedStatus = ref<string[]>([
"CHECK_SPEC",
@ -95,17 +95,6 @@ function filterFn() {
fetchEvaluteList();
}
/**
* functrion างคนหาD
*/
function resetFilter() {
filter.value = "";
fetchEvaluteList();
if (filterRef.value) {
filterRef.value.focus();
}
}
/**
* function เรยกรายการคำขอประเมนD
*/
@ -137,8 +126,13 @@ async function fetchEvaluteList() {
* funcition redirectToDetail
* @param id รายการคำขอประเม
*/
function Detailpage(id: string) {
router.push(`/evaluate/detail/${id}`);
function Detailpage(id: string, type: string) {
//
if (type === "EXPERTISE") {
router.push(`/evaluate/detail-expertise/${id}`);
} else {
router.push(`/evaluate/detail/${id}`);
}
}
/**
@ -378,7 +372,7 @@ onMounted(async () => {
round
color="info"
icon="mdi-eye"
@click.stop.prevent="Detailpage(props.row.id)"
@click.stop.prevent="Detailpage(props.row.id, props.row.type)"
>
<q-tooltip>รายละเอยด</q-tooltip>
</q-btn>