<el-buttonv-if="row.status === 'NOT_STARTED'" text type="primary" :icon="RefreshLeft" @click="withdraw(row)">撤回</el-button>
<el-buttonv-if="['DRAFT','IN_PROGRESS'].includes(row.status)" text type="primary" :icon="Edit" @click="$router.push(`/exam/manage/${row.id}`)">编辑</el-button>
<el-buttonv-if="row.status === 'DRAFT'" text type="danger" :icon="Delete" @click="removeExam(row)">删除</el-button>
<el-buttonv-if="row.status === 'IN_PROGRESS'" text type="primary" :icon="RefreshLeft" @click="$router.push(`/exam/review/${row.id}`)">指定人回退</el-button>
<templatev-if="row.status === 'ENDED'"><el-button text type="primary" :icon="EditPen" @click="$router.push(`/exam/review/${row.id}`)">评阅</el-button><el-button text type="primary" :icon="DataAnalysis" @click="$router.push(`/exam/analysis/${row.id}`)">分析</el-button><el-dropdown @command="(command) => handleExport(command, row)"><el-button text type="primary" :icon="Download">导出<el-iconclass="el-icon--right"><ArrowDown/></el-icon></el-button><template#dropdown><el-dropdown-menu><el-dropdown-itemcommand="paper">空白试卷</el-dropdown-item><el-dropdown-itemcommand="scores">班级成绩</el-dropdown-item><el-dropdown-itemcommand="submissions">全部答卷</el-dropdown-item></el-dropdown-menu></template></el-dropdown><el-buttontexttype="danger":icon="Delete"@click="removeExam(row)">删除</el-button></template>