feat: 问题修复

This commit is contained in:
cgd_mac 2022-02-26 15:08:35 +08:00
parent 60d167e792
commit 36dc03d0c8
2 changed files with 13 additions and 11 deletions

View File

@ -24,7 +24,7 @@
</span>
<span slot="action" slot-scope="text, record">
<a-popconfirm
v-if="record.status === 1"
v-if="record.signStatus === 1 && record.status === 2"
slot="actions"
:title="`确定要报名参加${record.trainName}吗?`"
ok-text="添加"
@ -33,7 +33,8 @@
>
<a>报名参加</a>
</a-popconfirm>
<a v-else slot="actions" href="javascript:void(0);">已报名</a>
<a v-if="record.signStatus === 2" slot="actions" href="javascript:void(0);">已报名</a>
<a v-if="record.signStatus === 3" slot="actions" href="javascript:void(0);">已签到</a>
</span>
</a-table>
<CentralizedTrainingDetail ref="centralizedTrainingDetail"></CentralizedTrainingDetail>
@ -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
})

View File

@ -103,9 +103,11 @@
<a-card :bordered="false" title="集中培训" :style="{ height: '100%' }">
<a-list class="demo-loadmore-list" item-layout="horizontal" :data-source="jzpxList">
<a-list-item slot="renderItem" slot-scope="item">
<a @click="handlerCenterDetail(item)" slot="actions" href="javascript:void(0);">培训详情</a>
<a @click="handlerCenterDetail(item)" slot="actions" href="javascript:void(0);">
培训详情
</a>
<a-popconfirm
v-if="item.status === 1"
v-if="item.signStatus === 1 && item.status === 2"
slot="actions"
:title="`确定要报名参加${item.trainName}吗?`"
ok-text="添加"
@ -114,7 +116,8 @@
>
<a>报名参加</a>
</a-popconfirm>
<a v-else slot="actions" href="javascript:void(0);">已报名</a>
<a v-if="item.signStatus === 2" slot="actions" href="javascript:void(0);">已报名</a>
<a v-if="item.signStatus === 3" slot="actions" href="javascript:void(0);">已签到</a>
<a-list-item-meta :title="item.trainName"></a-list-item-meta>
<div style="width: 200px;">
{{ item.trainSdate }}