From a26f6b45d00e014599fedcba5fbf9fa90b897a07 Mon Sep 17 00:00:00 2001
From: CherrysChang <1935003650@qq.com>
Date: Tue, 14 Apr 2020 17:48:06 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E6=A1=88=E4=BE=8B=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E5=88=9D=E5=A7=8B=E9=A1=B5=E9=9D=A2=E6=95=B4=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/TrainHome.vue | 24 +-
src/views/train/case-detail.vue | 535 +++++++++++++++++++++++++++++++-
src/views/train/case-list.vue | 28 +-
3 files changed, 556 insertions(+), 31 deletions(-)
diff --git a/src/views/TrainHome.vue b/src/views/TrainHome.vue
index e78c537..553ec59 100644
--- a/src/views/TrainHome.vue
+++ b/src/views/TrainHome.vue
@@ -7,18 +7,18 @@
diff --git a/src/views/train/case-detail.vue b/src/views/train/case-detail.vue
index ea32ca1..ed454cb 100644
--- a/src/views/train/case-detail.vue
+++ b/src/views/train/case-detail.vue
@@ -1,13 +1,542 @@
- 案例新增查看修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 案例描述
+
+
+
+
+
+
+
+
+
+
+
+ 案例数据
+
+
+
+
+
+
+
+
+
+
+ {{file.name}}
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+ 判分设置
+ 合计:{{dataForm.totalScore}} 分
+
+
+
+ 流程判分指标
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
diff --git a/src/views/train/case-list.vue b/src/views/train/case-list.vue
index 9446cd4..36ae3b9 100644
--- a/src/views/train/case-list.vue
+++ b/src/views/train/case-list.vue
@@ -32,25 +32,23 @@
-
+
-
-
+
+
{{ scope.row.type === 1 ? '练习': '' }}
{{ scope.row.type === 2 ? '考核': '' }}
- {{ scope.row.type === 3 ? '竞赛': '' }}
-
+
- {{ scope.row.isAdmin === 0 ? '教师': '' }}
- {{ scope.row.isAdmin === 1 ? '系统': '' }}
+ {{ scope.row.isAdmin === 1 ? '管理员': '' }}
+ {{ scope.row.isAdmin === 2 ? '教师': '' }}
-
+
-
查看
@@ -61,11 +59,10 @@
删除
-
+
-
+ :total="totalCount" style="float: right">
@@ -254,11 +251,10 @@
this.currentPage = 1;
},
toInputForm(row, isEdit) {
- let toPath = '/backstage/project/inputForm';
if (row) {
- this.$router.push({path: toPath, query: {id: row.id, isEdit: isEdit}});// 编辑或查看
+ this.$router.push({name: 'CaseDetail', query: {id: row.id, isEdit: isEdit}});// 编辑或查看
} else {
- this.$router.push({path: toPath});// 新增
+ this.$router.push({name: 'CaseDetail'});// 新增
}
},
handleSizeChange(size) {