Browse Source

账号管理增加性别展示

Pchen. 4 months ago
parent
commit
963dcc5253
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/pages/admin/lepaoAccount/accountList.vue

+ 10 - 2
src/pages/admin/lepaoAccount/accountList.vue

@@ -98,7 +98,11 @@
                     </a-avatar>
                     {{ record.name }}
                 </template>
-
+                <template #sex="{ record }">
+                    <icon-man v-if="record.sex === 0" />
+                    <icon-woman v-else-if="record.sex === 1" />
+                    {{ record.sex === 0 ? '男' : (record.sex === 1 ? '女' : '') }}
+                </template>
                 <template #auto_run="{ record }">
                     <a-tag color="green" v-if="record.auto_run">开启</a-tag>
                     <a-tag color="red" v-else>关闭</a-tag>
@@ -247,7 +251,11 @@ const columns = [
     }, {
         title: '学号',
         dataIndex: 'student_num',
-        width: 115
+        width: 110
+    }, {
+        title: '性别',
+        slotName: 'sex',
+        width: 70
     }, {
         title: '年级',
         dataIndex: 'grade_id',