diff --git a/src/mixin/selectMixin.js b/src/mixin/selectMixin.js index 077188b..b6598e0 100644 --- a/src/mixin/selectMixin.js +++ b/src/mixin/selectMixin.js @@ -37,10 +37,10 @@ export default { // 课程 course_type: [{ id: 1, - value: '长期课程' + value: '常规课程' }, { id: 2, - value: '短期课程' + value: '公司团建' }], course_status: [{ id: 0, diff --git a/src/views/course/apply.vue b/src/views/course/apply.vue index abeaa44..ff3152e 100644 --- a/src/views/course/apply.vue +++ b/src/views/course/apply.vue @@ -50,38 +50,42 @@ diff --git a/src/views/course/apply_list.vue b/src/views/course/apply_list.vue index 572c755..ad63284 100644 --- a/src/views/course/apply_list.vue +++ b/src/views/course/apply_list.vue @@ -165,7 +165,8 @@ this.total = res.total }, showDetail(type, id) { - console.log(type,id) + console.log(type,id) + this.$refs.studentDetail.subjectObj = this.subjectObj this.$refs.studentDetail.id = id this.$refs.studentDetail.type = type this.$refs.studentDetail.isShow = true diff --git a/src/views/student/components/detail.vue b/src/views/student/components/detail.vue index 3108445..aeeb513 100644 --- a/src/views/student/components/detail.vue +++ b/src/views/student/components/detail.vue @@ -8,10 +8,10 @@
-
-
课程名称:第六期高级科创人才研修班
-
开课日期:2024.3.1-----2024.9.1
-
类别:正常课程
+
+
课程名称:{{subjectObj.title}}
+
开课日期:{{subjectObj.date}}
+
类别:{{subjectObj.leibie}}
@@ -209,9 +209,12 @@ import { show } from '@/api/student/index.js' - import myMixins from "@/mixin/selectMixin.js"; + // import { + // show + // } from '@/api/student/index.js' + import myMixins from "@/mixin/selectMixin.js"; export default { - mixins: [myMixins], + mixins: [myMixins], components: { }, @@ -220,7 +223,7 @@ isShow: false, type: 'show', id: '', - subjectObj:null, + subjectObj:{}, student_info: {}, form: { show: '', @@ -260,10 +263,11 @@ isShow(newVal) { if (newVal) { if (this.type === 'show' || this.type === 'check') { - // this.getDetail() + this.getDetail() } } else { - this.id = '' + this.id = '' + this.subjectObj = {} this.$refs['dialog'].reset() } },