master
fanluyan 1 year ago
parent 5c3ca9d13e
commit 00ef41ac2a

@ -765,7 +765,14 @@ import htmlToExcel from "@/utils/htmlToExcel";
import { saveAs } from "file-saver"; import { saveAs } from "file-saver";
import XLSX from "xlsx"; import XLSX from "xlsx";
export default { export default {
props: ["tableData", "onlineNum", "offlineNum", "noPicNum", "tableLoaidng"], props: [
"tableData",
"onlineNum",
"offlineNum",
"noPicNum",
"freeNum",
"tableLoaidng",
],
components: { components: {
rowMsgDialog, rowMsgDialog,
}, },
@ -828,7 +835,6 @@ export default {
ywNumber: 0, ywNumber: 0,
kxtNumber: 0, kxtNumber: 0,
freeNum: 0,
nowTime: new Date().getTime() / 1000, nowTime: new Date().getTime() / 1000,
gycheck: true, gycheck: true,
@ -1031,7 +1037,7 @@ export default {
if (row.raw_report.msgs.hasOwnProperty("freeROM")) { if (row.raw_report.msgs.hasOwnProperty("freeROM")) {
// console.log(row.raw_report.msgs.freeROM); // console.log(row.raw_report.msgs.freeROM);
// console.log(parseInt(row.raw_report.msgs.freeROM)); // console.log(parseInt(row.raw_report.msgs.freeROM));
if (parseInt(row.raw_report.msgs.freeROM) < 40) { if (parseInt(row.raw_report.msgs.freeROM) < 50) {
return "has-color"; return "has-color";
} }
} }
@ -1121,10 +1127,10 @@ export default {
this.checkAllKXT = false; this.checkAllKXT = false;
} }
this.freeNum = // this.freeNum =
this.$refs.ywMultipleTable.$el.getElementsByClassName( // this.$refs.ywMultipleTable.$el.getElementsByClassName(
"has-color" // "has-color"
).length; // ).length;
}, },
// //
handleExport() { handleExport() {
@ -1699,10 +1705,10 @@ export default {
} }
} }
.has-color { .has-color {
background: #f5dab1; background: #ffb8b8;
} }
.has-color td.el-table__cell { .has-color td.el-table__cell {
background: #f5dab1 !important; background: #ffb8b8 !important;
} }
} }
.ywTableBox { .ywTableBox {

@ -195,6 +195,7 @@
:onlineNum="onlineNum" :onlineNum="onlineNum"
:offlineNum="offlineNum" :offlineNum="offlineNum"
:noPicNum="noPicNum" :noPicNum="noPicNum"
:freeNum="freeNum"
:tableLoaidng="tableLoaidng" :tableLoaidng="tableLoaidng"
></tableMain> ></tableMain>
</div> </div>
@ -254,6 +255,7 @@ export default {
onlineNum: 0, //线 onlineNum: 0, //线
offlineNum: 0, //线 offlineNum: 0, //线
noPicNum: 0, // noPicNum: 0, //
freeNum: 0,
intervalId: null, // ID intervalId: null, // ID
activityIdLoc: "", activityIdLoc: "",
runCommand: [], // runCommand: [], //
@ -470,6 +472,10 @@ export default {
item.raw_report.pic == 0 || item.raw_report.pic == 0 ||
item.raw_report.pic == -1 item.raw_report.pic == -1
).length; ).length;
this.freeNum = this.dataList.filter(
(item) => parseInt(item.raw_report.msgs.freeROM) < 50
).length;
console.log("我是磁盘", this.freeNum);
this.getCmdList(); this.getCmdList();
this.tableLoaidng = false; this.tableLoaidng = false;
}) })
@ -571,6 +577,10 @@ export default {
item.raw_report.pic == 0 || item.raw_report.pic == 0 ||
item.raw_report.pic == -1 item.raw_report.pic == -1
).length; ).length;
this.freeNum = this.dataList.filter(
(item) => parseInt(item.raw_report.msgs.freeROM) < 50
).length;
console.log("我是磁盘", this.freeNum);
this.getCmdList(); this.getCmdList();
}) })
.catch((err) => {}); .catch((err) => {});

Loading…
Cancel
Save