|
|
|
@ -69,6 +69,7 @@
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
height="calc(100% - 40px)"
|
|
|
|
|
:default-sort="{ order: 'descending' }"
|
|
|
|
|
:row-class-name="tableRowSetting"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" :reserve-selection="true" width="50">
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -976,6 +977,21 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
|
methods: {
|
|
|
|
|
tableRowSetting({ 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));
|
|
|
|
|
if (parseInt(row.raw_report.msgs.freeROM) < 40) {
|
|
|
|
|
return "has-color";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 根据if条件定义到该行
|
|
|
|
|
// if (row.rank === 1) {
|
|
|
|
|
// return "has-color";
|
|
|
|
|
// }
|
|
|
|
|
// return "";
|
|
|
|
|
},
|
|
|
|
|
sortNumbers(a, b) {
|
|
|
|
|
return (
|
|
|
|
|
Number(a.raw_report.msgs.rebootTimes) -
|
|
|
|
@ -1609,6 +1625,9 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.has-color {
|
|
|
|
|
background: #f5dab1;
|
|
|
|
|
}
|
|
|
|
|
.el-table--scrollable-y .el-table__body-wrapper {
|
|
|
|
|
height: calc(100% - 40px) !important;
|
|
|
|
|
}
|
|
|
|
|