更改状态
This commit is contained in:
parent
20d7f5f335
commit
bc386d6c32
|
@ -30,9 +30,9 @@
|
|||
<a-tag v-if="record.trainType === 2" color="blue">选修课</a-tag>
|
||||
</span>
|
||||
<span slot="status" slot-scope="text, record">
|
||||
<a-tag v-if="record.status === 1" color="red">未开始</a-tag>
|
||||
<a-tag v-if="record.status === 2" color="blue">进行中</a-tag>
|
||||
<a-tag v-if="record.status === 3" color="green">已完成</a-tag>
|
||||
<a-tag v-if="record.status === 0" color="red">未开始</a-tag>
|
||||
<a-tag v-if="record.status === 1" color="blue">进行中</a-tag>
|
||||
<a-tag v-if="record.status === 2" color="green">已完成</a-tag>
|
||||
</span>
|
||||
<template slot="schedule" slot-scope="text, record">
|
||||
<a-progress :percent="record.schedule" />
|
||||
|
@ -42,7 +42,7 @@
|
|||
</template>
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a-popconfirm
|
||||
v-if="record.status === 1"
|
||||
v-if="record.status === 0"
|
||||
:title="`确定要添加${record.name}课程吗?`"
|
||||
ok-text="添加"
|
||||
cancel-text="取消"
|
||||
|
@ -50,8 +50,8 @@
|
|||
>
|
||||
<a>添加课程</a>
|
||||
</a-popconfirm>
|
||||
<a v-if="record.status === 2" @click="handlerContinue(record)">继续学习</a>
|
||||
<a v-if="record.status === 3">已完成学习</a>
|
||||
<a v-if="record.status === 1" @click="handlerContinue(record)">继续学习</a>
|
||||
<a v-if="record.status === 2">已完成学习</a>
|
||||
</span>
|
||||
</s-table>
|
||||
<MycourseDetail ref="aycourseDetail"></MycourseDetail>
|
||||
|
|
Loading…
Reference in New Issue