Explorar el Código

考试卷详情的额外两张表,名字使用nickName字段

yellowtaotao hace 3 años
padre
commit
c7e2fbd3f9
Se han modificado 1 ficheros con 10 adiciones y 10 borrados
  1. 10 10
      src/views/examManagement/examManagementDetailMore.vue

+ 10 - 10
src/views/examManagement/examManagementDetailMore.vue

@@ -9,8 +9,8 @@
         :row-key="(record) => record.id"
         :pagination="false"
       >
-        <template slot="userName" slot-scope="text, record">
-          <span>{{ record.user ? record.user.userName : '' }}</span>
+        <template slot="nickName" slot-scope="text, record">
+          <span>{{ record.user ? record.user.nickName : '' }}</span>
         </template>
       </a-table>
       <div class="a-pagination-display">
@@ -34,8 +34,8 @@
         :row-key="(record, index) => index"
         :pagination="false"
       >
-        <!-- <template slot="userName" slot-scope="text, record">
-          <span>{{ record.user ? record.user.userName : '' }}</span>
+        <!-- <template slot="nickName" slot-scope="text, record">
+          <span>{{ record.user ? record.user.nickName : '' }}</span>
         </template> -->
       </a-table>
       <div class="a-pagination-display">
@@ -98,9 +98,9 @@ export default {
       this.testScoreTableColumns = [
         {
           title: '姓名',
-          dataIndex: 'userName',
-          key: 'userName',
-          scopedSlots: { customRender: 'userName' },
+          dataIndex: 'nickName',
+          key: 'nickName',
+          scopedSlots: { customRender: 'nickName' },
         },
         {
           title: '成绩',
@@ -116,9 +116,9 @@ export default {
       this.unReferencedColumns = [
         {
           title: '姓名',
-          dataIndex: 'userName',
-          key: 'userName',
-          scopedSlots: { customRender: 'userName' },
+          dataIndex: 'nickName',
+          key: 'nickName',
+          scopedSlots: { customRender: 'nickName' },
         },
       ];
       this.getExamCountInfo(); // 查询:考试的统计信息