箱管 批量查询 查询提示修改

dev
张同海 2 weeks ago
parent a646da2825
commit b6dd40fc38

@ -64,14 +64,16 @@
} }
}) })
if (MessageArr.length) { if (MessageArr.length) {
let txt = `${MessageArr.length}个待上线:` // let txt = `${MessageArr.length}线`
for (let i = 0; i < 5; i++) { let txt = `${MessageArr.length}个待上线.`
if (MessageArr[i]) { // for (let i = 0; i < 5; i++) {
txt = i == 0 ? `${txt} ${MessageArr[i]}` : `${txt},\n${MessageArr[i]}` // if (MessageArr[i]) {
} // txt = i == 0 ? `${txt} ${MessageArr[i]}` : `${txt},\n${MessageArr[i]}`
} // }
// }
notification.warning({ notification.warning({
message: MessageArr.length > 5 ? `${txt}...` : txt, // message: MessageArr.length > 5 ? `${txt}...` : txt,
message: txt,
duration: 6000, duration: 6000,
}) })
} }

Loading…
Cancel
Save