From 93c133349a5ccd7a328371fa113dce69d5611f21 Mon Sep 17 00:00:00 2001
From: liuyu <yu.liu@cqgbkj.com>
Date: 星期二, 22 九月 2026 09:25:39 +0800
Subject: [PATCH] feat(tms): 完成课程考试自测等页面与接口对接
---
apps/jnpf-web-apps-main/src/views/x/tms/course/constants.ts | 45 ---------------------------------------------
1 files changed, 0 insertions(+), 45 deletions(-)
diff --git a/apps/jnpf-web-apps-main/src/views/x/tms/course/constants.ts b/apps/jnpf-web-apps-main/src/views/x/tms/course/constants.ts
index 0450dc5..ced3ca6 100644
--- a/apps/jnpf-web-apps-main/src/views/x/tms/course/constants.ts
+++ b/apps/jnpf-web-apps-main/src/views/x/tms/course/constants.ts
@@ -1,48 +1,3 @@
-export const ENABLE_OPTIONS = [
- { id: '1', fullName: '鍚敤' },
- { id: '0', fullName: '鍋滅敤' },
-];
-
-/** tmsCourseCategory */
-export const CATEGORY_OPTIONS = [
- { id: 'gmp', fullName: 'GMP' },
- { id: 'sop', fullName: 'SOP' },
- { id: 'safety', fullName: '瀹夊叏' },
- { id: 'skill', fullName: '鎶�鑳�' },
- { id: 'other', fullName: '鍏朵粬' },
-];
-
-/** 涓庡煿璁柟寮忛厤缃紪鐮佸榻� */
-export const TRAIN_MODE_OPTIONS = [
- { id: 'onsite', fullName: '闆嗕腑鎺堣' },
- { id: 'practice', fullName: '鎿嶄綔鎺堣' },
- { id: 'online', fullName: '鍦ㄧ嚎瀛︿範' },
-];
-
-/** 涓庤�冩牳鏂瑰紡閰嶇疆缂栫爜瀵归綈 */
-export const EVAL_MODE_OPTIONS = [
- { id: 'quiz', fullName: '鎻愰棶' },
- { id: 'practice', fullName: '鐜板満鎿嶄綔' },
- { id: 'exam', fullName: '鍦ㄧ嚎鑰冭瘯' },
- { id: 'none', fullName: '鏃犻渶鑰冩牳' },
-];
-
-export function labelOfEnabled(v?: string) {
- return ENABLE_OPTIONS.find((x) => x.id === v)?.fullName || v || '-';
-}
-
-export function labelOfCategory(v?: string) {
- return CATEGORY_OPTIONS.find((x) => x.id === v)?.fullName || v || '-';
-}
-
-export function labelOfTrainMode(v?: string) {
- return TRAIN_MODE_OPTIONS.find((x) => x.id === v)?.fullName || v || '-';
-}
-
-export function labelOfEvalMode(v?: string) {
- return EVAL_MODE_OPTIONS.find((x) => x.id === v)?.fullName || v || '-';
-}
-
/** 鍦ㄧ嚎鑰冭瘯鏃跺叧鑱旇瘯鍗峰缓璁繀濉� */
export function evalModeNeedPaper(evalMode?: string) {
return evalMode === 'exam';
--
Gitblit v1.8.0