|
@@ -150,6 +150,7 @@ function body(props) {
|
150
|
150
|
dataIndex: 'picture',
|
151
|
151
|
key: 'picture',
|
152
|
152
|
align: 'center',
|
|
153
|
+ width: '15%',
|
153
|
154
|
render: (_, record) => <Avatar shape="square" src={customerType === 'private' ? record.picture : record.avatarurl} size={64} icon="user" />,
|
154
|
155
|
},
|
155
|
156
|
{
|
|
@@ -157,6 +158,7 @@ function body(props) {
|
157
|
158
|
dataIndex: 'name',
|
158
|
159
|
key: 'name',
|
159
|
160
|
align: 'center',
|
|
161
|
+ width: '10%',
|
160
|
162
|
// eslint-disable-next-line no-nested-ternary
|
161
|
163
|
render: (_, record) => <><span>{customerType === 'private' ? record.name : record.nickname}</span></>,
|
162
|
164
|
},
|
|
@@ -165,12 +167,14 @@ function body(props) {
|
165
|
167
|
dataIndex: 'phone',
|
166
|
168
|
key: 'phone',
|
167
|
169
|
align: 'center',
|
|
170
|
+ width: '15%',
|
168
|
171
|
},
|
169
|
172
|
{
|
170
|
173
|
title: '性别',
|
171
|
174
|
dataIndex: 'sex',
|
172
|
175
|
key: 'sex',
|
173
|
176
|
align: 'center',
|
|
177
|
+ width: '10%',
|
174
|
178
|
// eslint-disable-next-line no-nested-ternary
|
175
|
179
|
render: (_, record) => <><span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span></>,
|
176
|
180
|
},
|
|
@@ -179,6 +183,7 @@ function body(props) {
|
179
|
183
|
dataIndex: 'consultantName',
|
180
|
184
|
key: 'consultantName',
|
181
|
185
|
align: 'center',
|
|
186
|
+ width: '15%',
|
182
|
187
|
// eslint-disable-next-line no-nested-ternary
|
183
|
188
|
render: (_, record) => (
|
184
|
189
|
<>
|
|
@@ -193,6 +198,7 @@ function body(props) {
|
193
|
198
|
dataIndex: 'reportRecommendStatus',
|
194
|
199
|
key: 'reportRecommendStatus',
|
195
|
200
|
align: 'center',
|
|
201
|
+ width: '10%',
|
196
|
202
|
// eslint-disable-next-line no-nested-ternary
|
197
|
203
|
render: (_, record) => <><span>{record.reportRecommendStatus === 0 ? '为报备' : record.reportRecommendStatus === 1 ? '报备' : record.reportRecommendStatus === 2 ? '推荐' : ''}</span></>,
|
198
|
204
|
},
|
|
@@ -201,6 +207,7 @@ function body(props) {
|
201
|
207
|
dataIndex: 'customerId',
|
202
|
208
|
key: 'customerId',
|
203
|
209
|
align: 'center',
|
|
210
|
+ width: '25%',
|
204
|
211
|
// eslint-disable-next-line no-nested-ternary
|
205
|
212
|
render: (_, record) => (
|
206
|
213
|
<>
|
|
@@ -275,7 +282,7 @@ function body(props) {
|
275
|
282
|
</Form.Item>
|
276
|
283
|
</Form>
|
277
|
284
|
|
278
|
|
- <div style={{ marginTop: '20px', marginBottom: '20px' }}>
|
|
285
|
+ <div style={{ margin: '20px 0'}}>
|
279
|
286
|
<AuthButton name="admin.customer.recommend.get" noRight={null}>
|
280
|
287
|
<Radio.Group value={customerType} onChange={radioButtonHandleSizeChange} buttonStyle="solid">
|
281
|
288
|
<Radio.Button value="private">私客</Radio.Button>
|