|
@@ -221,7 +221,7 @@ function body(props) {
|
221
|
221
|
key: 'picture',
|
222
|
222
|
align: 'center',
|
223
|
223
|
width: '15%',
|
224
|
|
- render: (_, record) => <Avatar shape="square" src={customerType === 'private' ? record.picture : record.avatarurl} size={64} icon="user" />,
|
|
224
|
+ render: (_, record) => <Avatar shape="square" style={{color: 'blue',cursor: 'pointer'}} onClick={() => publicCustomerDetail(record)} src={customerType === 'private' ? record.picture : record.avatarurl} size={64} icon="user" />,
|
225
|
225
|
},
|
226
|
226
|
{
|
227
|
227
|
title: '姓名',
|
|
@@ -230,7 +230,7 @@ function body(props) {
|
230
|
230
|
align: 'center',
|
231
|
231
|
width: '10%',
|
232
|
232
|
// eslint-disable-next-line no-nested-ternary
|
233
|
|
- render: (_, record) => <><span>{customerType === 'private' ? record.name : record.nickname}</span></>,
|
|
233
|
+ render: (_, record) => <><span style={{color: 'blue',cursor: 'pointer'}} onClick={() => publicCustomerDetail(record)} >{customerType === 'private' ? record.name : record.nickname}</span></>,
|
234
|
234
|
},
|
235
|
235
|
{
|
236
|
236
|
title: '电话',
|
|
@@ -283,7 +283,7 @@ function body(props) {
|
283
|
283
|
key: 'picture',
|
284
|
284
|
align: 'center',
|
285
|
285
|
width: '15%',
|
286
|
|
- render: (_, record) => <Avatar shape="square" src={customerType === 'private' ? record.picture : record.avatarurl} size={64} icon="user" />,
|
|
286
|
+ render: (_, record) => <Avatar shape="square" style={{color: 'blue',cursor: 'pointer'}} onClick={() => toCustomerDateil(record)} src={customerType === 'private' ? record.picture : record.avatarurl} size={64} icon="user" />,
|
287
|
287
|
},
|
288
|
288
|
{
|
289
|
289
|
title: '姓名',
|
|
@@ -292,7 +292,7 @@ function body(props) {
|
292
|
292
|
align: 'center',
|
293
|
293
|
width: '10%',
|
294
|
294
|
// eslint-disable-next-line no-nested-ternary
|
295
|
|
- render: (_, record) => <><span>{customerType === 'private' ? record.name : record.nickname}</span></>,
|
|
295
|
+ render: (_, record) => <><span style={{color: 'blue',cursor: 'pointer'}} onClick={() => toCustomerDateil(record)}>{customerType === 'private' ? record.name : record.nickname}</span></>,
|
296
|
296
|
},
|
297
|
297
|
{
|
298
|
298
|
title: '电话',
|
|
@@ -449,8 +449,19 @@ function body(props) {
|
449
|
449
|
</Radio.Group>
|
450
|
450
|
</div>
|
451
|
451
|
{customerType === 'private' ?
|
452
|
|
- <Table dataSource={dataSource.records} columns={privateColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" /> :
|
453
|
|
- <Table dataSource={dataSource.records} columns={publicColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" />
|
|
452
|
+ <Table onRow={record => {
|
|
453
|
+ return {
|
|
454
|
+ onClick: () => toCustomerDateil(record),
|
|
455
|
+ };
|
|
456
|
+ }}
|
|
457
|
+ dataSource={dataSource.records} columns={privateColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" /> :
|
|
458
|
+ <Table
|
|
459
|
+ onRow={record => {
|
|
460
|
+ return {
|
|
461
|
+ onClick: () => publicCustomerDetail(record),
|
|
462
|
+ };
|
|
463
|
+ }}
|
|
464
|
+ dataSource={dataSource.records} columns={publicColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" />
|
454
|
465
|
}
|
455
|
466
|
|
456
|
467
|
{/* 调整归属 */}
|