|
@@ -87,7 +87,7 @@ class ModalAttribution extends React.Component {
|
87
|
87
|
|
88
|
88
|
// 分页
|
89
|
89
|
onChange(pageNum) {
|
90
|
|
- this.getList({ pageNumber: pageNum, pageSize: 5, buildingId: this.props.visibleData.buildingId })
|
|
90
|
+ this.getList({ pageNumber: pageNum, pageSize: 5, buildingId: this.state.visibleData.buildingName })
|
91
|
91
|
}
|
92
|
92
|
|
93
|
93
|
// 提交
|
|
@@ -148,7 +148,7 @@ class ModalAttribution extends React.Component {
|
148
|
148
|
onCancel={(e) => this.handleCancel(e)}
|
149
|
149
|
>
|
150
|
150
|
<BuildSelect onChange={this.changBuilding.bind(this)} value={this.state.visibleData.buildingName} />
|
151
|
|
- <Table rowKey="assistConsultant" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
|
|
151
|
+ <Table rowKey="assistConsultant" dataSource={this.state.dataSource.records} columns={columns} pagination={{pageSize: 5, total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
|
152
|
152
|
</Modal>
|
153
|
153
|
</>
|
154
|
154
|
);
|