From 255e4d9433527b305d4031cc50128cab75d0d0b5 Mon Sep 17 00:00:00 2001 From: cgd_mac <349008059@qq.com> Date: Wed, 23 Feb 2022 14:34:04 +0800 Subject: [PATCH 01/10] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DbLearnCount/CourseCatalogue.vue | 153 ++++++++++++++++++ src/components/DbLearnCount/index.vue | 5 + src/views/mycourse/courseLearn/index.vue | 2 +- src/views/mycourse/index.vue | 13 -- .../mycourse/mycourseList/MyCourseList.vue | 2 +- src/views/myexam/index.vue | 19 ++- src/views/mypractice/index.vue | 48 +++--- 7 files changed, 201 insertions(+), 41 deletions(-) create mode 100644 src/components/DbLearnCount/CourseCatalogue.vue delete mode 100644 src/views/mycourse/index.vue diff --git a/src/components/DbLearnCount/CourseCatalogue.vue b/src/components/DbLearnCount/CourseCatalogue.vue new file mode 100644 index 0000000..a2b1918 --- /dev/null +++ b/src/components/DbLearnCount/CourseCatalogue.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/src/components/DbLearnCount/index.vue b/src/components/DbLearnCount/index.vue index 86b364f..2a12d37 100644 --- a/src/components/DbLearnCount/index.vue +++ b/src/components/DbLearnCount/index.vue @@ -23,12 +23,17 @@ 学习状态: {{ data.status }} + + + - - diff --git a/src/views/mycourse/mycourseList/MyCourseList.vue b/src/views/mycourse/mycourseList/MyCourseList.vue index 725900f..f492834 100644 --- a/src/views/mycourse/mycourseList/MyCourseList.vue +++ b/src/views/mycourse/mycourseList/MyCourseList.vue @@ -161,7 +161,7 @@ export default { }, // 获取列表 handleRefresh () { - + this.$refs.table.refresh() }, handleOk () { this.$refs.table.refresh() diff --git a/src/views/myexam/index.vue b/src/views/myexam/index.vue index beab10b..80fc4ce 100644 --- a/src/views/myexam/index.vue +++ b/src/views/myexam/index.vue @@ -13,7 +13,7 @@ ">
- + import { STable, SearchCom } from '@/components' import { reqExamList, reqExamAttendList, reqExamSubscribe } from '@/api/myexam/exam' +import { dictionaryDropDown } from '@/api/sys/dictionaryItem' +import { dictToTree } from '@/utils/util' export default { components: { STable, SearchCom }, @@ -87,10 +89,10 @@ export default { loading: false, activeTab: '1', queryParam: { - examType: '' // 课程分类 + examClassify: '' // 课程分类 }, queryOptions: [ - { type: 'select-dic-tree', placeholder: '考试分类', key: 'examType', options: [] } + { type: 'select-dic-tree', placeholder: '课程分类', key: 'examClassify', options: [] } ], examColumns: [ { @@ -186,15 +188,24 @@ export default { } }, mounted () { + this.dictionaryDropDown() }, methods: { + dictionaryDropDown () { + dictionaryDropDown({ dictionaryCode: '0006' }).then((res) => { + const result = dictToTree(res.data, [], 0) + this.queryOptions[0].options = result + this.loading = false + }) + }, // 搜索 handleRefresh () { const { activeTab } = this + console.log('activeTab', activeTab) if (activeTab === '1') { this.$refs.examTable.refresh() } else { - this.$refs.examDoneColumns.refresh() + this.$refs.examDoneTable.refresh() } }, // 预约考试 diff --git a/src/views/mypractice/index.vue b/src/views/mypractice/index.vue index f6dd9bb..309f035 100644 --- a/src/views/mypractice/index.vue +++ b/src/views/mypractice/index.vue @@ -22,28 +22,32 @@
- - - - - -

{{ j.courseName }}

-
- 开始答题 -
-
-
-
-
+ + + From e05d8f708431db225b710aabcc2bb6e843c339f3 Mon Sep 17 00:00:00 2001 From: 18571350067 Date: Wed, 23 Feb 2022 14:38:07 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E9=A2=84=E7=BA=A6=E8=80=83=E8=AF=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=AD=97=E6=A0=B7=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/myexam/index.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/views/myexam/index.vue b/src/views/myexam/index.vue index beab10b..0343318 100644 --- a/src/views/myexam/index.vue +++ b/src/views/myexam/index.vue @@ -34,14 +34,9 @@ {{ record.examTime }}分钟 - -
From ca71b6e205c39f4979a102646568c80221916348 Mon Sep 17 00:00:00 2001 From: cgd_mac <349008059@qq.com> Date: Wed, 23 Feb 2022 14:41:39 +0800 Subject: [PATCH 03/10] =?UTF-8?q?feat:=20=E8=AF=BE=E7=A8=8B=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mycourse/courseLearn/ExamDialog.vue | 1 + src/views/mycourse/courseLearn/index.vue | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/mycourse/courseLearn/ExamDialog.vue b/src/views/mycourse/courseLearn/ExamDialog.vue index 02c936b..9139a2b 100644 --- a/src/views/mycourse/courseLearn/ExamDialog.vue +++ b/src/views/mycourse/courseLearn/ExamDialog.vue @@ -82,6 +82,7 @@ export default { const data = res.data if (res.correctness) { this.$message.success('恭喜你,回答正确!') + this.$emit('success') this.visible = false } else { if (this.chance === 1) { diff --git a/src/views/mycourse/courseLearn/index.vue b/src/views/mycourse/courseLearn/index.vue index 4b8b5fd..e6a3cd6 100644 --- a/src/views/mycourse/courseLearn/index.vue +++ b/src/views/mycourse/courseLearn/index.vue @@ -42,7 +42,7 @@
- + @@ -148,9 +148,9 @@ export default { _this.curVideo = item vid.src(item.videoAddress) vid.play() - _this.openCourseExam() // 调试用 + // _this.openCourseExam() // 调试用 } - if (this.oldTime > 0) { + if (this.oldTime > 0 && _this.curVideo.status !== 1) { this.$confirm({ title: '确定要切换学习视频吗?', content: '一但切换学习视频,您现在正在学习的视频学时将清0,确定要切换吗?', @@ -170,7 +170,6 @@ export default { }, // 当视频播放完毕的回调处理 onPlayerEnded () { - console.log('播放完毕') this.openCourseExam() }, // 打开课中检查 @@ -203,6 +202,9 @@ export default { this.maxTime = oldTime } } + }, + answerSuccess () { + this.curVideo.status = 1 } } } From d9a9e87492a2a0baa28bef00842a174bc3825971 Mon Sep 17 00:00:00 2001 From: cgd_mac <349008059@qq.com> Date: Wed, 23 Feb 2022 14:54:35 +0800 Subject: [PATCH 04/10] =?UTF-8?q?feat:=20=E8=80=83=E8=AF=95=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/myexam/index.vue | 2 +- src/views/myexamDetail/index.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/myexam/index.vue b/src/views/myexam/index.vue index 6bd74a2..758ddfa 100644 --- a/src/views/myexam/index.vue +++ b/src/views/myexam/index.vue @@ -211,7 +211,7 @@ export default { content: '确定要预约考试吗?', onOk () { reqExamSubscribe({ projectId: data.id }).then(res => { - this.$message.success('预约成功!') + _this.$message.success('预约成功!') _this.handleRefresh() }) }, diff --git a/src/views/myexamDetail/index.vue b/src/views/myexamDetail/index.vue index 6ca1f22..3e11657 100644 --- a/src/views/myexamDetail/index.vue +++ b/src/views/myexamDetail/index.vue @@ -86,7 +86,7 @@ export default { if (type === 'practice' || type === 'operation') { this.submitPractice(result) } - if (type === 'exam') { + if (type === 'exam' || type === 'test') { this.submitExam(result) } // if (type === 'operation') { @@ -166,6 +166,7 @@ export default { courseId: query.courseId, answerTime: 0, type: query.practiceType, + examType: query.type === 'test' ? 1 : 2, questionList: this.formatSubmit(result) } reqExamSubmit(params).then(() => { From 39e1a221e37a0bc53cd9c1e424e9eececcfd10f9 Mon Sep 17 00:00:00 2001 From: cgd_mac <349008059@qq.com> Date: Wed, 23 Feb 2022 14:59:03 +0800 Subject: [PATCH 05/10] =?UTF-8?q?feat:=20=E4=BD=9C=E4=B8=9A=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/myexamDetail/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/myexamDetail/index.vue b/src/views/myexamDetail/index.vue index 3e11657..4e37b91 100644 --- a/src/views/myexamDetail/index.vue +++ b/src/views/myexamDetail/index.vue @@ -83,10 +83,10 @@ export default { // 提交 handlerSubmit (result) { const { type } = this.query - if (type === 'practice' || type === 'operation') { + if (type === 'practice') { this.submitPractice(result) } - if (type === 'exam' || type === 'test') { + if (type === 'exam' || type === 'test' || type === 'operation') { this.submitExam(result) } // if (type === 'operation') { @@ -166,7 +166,7 @@ export default { courseId: query.courseId, answerTime: 0, type: query.practiceType, - examType: query.type === 'test' ? 1 : 2, + examType: query.type === 'test' ? 1 : (query.type === 'operation' ? 3 : 2), questionList: this.formatSubmit(result) } reqExamSubmit(params).then(() => { From 2eab206ee29b6969c17f141a6a0688877528270e Mon Sep 17 00:00:00 2001 From: cgd_mac <349008059@qq.com> Date: Wed, 23 Feb 2022 15:27:05 +0800 Subject: [PATCH 06/10] =?UTF-8?q?feat:=20=E8=80=83=E8=AF=95=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DbReport/index.vue | 4 ++-- src/views/myexam/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DbReport/index.vue b/src/components/DbReport/index.vue index 2257138..7d2c458 100644 --- a/src/components/DbReport/index.vue +++ b/src/components/DbReport/index.vue @@ -7,8 +7,8 @@ diff --git a/src/views/myexam/index.vue b/src/views/myexam/index.vue index 758ddfa..7c07916 100644 --- a/src/views/myexam/index.vue +++ b/src/views/myexam/index.vue @@ -225,7 +225,7 @@ export default { this.$router.push({ path: '/myexamDetail', query: { type: 'exam', projectId: row.id } }) }, handlerGoReport (row) { - this.$router.push({ path: '/myreport', query: { type: 'exam', reportId: row.id } }) + this.$router.push({ path: '/myreport', query: { type: 'exam', reportId: row.report.id } }) } } } From 47ffb6d9d8501410d6749ca0dfbf51490bb352c1 Mon Sep 17 00:00:00 2001 From: QuAoLi Date: Wed, 23 Feb 2022 16:40:52 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/DataStatisticsList.vue | 43 +++++++++++++++++++-------- src/views/notice/NoticeForm.vue | 21 +++++++++++-- src/views/person/PersonForm.vue | 17 ++++++++++- 3 files changed, 64 insertions(+), 17 deletions(-) diff --git a/src/views/data/DataStatisticsList.vue b/src/views/data/DataStatisticsList.vue index f1237f8..9c33779 100644 --- a/src/views/data/DataStatisticsList.vue +++ b/src/views/data/DataStatisticsList.vue @@ -85,6 +85,10 @@ +
+ 按累计学时排序 + 按年度学时排序 +
前十统计排名
- 公司排名年度学时前十统计 + 公司排名年度学时前十统计 公司累计学时学时前十统计 -
+ - + - +
@@ -141,7 +145,7 @@ data () { return { // 查询参数 - queryParam: { orgId: undefined, orgName: '' }, + queryParam: { orgId: undefined, orgName: '', asc: 1, type: 1 }, // 表头1 columns1: [ { @@ -150,7 +154,7 @@ }, { title: '学员数量', - dataIndex: 'studentCount' + dataIndex: 'personCount' }, { title: '培训人数', @@ -200,10 +204,6 @@ title: '累计学时', dataIndex: 'sumClassHour' }, - { - title: '人均学时', - dataIndex: 'avgClassHour' - } ], loadData2: parameter => { return dataPersonalStatistics(Object.assign(parameter, this.queryParam)).then((res) => { @@ -241,7 +241,7 @@ } ], loadDataTop1: parameter => { - return dataClassHourTop(Object.assign(parameter, {type : 1})).then((res) => { + return dataClassHourTop(Object.assign(parameter, this.queryParam)).then((res) => { return res.data }) }, @@ -276,7 +276,7 @@ } ], loadDataTop2: parameter => { - return dataClassHourTop(Object.assign(parameter, {type : 2})).then((res) => { + return dataClassHourTop(Object.assign(parameter, this.queryParam)).then((res) => { return res.data }) }, @@ -302,7 +302,7 @@ this.getOrgTree() }, mounted () { - + }, methods: { tabsCallback (key) { @@ -347,10 +347,27 @@ } if (this.keyType === '2') { this.$refs.table2.refresh(true) + if (this.topType === 1) { + this.$refs.tableTop1.refresh(true) + } + if (this.topType === 2) { + this.$refs.tableTop2.refresh(true) + } } }, changeTopType (type) { this.topType = type + this.queryParam.type = type + if (this.topType === 1) { + this.$refs.tableTop1.refresh(true) + } + if (this.topType === 2) { + this.$refs.tableTop2.refresh(true) + } + }, + changeSort (type) { + this.queryParam.asc = type + this.$refs.table2.refresh(true) } } } diff --git a/src/views/notice/NoticeForm.vue b/src/views/notice/NoticeForm.vue index 920c840..d21019c 100644 --- a/src/views/notice/NoticeForm.vue +++ b/src/views/notice/NoticeForm.vue @@ -32,14 +32,23 @@ + + - - + + +
+ + + + + +
@@ -136,7 +145,8 @@ export default { rangeId: 0, rangeName: '', isTop: 0, - isCalculate: 0, + isCalculate: 1, + classHour: 0, isNowPublish: false, publishTime: '', type: 1, @@ -144,11 +154,13 @@ export default { }, fileList: [], timeShow: true, + classHourShow: true, rules: { title: [{ required: true, message: '请输入公告标题', trigger: 'blur' }], rangeName: [{ required: true, message: '请选择发布范围', trigger: 'blur' }], isTop: [{ required: true, message: '请选择是否置顶', trigger: 'change' }], isCalculate: [{ required: true, message: '请选择是否计算学时', trigger: 'change' }], + classHour: [{ required: true, message: '请填写学时', trigger: 'change' }], isNowPublish: [{ required: true, message: '请选择即时发布', trigger: 'change' }], publishTime: [{ required: true, message: '请选择发布时间', trigger: 'change' }], type: [{ required: true, message: '请选择发布类型', trigger: 'change' }], @@ -209,6 +221,9 @@ export default { }, onChangeNow(checked) { this.timeShow = !checked + }, + isCalculateFunc(type) { + this.classHourShow = type === 1 } } } diff --git a/src/views/person/PersonForm.vue b/src/views/person/PersonForm.vue index a1682bb..baa699c 100644 --- a/src/views/person/PersonForm.vue +++ b/src/views/person/PersonForm.vue @@ -177,6 +177,20 @@ + + + + + + + + + 上传身份证 @@ -330,7 +344,8 @@ workType: data.workType ? parseInt(data.workType) : undefined, degreeId: data.degreeId, orgId: data.orgId, - orgName: data.orgName + orgName: data.orgName, + planClassHour: data.planClassHour } ) // 动态赋值年龄和性别 From 9440f713051d12eabc070446a5353af8088f06cb Mon Sep 17 00:00:00 2001 From: QuAoLi Date: Wed, 23 Feb 2022 17:54:57 +0800 Subject: [PATCH 08/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/DataStatisticsList.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/data/DataStatisticsList.vue b/src/views/data/DataStatisticsList.vue index 9c33779..37c8286 100644 --- a/src/views/data/DataStatisticsList.vue +++ b/src/views/data/DataStatisticsList.vue @@ -26,7 +26,7 @@
- +
- +
@@ -179,6 +179,10 @@ ], loadData1: parameter => { return dataOrgStatistics(Object.assign(parameter, this.queryParam)).then((res) => { + const data = res.rows + data.forEach(function(val){ + val.trainRate = val.trainRate + '%' + }) return res }) }, From 15c636acd0241b9b1d13530840da071980faad7f Mon Sep 17 00:00:00 2001 From: cgd_mac <349008059@qq.com> Date: Wed, 23 Feb 2022 19:02:46 +0800 Subject: [PATCH 09/10] =?UTF-8?q?feat:=20=E8=80=83=E8=AF=95=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DbExam/index.vue | 19 +++++-- src/views/course/CoursewarePreview.vue | 12 ++-- src/views/myexamDetail/index.vue | 10 ++-- src/views/myresource/index.vue | 77 ++++++++++++++++---------- 4 files changed, 76 insertions(+), 42 deletions(-) diff --git a/src/components/DbExam/index.vue b/src/components/DbExam/index.vue index 493bfb5..0be0c56 100644 --- a/src/components/DbExam/index.vue +++ b/src/components/DbExam/index.vue @@ -3,9 +3,9 @@
答题卡
-
+
倒计时: - +
-