根据状态管理

master
fanluyan 2 years ago
parent f41ad2f5ca
commit 868d924ada

@ -505,9 +505,25 @@ export default {
// //
handleSetSchedule() { handleSetSchedule() {
this.$refs.setschedule_ref.display(); getTermStatus({ termId: this.newTermId }).then((res) => {
this.$refs.setschedule_ref.getSingleAccess(this.channelId, this.cmdid); console.log(res);
this.$refs.setschedule_ref.deviceList(); if (res.data.isonline) {
this.$refs.setschedule_ref.display();
this.$refs.setschedule_ref.getSingleAccess(
this.channelId,
this.cmdid
);
this.$refs.setschedule_ref.deviceList();
} else {
this.btnpicloading = false;
this.$message({
duration: 1500,
showClose: true,
message: "装置下线,发送指令失败",
type: "error",
});
}
});
}, },
handleCommandWarn(command) { handleCommandWarn(command) {
switch (command) { switch (command) {
@ -679,35 +695,7 @@ export default {
} }
}); });
}, },
//
// handleShowPic() {
// console.log(this.channelValue[0]);
// console.log(this.cmdid);
// getLatestPhotoJoggle({
// captureType: 0,
// channel: this.channelValue[0],
// cmdid: this.cmdid,
// preset: 255,
// })
// .then((res) => {
// this.$message({
// message: "",
// type: "success",
// });
// console.log(res);
// this.newPicData = res.data;
// console.log(this.newPicData);
// console.log(this.newTermId);
// this.timer = window.setInterval(() => {
// this.newPicApi();
// this.i++;
// }, 10000);
// })
// .catch((err) => {
// console.log(err); //
// });
// },
// //
newPicApi() { newPicApi() {
getReturnedPhotoJoggle({ getReturnedPhotoJoggle({

Loading…
Cancel
Save