Quellcode durchsuchen

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

zhoulisen vor 5 Jahren
Ursprung
Commit
bc2c9ab9f0

+ 1
- 1
src/pages/customer/customerlist/components/BatchAssistConsultant.jsx Datei anzeigen

@@ -35,7 +35,7 @@ class ModalAttribution extends React.Component {
35 35
   componentDidUpdate(preProps, preState) {
36 36
     console.log(this.props.visibleData)
37 37
     if (this.props.visibleData.visible !== preState.visibleData.visible) {
38
-      this.getList({ pageNumber: 1, pageSize: 5, customerId: this.props.visibleData.customerId ,buildingId: this.props.visibleData.buildingId})
38
+      this.getList({ pageNumber: 1, pageSize: 5,buildingId: this.props.visibleData.buildingId})
39 39
       this.setState({ visibleData: this.props.visibleData });
40 40
     }
41 41
   }

+ 2
- 1
src/pages/customer/customerlist/index.jsx Datei anzeigen

@@ -367,9 +367,10 @@ function body(props) {
367 367
   }
368 368
 
369 369
   const rowSelection = {
370
+    selectedRowKeys,
370 371
     onChange: (selectedRowKeys, selectedRows) => {
371 372
       console.log('selectedRowKeys:', selectedRowKeys, 'selectedRows: ', selectedRows);
372
-
373
+      setSelectedRowKeys(selectedRowKeys)
373 374
       const newSelectedRows = personInfo.filter(x => !selectedRows.some(y => x.customerId === y.customerId))     // 去重
374 375
         .concat(selectedRows)                                                                 // 新增选择
375 376
         .filter(x => selectedRowKeys.some(y => y === x.customerId))                             // 去掉未选的数据