mjh 3 лет назад
Родитель
Сommit
e93ca66636

+ 19 - 33
src/views/CoderPage/ExamDetail.vue

@@ -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>

+ 1 - 1
src/views/CoderPage/ResultPage/CommitPage/components/CommitBoard.vue

@@ -24,7 +24,7 @@
 <!--        <span style="font-size: 24px;font-family: 'Inter',sans-serif;margin-left: 10px">提交列表</span>-->
 <!--      </page-header>-->
 <!--    </template>-->
-    <el-table :data="commit.records" border>
+    <el-table :data="commit.records">
       <el-table-column label="题目">
         <template #default="scope">
           <span>{{ scope.row.problem.name }}</span>