提交代码

This commit is contained in:
zlwu committed 2025-08-26 00:11:14 +08:00
1 parent 159a0ac135
commit d5316b3d37
1 file changed
+4 -4
@@ -99,24 +99,24 @@
<!-- 进行中状态:显示答题按钮 + 查看题目按钮 -->
<template v-if="scope.row.status === '1'">
<el-tooltip content="答题" placement="top">
<el-button type="warning" size="small" icon="Edit" @click="handleStartSurvey(scope.row)" />
<el-button type="warning" link size="small" icon="Edit" @click="handleStartSurvey(scope.row)" />
</el-tooltip>
<el-tooltip content="查看题目" placement="top">
<el-button type="primary" size="small" icon="View" @click="handleQuestionManage(scope.row)" />
<el-button type="primary" link size="small" icon="View" @click="handleQuestionManage(scope.row)" />
</el-tooltip>
</template>
<!-- 已结束状态:只显示查看题目按钮 -->
<template v-if="scope.row.status === '2'">
<el-tooltip content="查看题目" placement="top">
<el-button type="primary" size="small" icon="View" @click="handleQuestionManage(scope.row)" />
<el-button type="primary" link size="small" icon="View" @click="handleQuestionManage(scope.row)" />
</el-tooltip>
</template>
<!-- 其他状态:显示查看题目按钮 -->
<template v-if="scope.row.status !== '1' && scope.row.status !== '2'">
<el-tooltip content="查看题目" placement="top">
<el-button type="primary" size="small" icon="View" @click="handleQuestionManage(scope.row)" />
<el-button type="primary" link size="small" icon="View" @click="handleQuestionManage(scope.row)" />
</el-tooltip>
</template>
</div>