From 3391e4ff8714e63ef3ab14a512ab7d04ccfdde05 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Thu, 30 Oct 2025 19:26:59 +0800 Subject: [PATCH] Updated --- src/pages/AssessorPage/Assessor.tsx | 31 +++++++++-------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/src/pages/AssessorPage/Assessor.tsx b/src/pages/AssessorPage/Assessor.tsx index 1ab8870..40f0a5b 100644 --- a/src/pages/AssessorPage/Assessor.tsx +++ b/src/pages/AssessorPage/Assessor.tsx @@ -53,19 +53,6 @@ export default () => { } } - // const handleFilterChange = (value: string) => { - // // setFilter(value) - // if (value.trim() === '') { - // setApplicationList(fullIDList()) - // setNameList(fullNameList()) - // } else { - // const filteredApplications = fullIDList().filter((app) => app.toLowerCase().includes(value.toLowerCase())) - // const filteredNames = fullNameList().slice(0, filteredApplications.length) - // setApplicationList(filteredApplications) - // setNameList(filteredNames) - // } - // } - const getPrintDetails = async (id: number) => { const response = await ofetch(API + 'get-printdetails-electrical/' + id) const applicationno = response.result @@ -320,15 +307,15 @@ export default () => { } } - const getEmployeeId = async (name: string) => { - try { - const response = await ofetch(API + 'get-employeeid/' + name, { parseResponse: JSON.parse }) - const result = response.result - return parseInt(result) - } catch (error) { - return 0 - } - } + // const getEmployeeId = async (name: string) => { + // try { + // const response = await ofetch(API + 'get-employeeid/' + name, { parseResponse: JSON.parse }) + // const result = response.result + // return parseInt(result) + // } catch (error) { + // return 0 + // } + // } const refresh = async () => { await getListForPrinting()