From 62a8760292b2c0517fac7a506975fd42004fcae1 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 9 Sep 2026 19:38:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93=E7=BC=96=E8=BE=91=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E6=97=B6=E9=99=90=E6=94=B9=E4=B8=BA=E5=88=86=E9=92=9F?= =?UTF-8?q?=E5=BD=95=E5=85=A5=EF=BC=8C=E9=BB=98=E8=AE=A40=E4=B8=8D?= =?UTF-8?q?=E9=99=90=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/ops_vue_js/src/i18n/en.json | 4 ++-- frontend/ops_vue_js/src/i18n/zh-CN.json | 4 ++-- frontend/ops_vue_js/src/views/quiz/ManageBanks.vue | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/ops_vue_js/src/i18n/en.json b/frontend/ops_vue_js/src/i18n/en.json index e028fa7..23698e9 100644 --- a/frontend/ops_vue_js/src/i18n/en.json +++ b/frontend/ops_vue_js/src/i18n/en.json @@ -943,13 +943,13 @@ "delete_msg": "Deleting \"{name}\" will also delete all its questions. Continue?", "err_name_required": "Please enter the bank name", "draw_count_hint": "Random draw count per type; draws all of that type if fewer are available", - "duration_seconds_hint": "Seconds, 0 = no time limit", "back": "Back to banks", "manage_questions": "Manage Questions", "single_short": "S", "multiple_short": "M", "judge_short": "J", "blank_short": "B", - "manage": "Manage" + "manage": "Manage", + "duration_minutes_hint": "In minutes, 0 = no time limit" } } diff --git a/frontend/ops_vue_js/src/i18n/zh-CN.json b/frontend/ops_vue_js/src/i18n/zh-CN.json index 9fcdf87..546a561 100644 --- a/frontend/ops_vue_js/src/i18n/zh-CN.json +++ b/frontend/ops_vue_js/src/i18n/zh-CN.json @@ -944,13 +944,13 @@ "delete_msg": "删除题库\"{name}\"将同时删除其下所有题目,确认继续?", "err_name_required": "请填写题库名称", "draw_count_hint": "每种题型随机抽取数量,题目不足则该题型全部抽取", - "duration_seconds_hint": "单位秒,0 表示不限时", "back": "返回题库列表", "manage_questions": "管理题目", "single_short": "单", "multiple_short": "多", "judge_short": "判", "blank_short": "填", - "manage": "题库管理" + "manage": "题库管理", + "duration_minutes_hint": "单位分钟,0 表示不限时" } } diff --git a/frontend/ops_vue_js/src/views/quiz/ManageBanks.vue b/frontend/ops_vue_js/src/views/quiz/ManageBanks.vue index 5e498e6..c9bfabe 100644 --- a/frontend/ops_vue_js/src/views/quiz/ManageBanks.vue +++ b/frontend/ops_vue_js/src/views/quiz/ManageBanks.vue @@ -149,7 +149,7 @@ const form = reactive({ countMultiple: 10, countJudge: 20, countBlank: 10, - durationSec: 300, + durationMin: 0, }) function openAdd() { @@ -160,7 +160,7 @@ function openAdd() { form.countMultiple = 10 form.countJudge = 20 form.countBlank = 10 - form.durationSec = 300 + form.durationMin = 0 showModal.value = true } @@ -173,7 +173,7 @@ function openEdit(row, event) { form.countMultiple = row.countMultiple || 10 form.countJudge = row.countJudge || 20 form.countBlank = row.countBlank || 10 - form.durationSec = row.durationSec + form.durationMin = Math.round((row.durationSec || 0) / 60) showModal.value = true } @@ -192,7 +192,7 @@ async function handleSave() { countMultiple: form.countMultiple, countJudge: form.countJudge, countBlank: form.countBlank, - durationSec: form.durationSec, + durationSec: (form.durationMin || 0) * 60, } const { errCode } = editingId.value ? await quizApi.updateBank({ id: editingId.value, ...payload }) @@ -478,13 +478,13 @@ onMounted(fetchBanks)
- {{ t('banks.duration_seconds_hint') }} + {{ t('banks.duration_minutes_hint') }}