|
|
|
@ -712,19 +712,23 @@ export default {
|
|
|
|
|
param: param, |
|
|
|
|
}; |
|
|
|
|
console.log("操作参数", data); |
|
|
|
|
// 开启 loading 效果 |
|
|
|
|
this.loading = true; |
|
|
|
|
debugger |
|
|
|
|
operationConrol([data]) |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
this.$modal.msgSuccess("指令下发成功!"); |
|
|
|
|
// // 开启 loading 效果 |
|
|
|
|
this.loading = true; |
|
|
|
|
// this.loading = true; |
|
|
|
|
// 更新所有设备状态; |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.getWindList(this.currentId); |
|
|
|
|
// // 关闭 loading 效果 |
|
|
|
|
this.loading = false; |
|
|
|
|
}, 5000); |
|
|
|
|
// // 关闭 loading 效果 |
|
|
|
|
this.loading = false; |
|
|
|
|
} else { |
|
|
|
|
this.loading = false; |
|
|
|
|
// this.$modal.msgError("操作失败"); |
|
|
|
|
console.log("应该更新状态的"); |
|
|
|
|
// 更新所有设备状态; |
|
|
|
@ -732,6 +736,8 @@ export default {
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((error) => { |
|
|
|
|
// 开启 loading 效果 |
|
|
|
|
this.loading = false; |
|
|
|
|
console.log("请求发生错误,更新设备状态", error); |
|
|
|
|
// 更新所有设备状态; |
|
|
|
|
this.getWindList(this.currentId); |
|
|
|
@ -912,13 +918,15 @@ export default {
|
|
|
|
|
policyId: id, |
|
|
|
|
timeValue: param, |
|
|
|
|
}; |
|
|
|
|
console.log("操作参数", data); |
|
|
|
|
// console.log("操作参数", data); |
|
|
|
|
// 开启 loading 效果 |
|
|
|
|
this.loading = true; |
|
|
|
|
undateTime(data) |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code == 200) { |
|
|
|
|
this.$modal.msgSuccess("指令下发成功!"); |
|
|
|
|
// 开启 loading 效果 |
|
|
|
|
this.loading = true; |
|
|
|
|
// this.loading = true; |
|
|
|
|
// 更新所有设备状态; |
|
|
|
|
setTimeout(() => { |
|
|
|
|
this.getPolicyList(); |
|
|
|
@ -926,6 +934,8 @@ export default {
|
|
|
|
|
this.loading = false; |
|
|
|
|
}, 500); |
|
|
|
|
} else { |
|
|
|
|
// 关闭 loading 效果 |
|
|
|
|
this.loading = false; |
|
|
|
|
// this.$modal.msgError("操作失败"); |
|
|
|
|
console.log("应该更新状态的"); |
|
|
|
|
// 更新所有设备状态; |
|
|
|
@ -933,6 +943,8 @@ export default {
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((error) => { |
|
|
|
|
// 关闭 loading 效果 |
|
|
|
|
this.loading = false; |
|
|
|
|
console.log("请求发生错误,更新设备状态", error); |
|
|
|
|
// 更新所有设备状态; |
|
|
|
|
this.getPolicyList(); |
|
|
|
|