|
@@ -56,14 +56,18 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="item.prop === 'status'" style="display: flex;justify-content: center">
|
|
|
- <div v-if="scope.row[item.prop]" style="display: flex;align-items: center;">
|
|
|
+ <div v-if="scope.row[item.prop] === 1" style="display: flex;align-items: center;">
|
|
|
<div style="height: 16px;width: 16px;border-radius: 50%;background-color: #5daf34"/>
|
|
|
<div style="margin-left: 16px">正在运行</div>
|
|
|
</div>
|
|
|
- <div v-else style="display: flex;align-items: center;">
|
|
|
+ <div v-else-if="scope.row[item.prop] === 0" style="display: flex;align-items: center;">
|
|
|
<div style="height: 16px;width: 16px;border-radius: 50%;background-color: #f1092b"/>
|
|
|
<div style="margin-left: 16px">停止运行</div>
|
|
|
</div>
|
|
|
+ <div v-else-if="scope.row[item.prop] === -1" style="display: flex;align-items: center;">
|
|
|
+ <div style="height: 16px;width: 16px;border-radius: 50%;background-color: #0930f1"/>
|
|
|
+ <div style="margin-left: 16px">RTU模块连接异常</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div v-else>{{ scope.row[item.prop] }}</div>
|
|
|
</template>
|
|
@@ -125,7 +129,7 @@ export default {
|
|
|
item[msg.tableColumn] = msg.value
|
|
|
}
|
|
|
}
|
|
|
- item.status = item.FEEDBACK === 1
|
|
|
+ item.status = item.FEEDBACK
|
|
|
}
|
|
|
return tableDataWrapper
|
|
|
} else {
|