提交 93e5c904 作者: 温凯

fix:接管弹框不能遮盖住个人账号,需修改样式,且弹框在页面显示30秒左右自动释放

上级 5d9ea3a4
......@@ -121,7 +121,8 @@ export default {
this.$notify.success({
title: "接管消息",
message: msg,
duration: 0,
duration: 30000,
offset:40
});
this.$emit("refresh");
this.takeOverVisible = false;
......@@ -129,7 +130,8 @@ export default {
this.$notify.warning({
title: "接管消息",
message: msg,
duration: 0,
duration: 30000,
offset:40
});
this.$message.warning("申请接管拒绝");
}
......@@ -147,7 +149,7 @@ export default {
});
setTimeout(() => {
if (this.takeLoading) {
this.$message.error(`申请接管失败`);
this.$message.error(`接管失败,申请单位未同意`);
this.takeLoading = false
}
}, 5500);
......@@ -155,12 +157,12 @@ export default {
this.bus.$on("uas-device-take-agree-message", this.onTakeAgree);
this.bus.$on("uas-device-take-refuse-message", this.onTakeAgree);
} else {
this.$message.warning("申请接管失败");
this.$message.warning("接管失败,申请单位未同意");
this.takeLoading = false;
}
setTimeout(() => {
if (this.takeLoading) {
this.$message.error(`申请接管失败`);
this.$message.error(`接管失败,申请单位未同意`);
this.takeLoading = false
}
}, 5500);
......@@ -346,7 +348,7 @@ export default {
this.takeOverVisible = true;
setTimeout(() => {
if (this.takeLoading) {
this.$message.error(`申请接管失败`);
this.$message.error(`接管失败,申请单位未同意`);
this.takeLoading = false
}
}, 5500);
......@@ -377,7 +379,7 @@ export default {
// 5秒后没收到通知认定接管失败
setTimeout(() => {
if (this.takeLoading) {
this.$message.error(`申请接管失败`);
this.$message.error(`接管失败,申请单位未同意`);
this.takeLoading = false
}
}, 5500);
......
......@@ -159,7 +159,8 @@ export default {
this.$notify.success({
title: "接管消息",
message: msg,
duration: 0,
duration: 30000,
offset:40
});
this.$emit("refresh");
this.takeOverVisible = false;
......@@ -167,7 +168,8 @@ export default {
this.$notify.warning({
title: "接管消息",
message: msg,
duration: 0,
duration: 30000,
offset:40
});
this.$message.warning("申请接管拒绝");
}
......@@ -188,12 +190,12 @@ export default {
this.bus.$on("uas-device-take-agree-message", this.onTakeAgree);
this.bus.$on("uas-device-take-refuse-message", this.onTakeAgree);
} else {
this.$message.warning("申请接管失败");
this.$message.warning("接管失败,申请单位未同意");
this.takeLoading = false;
}
setTimeout(() => {
if (this.takeLoading) {
this.$message.error(`申请接管失败`);
this.$message.error(`接管失败,申请单位未同意`);
this.takeLoading = false
}
}, 5500);
......
......@@ -319,7 +319,8 @@ export default {
this.$notify.info({
title: "接管消息",
message: msg,
duration: 0,
duration: 30000,
offset:40
});
break;
......@@ -328,7 +329,8 @@ export default {
this.$notify.warning({
title: "接管消息",
message: msg,
duration: 0,
duration: 30000,
offset:40
});
break;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论