From 36dc03d0c85cadb8b74befb46dec57741c0ef7d5 Mon Sep 17 00:00:00 2001 From: cgd_mac <349008059@qq.com> Date: Sat, 26 Feb 2022 15:08:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mycourse/mycourseList/CentralizedTraining.vue | 11 +++++------ src/views/myhome/index.vue | 13 ++++++++----- 2 files changed, 13 insertions(+), 11 deletions(-) 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 }) },