| | |
| | | |
| | | async loadmaindata (pageIndex = 1, pageSize = 10, orderColumn = '', orderType = '', search = '') { |
| | | // 获取列表数据 |
| | | let result = await Api.getMainTableData(this.props.MenuNo, pageIndex, pageSize, orderColumn, orderType, search) |
| | | if (result.status) { |
| | | this.setState({ |
| | | data: result.data.map((item, index) => { |
| | | item.key = index |
| | | item.rows = item.mkrows |
| | | return item |
| | | }), |
| | | total: result.total, |
| | | loading: false |
| | | }) |
| | | } |
| | | // let result = await Api.getMainTableData(this.props.MenuNo, pageIndex, pageSize, orderColumn, orderType, search) |
| | | // if (result.status) { |
| | | // this.setState({ |
| | | // data: result.data.map((item, index) => { |
| | | // item.key = index |
| | | // item.rows = item.mkrows |
| | | // return item |
| | | // }), |
| | | // total: result.total, |
| | | // loading: false |
| | | // }) |
| | | // } |
| | | } |
| | | |
| | | UNSAFE_componentWillMount () { |