|
@@ -25,20 +25,19 @@ const columns = [
|
25
|
25
|
dataIndex: 'name',
|
26
|
26
|
key: 'name',
|
27
|
27
|
align: 'center',
|
28
|
|
- render: text => <a>{text}</a>,
|
29
|
28
|
},
|
30
|
29
|
{
|
31
|
30
|
title: '电话',
|
32
|
|
- dataIndex: 'tel',
|
|
31
|
+ dataIndex: 'phone',
|
33
|
32
|
key: 'tel',
|
34
|
|
- align: 'center',
|
|
33
|
+ align: 'phone',
|
35
|
34
|
},
|
36
|
35
|
{
|
37
|
36
|
title: '性别',
|
38
|
37
|
dataIndex: 'sex',
|
39
|
38
|
key: 'sex',
|
40
|
39
|
align: 'center',
|
41
|
|
- render: (text, record) => <a style={ { color: '#66B3FF' } } >{ record.sex === 1 ? '男' : (record.sex === 2 ? '女':'') }</a>,
|
|
40
|
+ render: (text, record) => <a>{ record.gender === 1 ? '男' : '女' }</a>,
|
42
|
41
|
},
|
43
|
42
|
];
|
44
|
43
|
const header = props => {
|