fix Eva
This commit is contained in:
parent
96ad297224
commit
ddceed4e51
8 changed files with 614 additions and 91 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue