From c642a35eae5e31c7cf4e52a07c0fd0c78d22270d Mon Sep 17 00:00:00 2001 From: Vce Date: Wed, 22 May 2024 18:34:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/api/examSystem/examSystem.js | 6 +- .../examManagement/examManagement.vue | 48 +++---------- .../examRegulation/examRegulation.vue | 2 +- .../learningMaterial/learningMaterial.vue | 4 +- .../noticeManagement/noticeManagement.vue | 40 ++++++++--- .../pointManagement/pointManagement.vue | 17 ++++- .../questionManagement/questionManagement.vue | 52 ++++++++++---- .../subjectManagement/subjectManagement.vue | 5 +- .../examSystem2/trainRecord/trainPlan.vue | 69 ++++++++++++------- 9 files changed, 148 insertions(+), 95 deletions(-) diff --git a/src/assets/js/api/examSystem/examSystem.js b/src/assets/js/api/examSystem/examSystem.js index 145a8e1d..ed1e620f 100644 --- a/src/assets/js/api/examSystem/examSystem.js +++ b/src/assets/js/api/examSystem/examSystem.js @@ -84,12 +84,14 @@ export const delPaperApi = data => post('exam/paper/delete', data) //查询题 export const getExamTrainRecordApi = data => post('exam/trainRecord/page', data) //查询题目及选项 // 通知管理 -export const addConfigApi = data => post('exam/config/add', data) //添加 -export const queryBySnConfigApi = data => post('exam/config/queryBySn', data) //通过id查询考试通知配置信息 export const editConfigApi = data => post('exam/config/edit', data) //通过id查询考试通知配置信息 export const getNoticePageApi = data => post('exam/notice/page', data) //分页查询通知记录 export const delNoticeApi = data => post('exam/notice/delete', data) //删除通知记录 +// 通知配置管理 +export const queryBySnConfigApi = data => post('exam/config/queryBySn', data) //通过id查询考试通知配置信息 +export const addConfigApi = data => post('exam/config/add', data) //添加 + // 积分管理 export const pageExamPointConfigApi = data => post('exam/examPointConfig/page', data) //分页查询 diff --git a/src/views/projectFront/examSystem2/examManagement/examManagement.vue b/src/views/projectFront/examSystem2/examManagement/examManagement.vue index d53e1e3e..1290fa74 100644 --- a/src/views/projectFront/examSystem2/examManagement/examManagement.vue +++ b/src/views/projectFront/examSystem2/examManagement/examManagement.vue @@ -61,19 +61,19 @@
- + - + - + 分钟 - + @@ -83,7 +83,7 @@ - +
@@ -404,42 +404,15 @@ export default { emActiveTab: 'examRecord', examManageInfo:{examTotalScore:'100',passScore: 60,questionCount: '100', examPeriod: '2024-05-12 00:00:00-2024-06-01 00:00:00', joinCount: '100',noJoinCount: '2'}, isExamManage: false, // 考试管理开关 - examInfoList: [ - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - {examineeName: '123',idCard: '123456789123456789',questionName:'123123123123123123123123',questionType:'单选题',answer:'123123123123123123123123123123123'}, - ], // 考试信息列表 + examInfoList: [], // 考试信息列表 activeTab: '1', // 考试信息列表Tab examDetailInfo:{}, // 考试基本信息 - level1CompanyData: [ // 随机抽题左边树形数据 - { label: "一级 1", children: [ { label: "二级 1-1", children: [ { label: "三级 1-1-1", }, ], }, ], }, - { label: "一级 1", children: [ { label: "二级 1-1", children: [ { label: "三级 1-1-1", }, ], }, ], }, - { label: "一级 1", children: [ { label: "二级 1-1", children: [ { label: "三级 1-1-1", }, ], }, ], }, - ], + level1CompanyData: [], defaultProps: { // 随机抽题左边树形映射数据 children: "children", label: "workerName", }, - questionList: [ // 考试题目信息列表 - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionInfo: 'sldkjalskfj;lsdjfsl;dkfj;sldfkslkdfjslkdfjsldkfjslkdfjsl', questionStatus: '1' }, - { questionStatus: '0' } - ], + questionList: [], subjectName: '', // 科目名字 questionName: '', // 试题名称 data: generateData(), @@ -881,8 +854,6 @@ export default { }, //新增/编辑 submitBtn() { - console.log("=====================================") - console.log(this.examForm,this.examAddDetail.questions) // if(this.studyCycle.length > 0){ // console.log('==========studyCycle-submitBtn==========',this.studyCycle) // this.addCourseForm.beginTime = this.studyCycle[0] @@ -893,10 +864,7 @@ export default { // this.addCourseForm.projectSn = this.$store.state.projectSn; // this.examForm.projectSn = this.projectSn this.$refs.examForm.validate((valid) => { - console.log(valid); if (valid) { - console.log(this.title,this.examAddDetail.questions.map(item => item.id).join(','),this.examAddDetail.questions.filter(item => item.type == 1).length,this.examForm.examMode); - let examInfo = { checkQuestionType:this.examForm.examMode, name:this.examForm.subjectName, diff --git a/src/views/projectFront/examSystem2/examRegulation/examRegulation.vue b/src/views/projectFront/examSystem2/examRegulation/examRegulation.vue index 768bd90b..19ae439f 100644 --- a/src/views/projectFront/examSystem2/examRegulation/examRegulation.vue +++ b/src/views/projectFront/examSystem2/examRegulation/examRegulation.vue @@ -44,7 +44,7 @@
- + diff --git a/src/views/projectFront/examSystem2/learningMaterial/learningMaterial.vue b/src/views/projectFront/examSystem2/learningMaterial/learningMaterial.vue index b2ee3b47..b3fd945d 100644 --- a/src/views/projectFront/examSystem2/learningMaterial/learningMaterial.vue +++ b/src/views/projectFront/examSystem2/learningMaterial/learningMaterial.vue @@ -285,7 +285,7 @@ export default { }, editBefore(item,title){ this.title = title - this.addCourseForm = item + this.addCourseForm = JSON.parse(JSON.stringify(item)) this.coverFileList = JSON.parse(item.coverImg) this.materialFileList = JSON.parse(item.fileUrl) this.dialogVisible = true @@ -494,7 +494,7 @@ export default { display: flex; justify-content: center; width: 100%; - height: 680px; + height: 600px; /deep/ .el-dialog__body { padding: 0 20px; } diff --git a/src/views/projectFront/examSystem2/noticeManagement/noticeManagement.vue b/src/views/projectFront/examSystem2/noticeManagement/noticeManagement.vue index 9524633e..ee438ed7 100644 --- a/src/views/projectFront/examSystem2/noticeManagement/noticeManagement.vue +++ b/src/views/projectFront/examSystem2/noticeManagement/noticeManagement.vue @@ -2,17 +2,19 @@