Commit 9c454bf3 authored by wanghao's avatar wanghao

1 写时间后 立马 读一次 判断是否写入成功

parent 0beec712
...@@ -151,15 +151,15 @@ ...@@ -151,15 +151,15 @@
</el-table-column> </el-table-column>
<el-table-column label="继电器状态" align="center" width="150"> <el-table-column label="继电器状态" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.relayStatus === 0" class="write-success">初始</span> <span v-if="scope.row.relayStatus === 0" class="write-failed">初始</span>
<span v-else-if="scope.row.relayStatus === 1" class="write-failed">动作</span> <span v-else-if="scope.row.relayStatus === 1" class="write-success">动作</span>
<span v-else class="write-unknown">-</span> <span v-else class="write-unknown">-</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="脉冲状态" align="center" width="120"> <el-table-column label="脉冲状态" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.pulseStatus === 0" class="write-success">初始</span> <span v-if="scope.row.pulseStatus === 0" class="write-failed">初始</span>
<span v-else-if="scope.row.pulseStatus === 1" class="write-failed">动作</span> <span v-else-if="scope.row.pulseStatus === 1" class="write-success">动作</span>
<span v-else class="write-unknown">-</span> <span v-else class="write-unknown">-</span>
</template> </template>
</el-table-column> </el-table-column>
......
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