许静 5 年前
父节点
当前提交
89c65ffe32
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8
    1
      src/pages/customer/customerlist/index.jsx

+ 8
- 1
src/pages/customer/customerlist/index.jsx 查看文件

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