提交 f1720c9b authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 5532ea51
......@@ -236,21 +236,21 @@ function handleViewAuto(row: any) {
<el-table-column label="操作" align="center" width="180">
<template #default="{ row }">
<template v-if="row.type === 1">
<el-button text type="primary" v-if="experiment.report_upload_way === 2">
<el-button link type="primary" v-if="experiment.report_upload_way === 2">
<a :href="getOperationUrl(row.type)" target="_blank">批改</a>
</el-button>
<template v-if="experiment.report_upload_way === 1">
<el-button text type="primary" v-if="file?.url">
<el-button link type="primary" v-if="file?.url">
<a :href="file.url" target="_blank">查阅报告</a>
</el-button>
<p style="color: red" v-else>未上传</p>
</template>
</template>
<template v-if="[6, 7, 9, 11, 12].includes(row.type)">
<el-button text type="primary" @click="handleViewAuto(row)">查看自动评分结果</el-button>
<el-button link type="primary" @click="handleViewAuto(row)">查看自动评分结果</el-button>
</template>
<template v-if="[6, 7, 8, 9, 10, 11, 12].includes(row.type)">
<el-button text type="primary">
<el-button link type="primary">
<a
:href="`/admin/lab/score/score?id=${props.data.experiment_id}&sid=${props.data.student_id}&type=${row.type}`"
target="_blank"
......
......@@ -119,7 +119,7 @@ function getOperationUrl(row: any) {
<el-dialog :title="title">
<AppList v-bind="listOptions" ref="appList">
<template #table-x="{ row }">
<el-button type="primary" text>
<el-button type="primary" link>
<a :href="getOperationUrl(row)" target="_blank">查看</a>
</el-button>
</template>
......
......@@ -176,18 +176,18 @@ async function handleReset(row: RecordItem) {
</template>
<template #table-x="{ row }">
<el-button
text
link
type="primary"
v-if="row.status === 1 || row.status === 2"
@click="handleScore(row)"
v-permission="'v1-teacher-record-check'"
>打分</el-button
>
<el-button text type="primary" v-if="row.status === 1 || row.status === 2" @click="handleReset(row)"
<el-button link type="primary" v-if="row.status === 1 || row.status === 2" @click="handleReset(row)"
>重置</el-button
>
<el-button
text
link
type="primary"
v-if="row.has_score_log"
@click="handleScoreLog(row)"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论