From 60c90f24e85155da39ee6af081dafafa6b97a2b2 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Wed, 27 May 2020 10:49:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/race.js | 2 +- src/permission.js | 2 +- src/views/competitionManage/generatePaper.vue | 6 ++---- .../competitionManage/practiceList/display/index.vue | 8 ++++---- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/api/race.js b/src/api/race.js index 902bfc983..2d8d24498 100644 --- a/src/api/race.js +++ b/src/api/race.js @@ -70,7 +70,7 @@ export function deletePractice(id) { /** 录制实操试题 */ export function practiceRecordNotify(practiceId) { return request({ - url: `/api/simulation/scriptWrite/${practiceId}`, + url: `/api/scriptSimulation/${practiceId}/scriptWrite`, method: 'get' }); } diff --git a/src/permission.js b/src/permission.js index 53dc0d483..96d5874f6 100644 --- a/src/permission.js +++ b/src/permission.js @@ -19,7 +19,7 @@ function hasPermission(roles, permissionRoles) { const whiteList = ['/login', '/design/login', '/gzzbxy/relay']; // 不重定向白名单 -const designPageRegex = [/^\/design/, /^\/scriptDisplay/, /^\/publish/, /^\/orderauthor/, /^\/system/, /^\/iscs/, /^\/display\/record/, /^\/display\/manage/, /^\/apply/, /^\/plan/, /^\/display\/plan/, /^\/displayNew\/record/, /^\/displayNew\/manage/, /^\/displayNew\/plan/]; +const designPageRegex = [/^\/design/, /^\/scriptDisplay/, /^\/publish/, /^\/orderauthor/, /^\/system/, /^\/iscs/, /^\/display\/record/, /^\/display\/manage/, /^\/apply/, /^\/plan/, /^\/display\/plan/, /^\/displayNew\/record/, /^\/displayNew\/manage/, /^\/displayNew\/plan/, /^\/practiceDisplayNew/]; function isDesignPage(toRoutePath) { return designPageRegex.some(item => item.test(toRoutePath) ); diff --git a/src/views/competitionManage/generatePaper.vue b/src/views/competitionManage/generatePaper.vue index bc4b5e10b..4838a610b 100644 --- a/src/views/competitionManage/generatePaper.vue +++ b/src/views/competitionManage/generatePaper.vue @@ -36,7 +36,7 @@ @@ -142,13 +142,11 @@ export default { editScope(row) { this.$set(row, 'editScope', true); this.$nextTick(() => { - this.$set(row, 'editFocus', true); - console.log(row); + this.$refs['input' + row.id].focus(); }); }, editScopeBlur(row) { this.$set(row, 'editScope', false); - this.$set(row, 'editFocus', false); } } }; diff --git a/src/views/competitionManage/practiceList/display/index.vue b/src/views/competitionManage/practiceList/display/index.vue index 757261ba4..5a1a1ea0d 100644 --- a/src/views/competitionManage/practiceList/display/index.vue +++ b/src/views/competitionManage/practiceList/display/index.vue @@ -3,7 +3,7 @@
- +
@@ -24,9 +24,9 @@ export default { }, data() { return { - widthLeft: 780, + widthLeft: 480, size: { - width: document.documentElement.clientWidth - 780, + width: document.documentElement.clientWidth - 480, height: document.documentElement.clientHeight }, group: this.$route.query.group @@ -34,7 +34,7 @@ export default { }, watch: { '$store.state.app.windowSizeCount': function() { - this.size = { width: this.$store.state.app.width - 780, height: this.$store.state.app.height}; + this.size = { width: this.$store.state.app.width - 480, height: this.$store.state.app.height}; }, widthLeft: function(val) { this.size = { width: this.$store.state.app.width - val, height: this.$store.state.app.height}; From eb7dd84c488c1b5eb0cf23a452301ac02ea1595a Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 27 May 2020 11:07:04 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=94=9F=E6=88=90=E8=AF=95=E5=8D=B7?= =?UTF-8?q?=E5=AE=9E=E6=93=8D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/competitionManage/generatePaper.vue | 27 ++- .../competitionManage/operateQuestion.vue | 218 ++++++++++++++++++ src/views/competitionManage/theoryReview.vue | 22 +- 3 files changed, 232 insertions(+), 35 deletions(-) create mode 100644 src/views/competitionManage/operateQuestion.vue diff --git a/src/views/competitionManage/generatePaper.vue b/src/views/competitionManage/generatePaper.vue index bc4b5e10b..124c7df3f 100644 --- a/src/views/competitionManage/generatePaper.vue +++ b/src/views/competitionManage/generatePaper.vue @@ -49,7 +49,7 @@
实操试题列表 - 添加试题 + 添加试题 预览
- - + prop="name" + label="实操名称" + /> + diff --git a/src/views/competitionManage/theoryReview.vue b/src/views/competitionManage/theoryReview.vue index f7b52b3f0..efc2d4be4 100644 --- a/src/views/competitionManage/theoryReview.vue +++ b/src/views/competitionManage/theoryReview.vue @@ -57,27 +57,7 @@ export default { status: '', totalScore: 0, passScore: 10 - }, - examQuestions: [ - { - topic: 'PH玻璃电极只能在5~60℃范围内使用,而且还应通过温度校正装置来消除影响。', - type: 'judge', - optionList: [ - {id: '160', content: '√', correct: true}, - {id: '161', content: '×', correct: false} - ] - }, - { - topic: '调度工作是( ___ )工作中的一个重要组成部分。', - type: 'select', - optionList: [ - {id: '40', content: '煤矿管理', correct: false}, - {id: '41', content: '企业管理', correct: true}, - {id: '42', content: '安全生产', correct: false}, - {id: '43', content: '生产组织', correct: false} - ] - } - ] + } }; }, computed: {