From fcb060fde0c705602f32c6d64f7158811fd7cb5a Mon Sep 17 00:00:00 2001 From: qinzhenpen Date: Thu, 15 Oct 2026 10:23:00 +0800 Subject: [PATCH] refactor(training-task): streamline SVG and input elements for improved readability - Cleaned up SVG and input element formatting for consistency and readability. - Ensured proper spacing and alignment in the template structure. - Enhanced the overall maintainability of the code by reducing unnecessary line breaks and improving element organization. --- src/views/schoolAdmin/trainingTask/index.vue | 274 +- src/views/teacherEnd/trainingTask/index.vue | 2613 +++++++++--------- 2 files changed, 1402 insertions(+), 1485 deletions(-) diff --git a/src/views/schoolAdmin/trainingTask/index.vue b/src/views/schoolAdmin/trainingTask/index.vue index fb7e6d1..b99ce3f 100644 --- a/src/views/schoolAdmin/trainingTask/index.vue +++ b/src/views/schoolAdmin/trainingTask/index.vue @@ -6,23 +6,23 @@ - - - + + + - - - - - + + + + +
- - + +
@@ -48,22 +48,16 @@
- - + + 查询 @@ -71,18 +65,18 @@
@@ -93,33 +87,23 @@
- + 所属项目:
- -
- + 显示 {{ filteredTasks.length }} / {{ tasks.length }} 条
@@ -128,27 +112,19 @@
-
+
- + - + - + - +
@@ -158,12 +134,12 @@
- + {{ task.project || "默认实训任务" }} - {{ task.enabled ? '启用' : '停用' }} + {{ task.enabled ? "启用" : "停用" }}
@@ -172,15 +148,15 @@
- - + + {{ task.objectives?.length || 0 }} 个目标 - - + + {{ task.steps?.length || 0 }} 个步骤 @@ -190,8 +166,8 @@
- - + + 编辑任务 @@ -204,39 +180,32 @@
- +
- - + + - {{ dialogMode === "view" ? 'Training Task Preview' : 'Training Task Editor' }} + {{ dialogMode === "view" ? "Training Task Preview" : "Training Task Editor" }}

{{ dialogMode === "view" ? "查看实训任务" : "编辑实训任务" }}

管理员维护系统默认实训配置,教学班未单独配置时学生端使用这里的实训背景、目标、要求和案例文档。

@@ -244,7 +213,7 @@
- +
所属项目 @@ -253,8 +222,8 @@
- - + +
实训任务 @@ -263,8 +232,8 @@
- - + +
任务状态 @@ -298,7 +267,7 @@
- {{ taskForm.enabled ? '已启用' : '已停用' }} + {{ taskForm.enabled ? "已启用" : "已停用" }}
@@ -319,23 +288,17 @@
{{ index + 1 }}
-
@@ -352,14 +315,14 @@ 03
- - + +
{{ slot.label }} @@ -368,29 +331,17 @@
- + - - - + + + - {{ uploadingField === slot.key ? '上传中...' : '上传' }} + {{ uploadingField === slot.key ? "上传中..." : "上传" }} - 清除 + 清除
@@ -403,35 +354,28 @@
- +
{{ index + 1 }} -
@@ -442,13 +386,13 @@