|
@@ -339,9 +339,10 @@ export default {
|
|
|
{},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
- res.data.forEach(item => {
|
|
|
- this.notify(item.modelName);
|
|
|
- });
|
|
|
+ //说明有东西需要保养
|
|
|
+ if (res.data.length > 0) {
|
|
|
+ this.notify();
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -359,10 +360,10 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
//右上角弹窗警告
|
|
|
- notify(name) {
|
|
|
+ notify() {
|
|
|
this.$notify({
|
|
|
- title: "需要保养",
|
|
|
- message: name + "需要保养,请到消息列表中查看",
|
|
|
+ title: "有模具需要保养",
|
|
|
+ message: "请到消息列表中查看",
|
|
|
type: "warning",
|
|
|
duration: 0
|
|
|
});
|