许静 5 years ago
parent
commit
e132fcc444
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/pages/customer/customerlist/index.jsx

+ 7
- 0
src/pages/customer/customerlist/index.jsx View File

149
       title: '头像',
149
       title: '头像',
150
       dataIndex: 'picture',
150
       dataIndex: 'picture',
151
       key: 'picture',
151
       key: 'picture',
152
+      align: 'center',
152
       render: (_, record) => <Avatar shape="square" src={customerType === 'private' ? record.picture : record.avatarurl} size={64} icon="user" />,
153
       render: (_, record) => <Avatar shape="square" src={customerType === 'private' ? record.picture : record.avatarurl} size={64} icon="user" />,
153
     },
154
     },
154
     {
155
     {
155
       title: '姓名',
156
       title: '姓名',
156
       dataIndex: 'name',
157
       dataIndex: 'name',
157
       key: 'name',
158
       key: 'name',
159
+      align: 'center',
158
       // eslint-disable-next-line no-nested-ternary
160
       // eslint-disable-next-line no-nested-ternary
159
       render: (_, record) => <><span>{customerType === 'private' ? record.name : record.nickname}</span></>,
161
       render: (_, record) => <><span>{customerType === 'private' ? record.name : record.nickname}</span></>,
160
     },
162
     },
162
       title: '电话',
164
       title: '电话',
163
       dataIndex: 'phone',
165
       dataIndex: 'phone',
164
       key: 'phone',
166
       key: 'phone',
167
+      align: 'center',
165
     },
168
     },
166
     {
169
     {
167
       title: '性别',
170
       title: '性别',
168
       dataIndex: 'sex',
171
       dataIndex: 'sex',
169
       key: 'sex',
172
       key: 'sex',
173
+      align: 'center',
170
       // eslint-disable-next-line no-nested-ternary
174
       // eslint-disable-next-line no-nested-ternary
171
       render: (_, record) => <><span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span></>,
175
       render: (_, record) => <><span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span></>,
172
     },
176
     },
174
       title: '置业顾问',
178
       title: '置业顾问',
175
       dataIndex: 'consultantName',
179
       dataIndex: 'consultantName',
176
       key: 'consultantName',
180
       key: 'consultantName',
181
+      align: 'center',
177
       // eslint-disable-next-line no-nested-ternary
182
       // eslint-disable-next-line no-nested-ternary
178
       render: (_, record) => (
183
       render: (_, record) => (
179
         <>
184
         <>
187
       title: '客户状态',
192
       title: '客户状态',
188
       dataIndex: 'reportRecommendStatus',
193
       dataIndex: 'reportRecommendStatus',
189
       key: 'reportRecommendStatus',
194
       key: 'reportRecommendStatus',
195
+      align: 'center',
190
       // eslint-disable-next-line no-nested-ternary
196
       // eslint-disable-next-line no-nested-ternary
191
       render: (_, record) => <><span>{record.reportRecommendStatus === 0 ? '为报备' : record.reportRecommendStatus === 1 ? '报备' : record.reportRecommendStatus === 2 ? '推荐' : ''}</span></>,
197
       render: (_, record) => <><span>{record.reportRecommendStatus === 0 ? '为报备' : record.reportRecommendStatus === 1 ? '报备' : record.reportRecommendStatus === 2 ? '推荐' : ''}</span></>,
192
     },
198
     },
194
       title: '操作',
200
       title: '操作',
195
       dataIndex: 'customerId',
201
       dataIndex: 'customerId',
196
       key: 'customerId',
202
       key: 'customerId',
203
+      align: 'center',
197
       // eslint-disable-next-line no-nested-ternary
204
       // eslint-disable-next-line no-nested-ternary
198
       render: (_, record) => (
205
       render: (_, record) => (
199
         <>
206
         <>