zhoulisen 5 years ago
parent
commit
2486ed0a77

+ 1
- 2
src/pages/customer/customerlist/components/BatchAssistConsultant.jsx View File

@@ -92,8 +92,7 @@ class ModalAttribution extends React.Component {
92 92
 
93 93
   // 分页
94 94
   onChange(pageNum) {
95
-
96
-    this.getList({ pageNumber: pageNum, pageSize: 5, buildingId: this.state.visibleData.buildingName })
95
+    this.getList({ pageNumber: pageNum, pageSize: 5, buildingId: this.state.visibleData.buildingName ||this.props.visibleData.buildingId})
97 96
   }
98 97
 
99 98
   // 提交

+ 2
- 2
src/pages/customer/customerlist/components/assistConsultant.jsx View File

@@ -88,8 +88,8 @@ class ModalAttribution extends React.Component {
88 88
 
89 89
   // 分页
90 90
   onChange(pageNum) {
91
-    console.log(this.state.visibleData.buildingName)
92
-    this.getList({ pageNumber: pageNum, pageSize: 5, customerId: this.props.visibleData.customerId, buildingId: this.state.visibleData.buildingName })
91
+    console.log(this.state.visibleData.buildingName,this.props.visibleData.buildingId)
92
+    this.getList({ pageNumber: pageNum, pageSize: 5, customerId: this.props.visibleData.customerId, buildingId: this.state.visibleData.buildingName ||this.props.visibleData.buildingId})
93 93
   }
94 94
 
95 95
   // 提交