许静 5 年之前
父節點
當前提交
e132fcc444
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/pages/customer/customerlist/index.jsx

+ 7
- 0
src/pages/customer/customerlist/index.jsx 查看文件

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