zhoulisen 5 年前
父节点
当前提交
2486ed0a77

+ 1
- 2
src/pages/customer/customerlist/components/BatchAssistConsultant.jsx 查看文件

92
 
92
 
93
   // 分页
93
   // 分页
94
   onChange(pageNum) {
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 查看文件

88
 
88
 
89
   // 分页
89
   // 分页
90
   onChange(pageNum) {
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
   // 提交