|
@@ -47,7 +47,11 @@ const header = props => {
|
47
|
47
|
// this.setState({ tableData: data.records, total: data.total})
|
48
|
48
|
// }).catch()
|
49
|
49
|
// }
|
50
|
|
-
|
|
50
|
+ const format = data =>{
|
|
51
|
+ console.log(data.replace(/,/g,'\n'))
|
|
52
|
+
|
|
53
|
+ return <div dangerouslySetInnerHTML={{__html:data.replace(/,/g,",<br/>")}}>{}</div>
|
|
54
|
+ }
|
51
|
55
|
const columns = [
|
52
|
56
|
{
|
53
|
57
|
title: '姓名',
|
|
@@ -78,11 +82,15 @@ const header = props => {
|
78
|
82
|
title: '置业顾问',
|
79
|
83
|
dataIndex: 'realtyConsultant',
|
80
|
84
|
key: 'realtyConsultant',
|
|
85
|
+ render: (x, row) => <>{row.realtyConsultant?format(row.realtyConsultant):''}</>,
|
|
86
|
+ width:180
|
81
|
87
|
},
|
82
|
88
|
{
|
83
|
89
|
title: '置业顾问电话',
|
84
|
90
|
dataIndex: 'realtyConsultantPhone',
|
85
|
91
|
key: 'realtyConsultantPhone',
|
|
92
|
+ render: (x, row) => <>{row.realtyConsultantPhone?format(row.realtyConsultantPhone):''}</>,
|
|
93
|
+ width:180
|
86
|
94
|
},
|
87
|
95
|
{
|
88
|
96
|
title: '推广人',
|