|
|
@ -155,7 +155,7 @@ class DeviceUninstall extends React.Component {
|
|
|
|
const pagination = {...this.state.pagination};
|
|
|
|
const pagination = {...this.state.pagination};
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
data: res.data.data.devices,
|
|
|
|
data: res.data.data,
|
|
|
|
pagination,
|
|
|
|
pagination,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -220,10 +220,11 @@ class DeviceUninstall extends React.Component {
|
|
|
|
style={{paddingTop: 20}}
|
|
|
|
style={{paddingTop: 20}}
|
|
|
|
columns={columns}
|
|
|
|
columns={columns}
|
|
|
|
rowKey={record => record.deviceIdentifier}
|
|
|
|
rowKey={record => record.deviceIdentifier}
|
|
|
|
dataSource={data}
|
|
|
|
dataSource={data.devices}
|
|
|
|
pagination={{
|
|
|
|
pagination={{
|
|
|
|
...pagination,
|
|
|
|
...pagination,
|
|
|
|
size: "small",
|
|
|
|
size: "small",
|
|
|
|
|
|
|
|
total: data.count,
|
|
|
|
showTotal: (total, range) => `showing ${range[0]}-${range[1]} of ${total} devices`
|
|
|
|
showTotal: (total, range) => `showing ${range[0]}-${range[1]} of ${total} devices`
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
loading={loading}
|
|
|
|
loading={loading}
|
|
|
|