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 0343318..6bd74a2 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 }, @@ -82,10 +84,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: [ { @@ -181,15 +183,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 }}

-
- 开始答题 -
-
-
-
-
+ + + diff --git a/src/views/project/ProjectDetail.vue b/src/views/project/ProjectDetail.vue index f027b31..51c8e80 100644 --- a/src/views/project/ProjectDetail.vue +++ b/src/views/project/ProjectDetail.vue @@ -9,9 +9,9 @@ {{projectBasicInfo.trainType == 1 ? '必修课':'选修课'}} {{projectBasicInfo.trainClassName}} {{projectBasicInfo.trainWayName}} - {{projectBasicInfo.trainSdate + ' - ' + projectBasicInfo.trainEdate}} - {{projectBasicInfo.practiceSdate + ' - ' + projectBasicInfo.practiceEdate}} - {{projectBasicInfo.examSdate + ' - ' + projectBasicInfo.examEdate}} + {{projectBasicInfo.trainSdate + ' - ' + projectBasicInfo.trainEdate}} + {{projectBasicInfo.practiceSdate + ' - ' + projectBasicInfo.practiceEdate}} + {{projectBasicInfo.examSdate + ' - ' + projectBasicInfo.examEdate}} {{projectBasicInfo.examNumber + '次'}} {{projectBasicInfo.mockExam == 1 ? '允许':'不允许'}} {{projectBasicInfo.remark}} @@ -63,7 +63,7 @@ export default { personColumns: [ //人员列 { title: '序号', key: 'id', dataIndex: 'id', width: 60, scopedSlots: { customRender: 'serial' } }, { title: '姓名', dataIndex: 'name', key: 'name' }, - { title: '受训角色', dataIndex: 'role', key: 'role', }, + // { title: '受训角色', dataIndex: 'role', key: 'role', }, { title: '单位信息', key: 'company', dataIndex: 'company', }, { title: '部门信息', dataIndex: 'department', key: 'department', }, ], diff --git a/src/views/project/form/ProjectTestPaperFormationStrategy.vue b/src/views/project/form/ProjectTestPaperFormationStrategy.vue index d9e176d..59e132e 100644 --- a/src/views/project/form/ProjectTestPaperFormationStrategy.vue +++ b/src/views/project/form/ProjectTestPaperFormationStrategy.vue @@ -25,7 +25,7 @@ - +

考试开启条件:

@@ -69,6 +69,7 @@ // 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等) // 例如:import 《组件名称》 from '《组件路径》' import { getQuestionNumByCourseIds } from '@/api/course/question/question' +import Item from '@/components/AvatarList/Item' export default { // import引入的组件需要注入到对象中才能使用 @@ -158,13 +159,13 @@ export default { methods: { //保存 toSave() { - this.form.testPaperTactics = this.tableData; + this.form.testPaperTactics = this.tableData.filter((Item) => {return Item.topicNum && Item.topicScore}); this.form.projectStatus = 1 this.$emit('executeSave', this.form) }, //发布 toIssue() { - this.form.testPaperTactics = this.tableData + this.form.testPaperTactics = this.tableData.filter((Item) => {return Item.topicNum && Item.topicScore}); this.form.projectStatus = 2 this.$emit('executeIssue', this.form) },