Commit 7ccfc9a7 by Lin

feat: 驻店员工概况预警样式修改

1 parent 3294b1b7
......@@ -399,6 +399,7 @@ export default {
// getMonitorList(cleanParams).then((res) => {
getWarningSummaryList(cleanParams).then((res) => {
if (res) {
console.log("getWarningSummaryList", res);
// 为每个数组元素添加 checked 字段,默认为 false
this.cardList = Array.isArray(res)
? res.map(item => ({ ...item, checked: false }))
......
......@@ -507,12 +507,12 @@ export default {
warningInfoList.forEach((e, index) => {
if ((index + 1) % 2 == 0) {
rightWarningInfoList.push({
type: e.warningText.startsWith("兜底预警") ? 1 : 2,
type: e.warningType,
text: `${e.warningTypeName}: ${e.warningText}`,
});
} else {
leftWarningInfoList.push({
type: e.warningText.startsWith("兜底预警") ? 1 : 2,
type: e.warningType,
text: `${e.warningTypeName}: ${e.warningText}`,
});
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!