|
@@ -13,7 +13,7 @@
|
|
|
</template>
|
|
|
<template #custom="{ item, form }">
|
|
|
<template v-if="item.model === 'gender'">
|
|
|
- {{ form[item.model] === '0' ? '女' : '男' }}
|
|
|
+ {{ form[item.model] }}
|
|
|
</template>
|
|
|
</template>
|
|
|
</data-form>
|
|
@@ -58,13 +58,7 @@ export default {
|
|
|
],
|
|
|
fields: [
|
|
|
{ label: '姓名', prop: 'name' },
|
|
|
- {
|
|
|
- label: '性别',
|
|
|
- prop: 'gender',
|
|
|
- format: item => {
|
|
|
- return item === '1' ? '男' : '女';
|
|
|
- },
|
|
|
- },
|
|
|
+ { label: '性别', prop: 'gender' },
|
|
|
{ label: '期', prop: 'term' },
|
|
|
{ label: '批次', prop: 'batch' },
|
|
|
{ label: '班级', prop: 'class' },
|