add modbus preview page

This commit is contained in:
Jay
2017-04-12 14:26:01 +08:00
parent 64ad807310
commit e5bf72435c
7 changed files with 5756 additions and 5424 deletions
@@ -47,7 +47,12 @@ class LocStatusWloc extends React.Component {
getStatus = () => {
let {toggleLoading, showDialog} = this.props;
fetch('/api/wristband/getstatus', getRequest())
fetch('/api/wristband/getstatus', getRequest({
sort: {
field: 'time',
order: 'desc'
}
}))
.then(response=>response.json())
.then(json => {
if(json.status != 1) return showDialog(json.message);