|
|
@@ -213,28 +213,22 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="score" label="成绩" width="150"/>
|
|
|
- <el-table-column label="操作" width="150">
|
|
|
- <template #default="scope">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- @click="
|
|
|
- $router.push(
|
|
|
- {
|
|
|
- path: `/exam/${$route.params.examId}/commit/${scope.row.id}`
|
|
|
- })
|
|
|
- "
|
|
|
- >
|
|
|
- 详情
|
|
|
- </el-button>
|
|
|
- <el-divider direction="vertical"/>
|
|
|
- <el-button type="text"
|
|
|
- @click="stopRecord(scope.row.id)"
|
|
|
- class="commit-stop-button">
|
|
|
- 停止
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column type="expand">
|
|
|
+<!-- <el-table-column label="操作" width="150">-->
|
|
|
+<!-- <template #default="scope">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="text"-->
|
|
|
+<!-- @click="-->
|
|
|
+<!-- $router.push(-->
|
|
|
+<!-- {-->
|
|
|
+<!-- path: `/exam/${$route.params.examId}/commit/${scope.row.id}`-->
|
|
|
+<!-- })-->
|
|
|
+<!-- "-->
|
|
|
+<!-- >-->
|
|
|
+<!-- 详情-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
+ <el-table-column label="详情" type="expand">
|
|
|
<template #default="scope">
|
|
|
<CommitBoard :commit-id="scope.row.id" :exam-id="$route.params.examId"></CommitBoard>
|
|
|
</template>
|
|
|
@@ -779,11 +773,6 @@ export default {
|
|
|
jumpToResultDetail(resultId) {
|
|
|
this.$router.push(`${this.$route.path}/result/${resultId}`);
|
|
|
},
|
|
|
- // stop coder record
|
|
|
- async stopRecord(recordId){
|
|
|
- const res = (await this.$apis.stopRecord(recordId)).data;
|
|
|
- console.log(res);
|
|
|
- }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
@@ -840,11 +829,8 @@ export default {
|
|
|
// border-bottom: 1px solid #afaaaa;
|
|
|
//}
|
|
|
|
|
|
-.commit-stop-button{
|
|
|
- color: var(--el-color-danger)
|
|
|
-}
|
|
|
-
|
|
|
-.commit-stop-button:hover{
|
|
|
- opacity: 75%;
|
|
|
+:deep(.el-table__expanded-cell[class*=cell]){
|
|
|
+ padding: 0;
|
|
|
+ box-shadow: inset 0px 0px 5px 0px var(--el-color-info);
|
|
|
}
|
|
|
</style>
|