Michael Wang 4 rokov pred
rodič
commit
e8def49a4c

+ 12 - 4
src/features/examwork/StudentManagement/StudentManagementDialog.vue

@@ -2,7 +2,7 @@
   <el-dialog
     ref="dialog"
     title="考试记录"
-    width="450px"
+    width="600px"
     :visible.sync="visible"
     @close="closeDialog"
   >
@@ -24,17 +24,17 @@
       <el-table-column width="100" label="姓名">
         <span slot-scope="scope">{{ scope.row.name }}</span>
       </el-table-column>
-      <el-table-column width="100" label="证件号">
+      <el-table-column width="180" label="证件号">
         <span slot-scope="scope">{{ scope.row.identity }}</span>
       </el-table-column>
-      <el-table-column width="100" label="批次名称">
+      <el-table-column label="批次名称">
         <span slot-scope="scope">{{ scope.row.examName }}</span>
       </el-table-column>
       <el-table-column width="100" label="课程">
         <span slot-scope="scope">{{ scope.row.courseName }}</span>
       </el-table-column>
       <el-table-column width="100" label="状态">
-        <span slot-scope="scope">{{ scope.row.state }}</span>
+        <span slot-scope="scope">{{ scope.row.status }}</span>
       </el-table-column>
     </el-table>
     <div class="page float-right">
@@ -48,6 +48,7 @@
         :total="total"
       />
     </div>
+    <div class="my-2"></div>
   </el-dialog>
 </template>
 
@@ -58,6 +59,13 @@ export default {
   props: {
     student: Object,
   },
+  watch: {
+    student() {
+      this.tableData = [];
+      this.pageSize = 10;
+      this.total = 0;
+    },
+  },
   data() {
     return {
       visible: false,