|
@@ -225,12 +225,10 @@ export default {
|
|
|
menuClicked(msg) {
|
|
|
var bd = BackgroundData.getInstance();
|
|
|
if (!bd.LoginUser) {
|
|
|
- this.$notify({
|
|
|
- title: "请登录",
|
|
|
- message: "控制风机需要先登录!",
|
|
|
- type: 'warning',
|
|
|
- position: 'bottom-right'
|
|
|
- });
|
|
|
+ this.$message({
|
|
|
+ message: "<strong>请登录</strong> 控制风机需要先登录!",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
return;
|
|
|
}
|
|
|
if (msg.type == "lock") {
|
|
@@ -277,16 +275,29 @@ export default {
|
|
|
var bd = BackgroundData.getInstance();
|
|
|
if (isAuto) {
|
|
|
if (!bd.LoginUser) {
|
|
|
- this.$notify({
|
|
|
+ this.$message({
|
|
|
+ message: "<strong>请登录</strong>切换为自动控制需要先登录!",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ /* this.$notify({
|
|
|
title: "请登录",
|
|
|
message: "切换为自动控制需要先登录!",
|
|
|
type: 'warning',
|
|
|
- position: 'bottom-right'
|
|
|
- });
|
|
|
+ position: 'bottom-right',
|
|
|
+ offset:60,
|
|
|
+ }); */
|
|
|
return;
|
|
|
}
|
|
|
this.AutoSendTimer = setInterval(this.AutoSend, 60000);
|
|
|
+ this.$message({
|
|
|
+ message: "已切换为自动控制",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
} else {
|
|
|
+ this.$message({
|
|
|
+ message: "已切换为手动控制",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
clearInterval(this.AutoSendTimer);
|
|
|
}
|
|
|
this.IsAutoControl = isAuto;
|