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