我的课程状态变更

This commit is contained in:
Yjhon 2022-02-22 14:50:04 +08:00
parent de5cd00958
commit 3cec50b99e
1 changed files with 5 additions and 5 deletions

View File

@ -30,9 +30,9 @@
<a-tag v-if="record.trainType === 2" color="blue">选修课</a-tag> <a-tag v-if="record.trainType === 2" color="blue">选修课</a-tag>
</span> </span>
<span slot="status" slot-scope="text, record"> <span slot="status" slot-scope="text, record">
<a-tag v-if="record.status === 0" color="red">未开始</a-tag> <a-tag v-if="record.status === 1" color="red">未开始</a-tag>
<a-tag v-if="record.status === 1" color="blue">进行中</a-tag> <a-tag v-if="record.status === 2" color="blue">进行中</a-tag>
<a-tag v-if="record.status === 2" color="green">已完成</a-tag> <a-tag v-if="record.status === 3" color="green">已完成</a-tag>
</span> </span>
<template slot="schedule" slot-scope="text, record"> <template slot="schedule" slot-scope="text, record">
<a-progress :percent="record.schedule" /> <a-progress :percent="record.schedule" />
@ -50,8 +50,8 @@
> >
<a>添加课程</a> <a>添加课程</a>
</a-popconfirm> </a-popconfirm>
<a v-if="record.status === 1" @click="handlerContinue(record)">继续学习</a> <a v-if="record.status === 2" @click="handlerContinue(record)">继续学习</a>
<a v-if="record.status === 2">已完成学习</a> <a v-if="record.status === 3">已完成学习</a>
</span> </span>
</s-table> </s-table>
<MycourseDetail ref="aycourseDetail"></MycourseDetail> <MycourseDetail ref="aycourseDetail"></MycourseDetail>