Commit ac174229 authored by 纪泽龙's avatar 纪泽龙

优化已发布未录入题目的培训考题展示变成-

parent 0049a818
...@@ -132,11 +132,21 @@ ...@@ -132,11 +132,21 @@
width="180" width="180"
> >
<template v-slot="{ row: { topicNum, courseId, status } }"> <template v-slot="{ row: { topicNum, courseId, status } }">
<span @click="checkQuestion(courseId, status)" class="timuNum"> <span>
<span v-if="topicNum > 0"> <span
class="timuNum"
@click="checkQuestion(courseId, status)"
v-if="topicNum > 0"
>
{{ status == 0 ? `已录入${topicNum}题` : "查看" }} {{ status == 0 ? `已录入${topicNum}题` : "查看" }}
</span> </span>
<span v-else>未录入</span> <span v-else-if="status === 1 && topicNum == 0"> - </span>
<span
class="timuNum"
@click="checkQuestion(courseId, status)"
v-else
>未录入</span
>
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment