From cef13a9d868c95992f97938c8a6b7508616832f3 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 7 Jan 2021 17:53:22 +0800 Subject: [PATCH] . --- src/api/index.js | 14 +- src/components/doReview/index.vue | 286 ------------------ src/components/testPaperDetail/index.vue | 25 +- src/libs/route/addRoutes.js | 9 +- src/pages/account/login/index.vue | 4 +- src/pages/achievement/detail/index.vue | 25 +- src/pages/achievement/list/examResults.vue | 3 +- .../achievement/statistics}/index.vue | 0 src/pages/assessment/detail/index.vue | 25 +- src/pages/assessment/list/index.vue | 66 +--- src/pages/assessment/list/studentSide.vue | 21 +- src/pages/assessment/list/studentTree.vue | 63 ++-- src/pages/assessment/monitor/index.vue | 6 +- src/pages/assessment/review/index.vue | 17 +- src/pages/assessment/scoreQuery/index.vue | 180 ++++++----- src/pages/exception/error/403/index.vue | 33 +- src/pages/exception/error/404/index.vue | 33 +- src/pages/index/list/index.vue | 19 +- src/pages/practice/detail/index.vue | 25 +- src/pages/practice/list/index.vue | 38 ++- src/pages/practice/list/studentSide.vue | 6 +- src/pages/practice/list/studentTree.vue | 37 ++- src/pages/practice/scoreQuery/index.vue | 168 +++++----- src/pages/quesBank/list/globalQuesBank.vue | 2 +- src/pages/quesBank/list/myQuesBank.vue | 220 +++++++------- src/pages/quesBank/list/quesDialog.vue | 13 +- src/pages/testPaper/add/index.vue | 68 ++++- src/pages/testPaper/show/index.vue | 23 ++ src/router/modules/achievement.js | 2 +- src/router/modules/assessment.js | 2 +- src/router/modules/practice.js | 2 +- src/router/modules/testPaper.js | 14 +- src/router/permission.js | 12 +- src/store/modules/practice.js | 9 + 34 files changed, 675 insertions(+), 795 deletions(-) delete mode 100644 src/components/doReview/index.vue rename src/{components/achiStatistics => pages/achievement/statistics}/index.vue (100%) create mode 100644 src/pages/testPaper/show/index.vue diff --git a/src/api/index.js b/src/api/index.js index bd6c7ae..949b97f 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -47,8 +47,8 @@ export default { queryStudent: `management/student/list`, updateStudent: `management/student/updateStudent`, studentGetWorkNumber: `management/student/getWorkNumber`, - exportFailureStudent: `management/student/exportFailure`, - uploadFileStudent: `management/student/uploadFile`, + exportFailureStudent: `${Setting.apiBaseURL}/management/student/exportFailure`, + uploadFileStudent: `${Setting.apiBaseURL}/management/student/uploadFile`, downloadStudentTemp: 'http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658660956.xlsx', // 一级部门 @@ -72,8 +72,8 @@ export default { queryStaff: `management/staff/managementList`, updateStaff: `management/staff/updateStaff`, getWorkNumber: `management/staff/getWorkNumber`, - exportFailureStaff: `management/staff/exportFailure`, - uploadFileStaff: `management/staff/uploadFile`, + exportFailureStaff: `${Setting.apiBaseURL}/management/staff/exportFailure`, + uploadFileStaff: `${Setting.apiBaseURL}/management/staff/uploadFile`, downloadStaffTemp: `http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658763812.xlsx`, // 角色管理 @@ -88,6 +88,7 @@ export default { toAssign: `management/permission/toAssign`, getTypeByOneLever:`cjEnterprise/questionBank/getTypeByOneLever`, + getCourses:`management/testPaper/getCourses`, typesList:`cjEnterprise/questionTypes/typesList`, // 共享相关 deleteBySharing:`management/questionSharing/deleteBySharing`, @@ -117,10 +118,12 @@ export default { // 试题信息相关 addQuestions:`management/questions/addQuestions`, fuzzyQuery:`management/questions/fuzzyQuery`, + queryKnowledgePoints:`management/questions/queryKnowledgePoints`, getSelectInfo:`management/questions/getSelectInfo`, pageByChoiceList:`management/questions/pageByChoiceList`, statistical:`management/questions/statistical`, getQuestionListBySelect:`management/questions/getQuestionListBySelect`, + listByPage:`cjEnterprise/questionBank/listByPage`, // 考核管理 addAssessment:`/management/assessment/addAssessment`, @@ -146,7 +149,7 @@ export default { pageByCondition:`cjEnterprise/questions/pageByCondition`, updateQuestions:`cjEnterprise/questions/update`, getExcel:`cjEnterprise/questions/getExcel`, - impExcel:`management/questions/impExcel`, + impExcel:`${Setting.apiBaseURL}/management/questions/impExcel`, // 考核成绩管理 answerDetail:`management/paperRecord/answerDetail`, @@ -156,6 +159,7 @@ export default { savepaperRecord:`management/paperRecord/save`, teacherByGetAchievement:`management/paperRecord/teacherByGetAchievement`, achievementStatistics:`/management/paperRecord/achievementStatistics`, + exportAssessment:`/management/paperRecord/export`, // 留言板 delComment:`/management/messageBoard/delComment`, diff --git a/src/components/doReview/index.vue b/src/components/doReview/index.vue deleted file mode 100644 index 0b2bce6..0000000 --- a/src/components/doReview/index.vue +++ /dev/null @@ -1,286 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/components/testPaperDetail/index.vue b/src/components/testPaperDetail/index.vue index 44d9cb2..8636601 100644 --- a/src/components/testPaperDetail/index.vue +++ b/src/components/testPaperDetail/index.vue @@ -13,7 +13,9 @@
@@ -63,19 +65,24 @@ export default { tabs: [ { id: 1, - name: '单选题' + name: '单选题', + show: true },{ id: 2, - name: '多选题' + name: '多选题', + show: true },{ id: 3, - name: '填空题' + name: '填空题', + show: true },{ id: 4, - name: '判断题' + name: '判断题', + show: true },{ id: 5, - name: '简答题' + name: '简答题', + show: true } ], active: 1, @@ -115,6 +122,12 @@ export default { }) } this.allData = data + let tabs = this.tabs + data.list1.length || (tabs[0].show = false) + data.list2.length || (tabs[1].show = false) + data.list3.length || (tabs[2].show = false) + data.list4.length || (tabs[3].show = false) + data.list5.length || (tabs[4].show = false) this.curType = this.allData.list1 this.handleOptions() }, diff --git a/src/libs/route/addRoutes.js b/src/libs/route/addRoutes.js index 25359ba..a1f7c5f 100644 --- a/src/libs/route/addRoutes.js +++ b/src/libs/route/addRoutes.js @@ -25,10 +25,11 @@ function createRoute(data){ } export default function(data,path){ - generateBtnPermission(data) + // generateBtnPermission(data) createRoute(data) let routes = router.options.routes - routes[1].children = [...routes[1].children,...newRoutes] - store.auth.commit("addRoutes", { routes }) - router.addRoutes(routes) + console.log(11,routes) + // routes[1].children = [...routes[1].children,...newRoutes] + // store.auth.commit("addRoutes", { routes }) + // router.addRoutes(routes) } \ No newline at end of file diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 5d76080..65be1d2 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -59,7 +59,7 @@ export default { return { loginForm: { username: 'manager', - password: 'huoran123', + password: '111aaa', }, loginRules: { username: [{ required: true, message: '请输入用户名', trigger: 'blur' }], @@ -92,7 +92,7 @@ export default { password: this.loginForm.password } this.login(data).then(() => { - let redirect = decodeURIComponent(this.$route.query.redirect || '/') + let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : '/index' this.$router.replace(redirect) }).catch(() => {}) } diff --git a/src/pages/achievement/detail/index.vue b/src/pages/achievement/detail/index.vue index 1a132e3..21ae397 100644 --- a/src/pages/achievement/detail/index.vue +++ b/src/pages/achievement/detail/index.vue @@ -13,7 +13,9 @@
@@ -69,19 +71,24 @@ export default { tabs: [ { id: 1, - name: '单选题' + name: '单选题', + show: true },{ id: 2, - name: '多选题' + name: '多选题', + show: true },{ id: 3, - name: '判断题' + name: '判断题', + show: true },{ id: 4, - name: '简答题' + name: '简答题', + show: true },{ id: 5, - name: '填空题' + name: '填空题', + show: true } ], active: 1, @@ -106,6 +113,12 @@ export default { this.paperName = res.paperName this.time = res.time this.allData = res.data + let tabs = this.tabs + res.data.list1.length || (tabs[0].show = false) + res.data.list2.length || (tabs[1].show = false) + res.data.list3.length || (tabs[2].show = false) + res.data.list4.length || (tabs[3].show = false) + res.data.list5.length || (tabs[4].show = false) this.curType = this.allData.list1 this.handleOptions() }) diff --git a/src/pages/achievement/list/examResults.vue b/src/pages/achievement/list/examResults.vue index f6c3993..0c937c8 100644 --- a/src/pages/achievement/list/examResults.vue +++ b/src/pages/achievement/list/examResults.vue @@ -91,6 +91,7 @@ diff --git a/src/pages/assessment/list/studentTree.vue b/src/pages/assessment/list/studentTree.vue index 65f20a7..cf9b717 100644 --- a/src/pages/assessment/list/studentTree.vue +++ b/src/pages/assessment/list/studentTree.vue @@ -1,6 +1,18 @@