From db7146e1b96e3df9de8413c2804fefb36d936402 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Tue, 11 May 2021 14:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E6=A0=B8=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Sidebar.vue | 13 +- src/components/page/AddAssessment.vue | 521 ++++++++++++++++++ .../page/{AddClass.vue => AddMatch.vue} | 22 +- src/components/page/Assessment.vue | 434 +++++++++++++++ src/components/page/Match.vue | 440 +++++++++++++++ src/config/index.js | 2 +- src/router/routes.js | 19 +- src/utils/api.js | 14 +- 8 files changed, 1448 insertions(+), 17 deletions(-) create mode 100644 src/components/page/AddAssessment.vue rename src/components/page/{AddClass.vue => AddMatch.vue} (97%) create mode 100644 src/components/page/Assessment.vue create mode 100644 src/components/page/Match.vue diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index 4e16bf1..317ed57 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -63,6 +63,11 @@ export default { index: 'dashboard', title: '班级教学' }, + { + icon: 'el-icon-c-scale-to-original', + index: 'assessment', + title: '考核管理' + }, { icon: 'el-icon-collection', index: 'achievement', @@ -83,6 +88,11 @@ export default { index: 'student', title: '学生管理' }, + { + icon: 'el-icon-takeaway-box', + index: 'match', + title: '竞赛实验' + }, { icon: 'el-icon-office-building', index: 'backstage', @@ -97,9 +107,10 @@ export default { menus: [], actives: { dashboard: ['addclass'], + assessment: ['addAssessment'], achievement: ['experiment','experimentVir','experimentTeach','addexperiment','showExperiment'], project: ['addproject','program','programOptions'], - backstage: ['report'] + match: ['addMatch'] } }; }, diff --git a/src/components/page/AddAssessment.vue b/src/components/page/AddAssessment.vue new file mode 100644 index 0000000..fc438c5 --- /dev/null +++ b/src/components/page/AddAssessment.vue @@ -0,0 +1,521 @@ + + + + \ No newline at end of file diff --git a/src/components/page/AddClass.vue b/src/components/page/AddMatch.vue similarity index 97% rename from src/components/page/AddClass.vue rename to src/components/page/AddMatch.vue index 68bacb5..a98e2cd 100644 --- a/src/components/page/AddClass.vue +++ b/src/components/page/AddMatch.vue @@ -6,7 +6,7 @@
返回 - {{isDetail ? '查看' : (id ? '更新' : '创建')}}教学实验 + {{isDetail ? '查看' : (id ? '更新' : '创建')}}竞赛实验
{{id ? '更新' : '创建'}} @@ -16,9 +16,9 @@
-

实验名称

+

竞赛名称

-

班级名称

+

竞赛级别

{ if(res.errmessage != 'success') { - this.$message.warning('实验名称重复,请重新输入') + this.$message.warning('竞赛名称重复,请重新输入') this.expNameRepeat = true }else{ this.expNameRepeat = false diff --git a/src/components/page/Assessment.vue b/src/components/page/Assessment.vue new file mode 100644 index 0000000..b67dc4b --- /dev/null +++ b/src/components/page/Assessment.vue @@ -0,0 +1,434 @@ + + + + + \ No newline at end of file diff --git a/src/components/page/Match.vue b/src/components/page/Match.vue new file mode 100644 index 0000000..463bda8 --- /dev/null +++ b/src/components/page/Match.vue @@ -0,0 +1,440 @@ + + + + + \ No newline at end of file diff --git a/src/config/index.js b/src/config/index.js index 8014e53..254153d 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -28,5 +28,5 @@ export default { /** * @description 是否使用动态路由 */ - dynamicRoute: true + dynamicRoute: false } \ No newline at end of file diff --git a/src/router/routes.js b/src/router/routes.js index 98d03f1..a40d8af 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -21,10 +21,20 @@ export default [ meta: { title: '班级教学' } }, { - path: '/addclass', - component: () => import('../components/page/AddClass.vue'), + path: '/addMatch', + component: () => import('../components/page/AddMatch.vue'), meta: { title: '新建班级' } }, + { + path: '/assessment', + component: () => import('../components/page/Assessment.vue'), + meta: { title: '考核管理' } + }, + { + path: '/addAssessment', + component: () => import('../components/page/AddAssessment.vue'), + meta: { title: '考核管理' } + }, { path: '/achievement', component: () => import('../components/page/Achievement.vue'), @@ -90,6 +100,11 @@ export default [ component: () => import('../components/page/Student.vue'), meta: { title: '学生管理' } }, + { + path: '/match', + component: () => import('../components/page/Match.vue'), + meta: { title: '竞赛实验' } + }, { path: '/backstage', component: () => import('../components/page/Backstage.vue'), diff --git a/src/utils/api.js b/src/utils/api.js index 2bab463..2fc0dc7 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -7,8 +7,10 @@ let uploadURL = 'http://8.134.8.197:8001' let host = '' +let host1 = '' if(process.env.NODE_ENV === 'development'){ - host = 'http://122.9.154.146' + host1 = 'http://122.9.154.146' + host = 'http://192.168.31.152:9090'//榕 } export default { @@ -65,6 +67,14 @@ export default { upload: `${host}/evaluation/tms/questions/upload`, //excel模板文件上传 export_failure: `${host}/evaluation/tms/questions/export_failure`, //导出导入失败的数据和失败原因 + // 考核管理 + assessmentByScreen: `${host}/evaluation/kd/assessment/assessmentByScreen`, + deleteBatchIds: `${host}/evaluation/kd/assessment/deleteBatchIds`, + saveAssesment: `${host}/evaluation/kd/assessment/save`, + editAssessment: `${host}/evaluation/kd/assessment/editAssessment`, + getMineClass: `${host}/evaluation/kd/assessment/getMineClass`, + checkAssessmentName: `${host}/evaluation/kd/assessment/checkAssessmentName`, + expDelete: `${host}/evaluation/tms/exp/delete`, //删除实验教学 expList: `${host}/evaluation/tms/exp/list`, //实验教学列表 expSave: `${host}/evaluation/tms/exp/save`, //添加实验教学 @@ -74,7 +84,7 @@ export default { getInvitationCode: `${host}/evaluation/tms/exp/getInvitationCode`, //查询邀请码是否存在 expInfo1: `${host}/evaluation/tms/exp/upload`, //实验教学提前结束 - queryAllManagements: `${host}/project/ProjectManagement/queryAllManagementsByKD`, //项目管理列表信息 + queryAllManagements: `${host1}/project/ProjectManagement/queryAllManagementsByKD`, //项目管理列表信息 queryManagements: `${host}/project/ProjectManagement/KDqueryManagements`, //项目管理列表信息 addRole: `${host}/project/ProjectManagement/addRole`, //新增案例对象 avgValues: `${host}/project/ProjectManagement/avgValues`, //平均分配分值