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] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E5=AF=B9=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 }}

-
- 开始答题 -
-
-
-
-
+ + +