瀏覽代碼

分页问题

魏超 5 年之前
父節點
當前提交
fb3aabaf28
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/pages/customer/customerlist/components/attribution.jsx

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

56
     }
56
     }
57
     // 网路请求
57
     // 网路请求
58
     request({ ...apis.customer.buildingConsultant, params: { ...params } }).then(res => {
58
     request({ ...apis.customer.buildingConsultant, params: { ...params } }).then(res => {
59
+      console.log('res',res);
59
       this.setState({ dataSource: res })
60
       this.setState({ dataSource: res })
60
     }).catch(err => {
61
     }).catch(err => {
61
       // eslint-disable-next-line no-unused-expressions
62
       // eslint-disable-next-line no-unused-expressions
135
             // onOk={() => this.handleOk()}
136
             // onOk={() => this.handleOk()}
136
             onCancel={(e) => this.handleCancel(e)}
137
             onCancel={(e) => this.handleCancel(e)}
137
           >
138
           >
138
-            <Table rowKey="attribution" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
139
+            <Table rowKey="attribution" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, pageSize: this.state.dataSource.size, onChange: e => this.onChange(e) }} />
139
           </Modal>
140
           </Modal>
140
       </>
141
       </>
141
     );
142
     );