Commit 091e31f7 authored by wanghao's avatar wanghao

1 老化过程中 获取卡号,获取IOT状态调整中

parent 0a1e841f
......@@ -273,7 +273,10 @@ public class AllCommandHandler {
continue;
}
String nbCode = palletDeviceBinding.getNbCode();
// 如果 nbCode 为空,则设状态为 2,加入待更新列表
if (StringUtils.isBlank(nbCode)) {
palletDeviceBinding.setIotStatus(2);
needUpdateList.add(palletDeviceBinding);
continue;
}
......
......@@ -166,6 +166,7 @@
<el-table-column label="IOT状态" align="center" width="120">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.iotStatus === 1">正常</el-tag>
<el-tag type="info" v-if="scope.row.iotStatus === 2">NB码为空</el-tag>
<el-tag type="info" v-if="scope.row.iotStatus === 0">异常</el-tag>
<el-tag type="danger" v-if="scope.row.iotStatus === -9999">通讯异常</el-tag>
</template>
......
......@@ -156,6 +156,7 @@
<el-table-column label="IOT状态" align="center" width="120">
<template slot-scope="scope">
<el-tag type="success" v-if="scope.row.iotStatus === 1">正常</el-tag>
<el-tag type="info" v-if="scope.row.iotStatus === 2">NB码为空</el-tag>
<el-tag type="info" v-if="scope.row.iotStatus === 0">异常</el-tag>
<el-tag type="danger" v-if="scope.row.iotStatus === -9999">通讯异常</el-tag>
</template>
......
......@@ -201,6 +201,7 @@
<template slot-scope="scope">
<span v-if="scope.row.iotStatus === 1" class="write-success">正常</span>
<span v-else-if="scope.row.iotStatus === 0" class="write-failed">异常</span>
<span v-else-if="scope.row.iotStatus === 2" class="write-failed">NB码为空</span>
<span v-else-if="scope.row.iotStatus === -9999" class="write-failed">通讯异常</span>
<span v-else class="write-unknown">-</span>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment