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 }}

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