|
|
|
@ -74,12 +74,18 @@
|
|
|
|
|
:default-sort="{ order: 'descending' }"
|
|
|
|
|
:row-class-name="tableRowSetting"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" :reserve-selection="true" width="50">
|
|
|
|
|
<el-table-column
|
|
|
|
|
type="selection"
|
|
|
|
|
:reserve-selection="true"
|
|
|
|
|
width="50"
|
|
|
|
|
fixed
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" fixed>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column type="index" width="50" label="序号"> </el-table-column>
|
|
|
|
|
<!-- <el-table-column prop="id" label="ID" width="60" sortable>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
<el-table-column prop="oid" label="出厂ID" width="180" sortable>
|
|
|
|
|
<el-table-column prop="oid" label="出厂ID" width="180" sortable fixed>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span
|
|
|
|
|
class="redMlxf"
|
|
|
|
@ -111,9 +117,9 @@
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="cmdid" label="装置编号" width="150" sortable>
|
|
|
|
|
<el-table-column prop="cmdid" label="装置编号" width="150" sortable fixed>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="状态" width="72">
|
|
|
|
|
<el-table-column label="状态" width="72" fixed>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag
|
|
|
|
|
type="success"
|
|
|
|
@ -123,7 +129,13 @@
|
|
|
|
|
<el-tag type="danger" v-else>离线</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="运维" prop="in_maintain" width="100" sortable>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="运维"
|
|
|
|
|
prop="in_maintain"
|
|
|
|
|
width="100"
|
|
|
|
|
sortable
|
|
|
|
|
fixed
|
|
|
|
|
>
|
|
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
|
|
<p :class="ywNumber != 0 ? 'redClass' : 'noClass'">
|
|
|
|
|
{{ ywNumber }}<span> / {{ tableData.length }}</span>
|
|
|
|
@ -151,7 +163,13 @@
|
|
|
|
|
></el-checkbox>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="快心跳" prop="quick_hb" width="108" sortable>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="快心跳"
|
|
|
|
|
prop="quick_hb"
|
|
|
|
|
width="108"
|
|
|
|
|
sortable
|
|
|
|
|
fixed
|
|
|
|
|
>
|
|
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
|
|
<p :class="kxtNumber != 0 ? 'redClass' : 'noClass'">
|
|
|
|
|
{{ kxtNumber }}<span> / {{ tableData.length }}</span>
|
|
|
|
@ -1002,10 +1020,10 @@ export default {
|
|
|
|
|
created() {},
|
|
|
|
|
methods: {
|
|
|
|
|
tableRowSetting({ row }) {
|
|
|
|
|
//console.log(row);
|
|
|
|
|
console.log(row);
|
|
|
|
|
if (row.raw_report.msgs.hasOwnProperty("freeROM")) {
|
|
|
|
|
// console.log(row.raw_report.msgs.freeROM);
|
|
|
|
|
// console.log(parseInt(row.raw_report.msgs.freeROM));
|
|
|
|
|
console.log(row.raw_report.msgs.freeROM);
|
|
|
|
|
console.log(parseInt(row.raw_report.msgs.freeROM));
|
|
|
|
|
if (parseInt(row.raw_report.msgs.freeROM) < 40) {
|
|
|
|
|
return "has-color";
|
|
|
|
|
}
|
|
|
|
|