summaryrefslogtreecommitdiff
path: root/lib/evaluation/table
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-07-15 10:07:09 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-07-15 10:07:09 +0000
commit4eb7532f822c821fb6b69bf103bd075fefba769b (patch)
treeb4bcf6c0bf791d71569f3f35498ed256bf7cfaf3 /lib/evaluation/table
parent660c7888d885badab7af3e96f9c16bd0172ad0f1 (diff)
(대표님) 20250715 협력사 정기평가, spreadJS, roles 서비스에 함수 추가
Diffstat (limited to 'lib/evaluation/table')
-rw-r--r--lib/evaluation/table/evaluation-columns.tsx1
-rw-r--r--lib/evaluation/table/evaluation-filter-sheet.tsx14
-rw-r--r--lib/evaluation/table/evaluation-table.tsx1
-rw-r--r--lib/evaluation/table/periodic-evaluation-action-dialogs.tsx2
-rw-r--r--lib/evaluation/table/periodic-evaluations-toolbar-actions.tsx2
5 files changed, 10 insertions, 10 deletions
diff --git a/lib/evaluation/table/evaluation-columns.tsx b/lib/evaluation/table/evaluation-columns.tsx
index 315ec66b..dca19ddb 100644
--- a/lib/evaluation/table/evaluation-columns.tsx
+++ b/lib/evaluation/table/evaluation-columns.tsx
@@ -40,6 +40,7 @@ const getStatusBadgeVariant = (status: string) => {
const getStatusLabel = (status: string) => {
const statusMap = {
+ PENDING: "대상확정",
PENDING_SUBMISSION: "자료접수중",
SUBMITTED: "제출완료",
IN_REVIEW: "평가중",
diff --git a/lib/evaluation/table/evaluation-filter-sheet.tsx b/lib/evaluation/table/evaluation-filter-sheet.tsx
index 7c1e93d8..7f4de6a6 100644
--- a/lib/evaluation/table/evaluation-filter-sheet.tsx
+++ b/lib/evaluation/table/evaluation-filter-sheet.tsx
@@ -67,11 +67,12 @@ const divisionOptions = [
]
const statusOptions = [
- { value: "PENDING_SUBMISSION", label: "제출대기" },
+ { value: "PENDING", label: "대상확정" },
+ { value: "PENDING_SUBMISSION", label: "자료접수중" },
{ value: "SUBMITTED", label: "제출완료" },
- { value: "IN_REVIEW", label: "검토중" },
- { value: "REVIEW_COMPLETED", label: "검토완료" },
- { value: "FINALIZED", label: "최종확정" },
+ { value: "IN_REVIEW", label: "평가중" },
+ { value: "REVIEW_COMPLETED", label: "평가완료" },
+ { value: "FINALIZED", label: "결과확정" },
]
const domesticForeignOptions = [
@@ -91,7 +92,6 @@ const documentsSubmittedOptions = [
]
const gradeOptions = [
- { value: "S", label: "S등급" },
{ value: "A", label: "A등급" },
{ value: "B", label: "B등급" },
{ value: "C", label: "C등급" },
@@ -470,7 +470,7 @@ export function PeriodicEvaluationFilterSheet({
/>
{/* 평가기간 */}
- <FormField
+ {/* <FormField
control={form.control}
name="evaluationPeriod"
render={({ field }) => (
@@ -514,7 +514,7 @@ export function PeriodicEvaluationFilterSheet({
<FormMessage />
</FormItem>
)}
- />
+ /> */}
{/* 구분 */}
<FormField
diff --git a/lib/evaluation/table/evaluation-table.tsx b/lib/evaluation/table/evaluation-table.tsx
index 0a5db3cb..d4510eb5 100644
--- a/lib/evaluation/table/evaluation-table.tsx
+++ b/lib/evaluation/table/evaluation-table.tsx
@@ -224,7 +224,6 @@ export function PeriodicEvaluationsTable({ promises, evaluationYear, className }
const [promiseData] = React.use(promises)
const tableData = promiseData
- console.log(tableData)
const getSearchParam = React.useCallback((key: string, defaultValue?: string): string => {
return searchParams?.get(key) ?? defaultValue ?? "";
diff --git a/lib/evaluation/table/periodic-evaluation-action-dialogs.tsx b/lib/evaluation/table/periodic-evaluation-action-dialogs.tsx
index fc07aea1..e6eec53a 100644
--- a/lib/evaluation/table/periodic-evaluation-action-dialogs.tsx
+++ b/lib/evaluation/table/periodic-evaluation-action-dialogs.tsx
@@ -82,7 +82,7 @@ export function RequestDocumentsDialog({
// 제출대기 상태인 평가들만 필터링
const pendingEvaluations = React.useMemo(() =>
- evaluations.filter(e => e.status === "PENDING_SUBMISSION"),
+ evaluations.filter(e => e.status === "PENDING_SUBMISSION" ||e.status === "PENDING" ),
[evaluations]
)
diff --git a/lib/evaluation/table/periodic-evaluations-toolbar-actions.tsx b/lib/evaluation/table/periodic-evaluations-toolbar-actions.tsx
index d910f916..38622af4 100644
--- a/lib/evaluation/table/periodic-evaluations-toolbar-actions.tsx
+++ b/lib/evaluation/table/periodic-evaluations-toolbar-actions.tsx
@@ -66,7 +66,7 @@ export function PeriodicEvaluationsTableToolbarActions({
.getFilteredSelectedRowModel()
.rows
.map(row => row.original)
- .filter(e => e.status === "PENDING_SUBMISSION");
+ .filter(e => e.status === "PENDING_SUBMISSION"||e.status === "PENDING");
}, [table.getFilteredSelectedRowModel().rows]);
const submittedEvaluations = React.useMemo(() => {