feat: 问题修复
This commit is contained in:
parent
60d167e792
commit
36dc03d0c8
|
@ -24,7 +24,7 @@
|
||||||
</span>
|
</span>
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a-popconfirm
|
<a-popconfirm
|
||||||
v-if="record.status === 1"
|
v-if="record.signStatus === 1 && record.status === 2"
|
||||||
slot="actions"
|
slot="actions"
|
||||||
:title="`确定要报名参加${record.trainName}吗?`"
|
:title="`确定要报名参加${record.trainName}吗?`"
|
||||||
ok-text="添加"
|
ok-text="添加"
|
||||||
|
@ -33,7 +33,8 @@
|
||||||
>
|
>
|
||||||
<a>报名参加</a>
|
<a>报名参加</a>
|
||||||
</a-popconfirm>
|
</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>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<CentralizedTrainingDetail ref="centralizedTrainingDetail"></CentralizedTrainingDetail>
|
<CentralizedTrainingDetail ref="centralizedTrainingDetail"></CentralizedTrainingDetail>
|
||||||
|
@ -91,14 +92,12 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
// setTimeout(() => {
|
|
||||||
// this.loading = false
|
|
||||||
// }, 800)
|
|
||||||
this.initData()
|
this.initData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData () {
|
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.loading = false
|
||||||
this.dataList = res.rows
|
this.dataList = res.rows
|
||||||
})
|
})
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
<!-- 系统推荐课程 start -->
|
<!-- 系统推荐课程 start -->
|
||||||
<a-col :span="24" :style="{ marginBottom: '24px' }">
|
<a-col :span="24" :style="{ marginBottom: '24px' }">
|
||||||
<a-card :bordered="false" title="系统推荐课程" :style="{ height: '100%' }">
|
<a-card :bordered="false" title="系统推荐课程" :style="{ height: '100%' }">
|
||||||
<a-row v-if="sysList && sysList.length>0" :gutter="16">
|
<a-row v-if="sysList && sysList.length > 0" :gutter="16">
|
||||||
<a-col :span="6" :md="4" :sm="6" v-for="(item, index) in sysList" :key="index">
|
<a-col :span="6" :md="4" :sm="6" v-for="(item, index) in sysList" :key="index">
|
||||||
<a-card
|
<a-card
|
||||||
@click="handlerContinue(item)"
|
@click="handlerContinue(item)"
|
||||||
|
@ -103,9 +103,11 @@
|
||||||
<a-card :bordered="false" title="集中培训" :style="{ height: '100%' }">
|
<a-card :bordered="false" title="集中培训" :style="{ height: '100%' }">
|
||||||
<a-list class="demo-loadmore-list" item-layout="horizontal" :data-source="jzpxList">
|
<a-list class="demo-loadmore-list" item-layout="horizontal" :data-source="jzpxList">
|
||||||
<a-list-item slot="renderItem" slot-scope="item">
|
<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
|
<a-popconfirm
|
||||||
v-if="item.status === 1"
|
v-if="item.signStatus === 1 && item.status === 2"
|
||||||
slot="actions"
|
slot="actions"
|
||||||
:title="`确定要报名参加${item.trainName}吗?`"
|
:title="`确定要报名参加${item.trainName}吗?`"
|
||||||
ok-text="添加"
|
ok-text="添加"
|
||||||
|
@ -114,7 +116,8 @@
|
||||||
>
|
>
|
||||||
<a>报名参加</a>
|
<a>报名参加</a>
|
||||||
</a-popconfirm>
|
</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>
|
<a-list-item-meta :title="item.trainName"></a-list-item-meta>
|
||||||
<div style="width: 200px;">
|
<div style="width: 200px;">
|
||||||
{{ item.trainSdate }}
|
{{ item.trainSdate }}
|
||||||
|
@ -225,7 +228,7 @@ export default {
|
||||||
// 集中培训
|
// 集中培训
|
||||||
getJzpxList () {
|
getJzpxList () {
|
||||||
const { person } = this.$store.state.user
|
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
|
this.jzpxList = res.rows
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue