diff --git a/src/views/mycourse/mycourseList/CentralizedTraining.vue b/src/views/mycourse/mycourseList/CentralizedTraining.vue index 45b36e3..75ec55a 100644 --- a/src/views/mycourse/mycourseList/CentralizedTraining.vue +++ b/src/views/mycourse/mycourseList/CentralizedTraining.vue @@ -24,7 +24,7 @@ 报名参加 - 已报名 + 已报名 + 已签到 @@ -91,14 +92,12 @@ export default { } }, mounted () { - // setTimeout(() => { - // this.loading = false - // }, 800) this.initData() }, methods: { initData () { - reqCourseCenterList({ pageNum: 1, pageSize: 5 }).then(res => { + const { person } = this.$store.state.user + reqCourseCenterList({ personId: person.id, pageNum: 1, pageSize: 5 }).then(res => { this.loading = false this.dataList = res.rows }) diff --git a/src/views/myhome/index.vue b/src/views/myhome/index.vue index d1819fe..43ae2f6 100644 --- a/src/views/myhome/index.vue +++ b/src/views/myhome/index.vue @@ -76,7 +76,7 @@ - + - 培训详情 + + 培训详情 + 报名参加 - 已报名 + 已报名 + 已签到
{{ item.trainSdate }} @@ -225,7 +228,7 @@ export default { // 集中培训 getJzpxList () { const { person } = this.$store.state.user - reqCourseCenterList({personId:person.id, pageSize: 5, pageNum: 1 }).then(res => { + reqCourseCenterList({ personId: person.id, pageSize: 5, pageNum: 1 }).then(res => { this.jzpxList = res.rows }) },