|
@@ -64,6 +64,7 @@ const columns = [
|
64
|
64
|
dataIndex: 'brokerCount',
|
65
|
65
|
key: 'brokerCount',
|
66
|
66
|
align: 'center',
|
|
67
|
+ render: (text, record) => <a style={ { color: '#66B3FF' } } onClick= {() => toBroker(record)} >{ record.recommendCount }</a>,
|
67
|
68
|
},
|
68
|
69
|
{
|
69
|
70
|
title: '推荐客户有效',
|
|
@@ -86,7 +87,7 @@ const columns = [
|
86
|
87
|
<AuthButton name="admin.channel.id.put" noRight={null}>
|
87
|
88
|
<a style={{ color: '#66B3FF' }} onClick={() => toedit(record.channelId)} >编辑</a>
|
88
|
89
|
</AuthButton>
|
89
|
|
- )
|
|
90
|
+ ),
|
90
|
91
|
},
|
91
|
92
|
];
|
92
|
93
|
|
|
@@ -110,6 +111,19 @@ function toedit(channelId) {
|
110
|
111
|
});
|
111
|
112
|
}
|
112
|
113
|
|
|
114
|
+// 经纪人页面
|
|
115
|
+function toBroker(record) {
|
|
116
|
+ if (record.brokerCount === 0) {
|
|
117
|
+ return
|
|
118
|
+ }
|
|
119
|
+ router.push({
|
|
120
|
+ pathname: '/channel/brokerList',
|
|
121
|
+ query: {
|
|
122
|
+ id: record.channelId,
|
|
123
|
+ },
|
|
124
|
+ });
|
|
125
|
+}
|
|
126
|
+
|
113
|
127
|
const header = props => {
|
114
|
128
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
115
|
129
|
const [data, setData] = useState({ channelNmae: [], result: [] })
|