update loss chk

This commit is contained in:
Jay
2017-04-24 16:25:56 +08:00
parent a4b949bbfe
commit 27d2209ea2
3 changed files with 5 additions and 4 deletions
@@ -5,7 +5,7 @@ import {convertTime, padding} from '../../../../tools';
const ListItem = ({i18n, data}) => {
return (
<Table.Row style={{color: padding(data.timestamp, 13, 1, '0') < (Date.now() - 60000) ? '#f00' : 'inherit'}}>
<Table.Row style={{color: data.loss != 0 ? '#f00' : 'inherit'}}>
<Table.Cell>{data.wristband}</Table.Cell>
<Table.Cell>{data.name}</Table.Cell>
<Table.Cell>{data.locname}</Table.Cell>
@@ -94,7 +94,7 @@ class LocStatusWloc extends React.Component {
{
t.list ?
t.list.map((tt, idx) => {
let isExpire = padding(tt.timestamp, 13, 1, '0') < (Date.now() - 60000) ? true : false;
let isExpire = tt.loss == 1 ? true : false;
return (<List.Item key={idx}>
{
tt.name ? (