|
|
|
@ -131,14 +131,20 @@ |
|
|
|
|
{{ scope.row.submitTime || '--' }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="状态" |
|
|
|
|
width="100" |
|
|
|
|
align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{ scope.row.reportId || method == 2 ? '已参加' : '未参加' }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" |
|
|
|
|
align="center" |
|
|
|
|
width="160"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-button v-if="method != 2" |
|
|
|
|
:disabled="!scope.row.reportId" |
|
|
|
|
<el-button v-if="method != 2 && scope.row.reportId" |
|
|
|
|
type="text" |
|
|
|
|
@click="show(scope.row)">{{ scope.row.reportId ? '查看成绩报告' : '未参加' }}</el-button> |
|
|
|
|
@click="show(scope.row)">查看成绩报告</el-button> |
|
|
|
|
<el-button v-if="scope.row.reportId" |
|
|
|
|
type="text" |
|
|
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
|
@ -236,7 +242,8 @@ |
|
|
|
|
<el-dialog title="批量导入" |
|
|
|
|
:visible.sync="importVisible" |
|
|
|
|
width="24%" |
|
|
|
|
:close-on-click-modal="false"> |
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
@close="cancelUpload"> |
|
|
|
|
<div style="text-align: center"> |
|
|
|
|
<template v-if="!uploadFaild"> |
|
|
|
|
<div style="margin-bottom: 10px;"> |
|
|
|
@ -555,6 +562,7 @@ export default { |
|
|
|
|
this.uploading = false |
|
|
|
|
this.uploadFaild = false |
|
|
|
|
if (res.status === 200) { |
|
|
|
|
this.initData() |
|
|
|
|
const { data } = res |
|
|
|
|
if (data.exportCode) { |
|
|
|
|
this.faildData = data |
|
|
|
@ -586,7 +594,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
cancelUpload () { |
|
|
|
|
this.uploading = false |
|
|
|
|
this.$refs.upload.abort() |
|
|
|
|
if (this.$refs.upload) this.$refs.upload.abort() |
|
|
|
|
this.keyword = '' |
|
|
|
|
this.initData() |
|
|
|
|
this.importVisible = false |
|
|
|
|