|
|
@ -421,7 +421,7 @@ export default {
|
|
|
|
zzradio: -1,
|
|
|
|
zzradio: -1,
|
|
|
|
videoVisible: false,
|
|
|
|
videoVisible: false,
|
|
|
|
videoForm: {
|
|
|
|
videoForm: {
|
|
|
|
stream: "0",
|
|
|
|
stream: 0,
|
|
|
|
time: "20",
|
|
|
|
time: "20",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
commondChannel: 1,
|
|
|
|
commondChannel: 1,
|
|
|
@ -891,44 +891,8 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
setTermFn(dataParams) {
|
|
|
|
|
|
|
|
console.log("点击了统一的接口", "runningstatus");
|
|
|
|
|
|
|
|
setTermCamera({
|
|
|
|
|
|
|
|
termId: this.zztermId,
|
|
|
|
|
|
|
|
list: dataParams,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
this.requestid = res.data.requestId;
|
|
|
|
|
|
|
|
//this.getinfo1();
|
|
|
|
|
|
|
|
clearInterval(this.statusTimer);
|
|
|
|
|
|
|
|
this.statusTimer = window.setInterval(() => {
|
|
|
|
|
|
|
|
this.getinfo();
|
|
|
|
|
|
|
|
this.statusNum++;
|
|
|
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
getinfo() {
|
|
|
|
|
|
|
|
getTermCameraRequest({ requestid: this.requestid })
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
if (res.data.success == 1) {
|
|
|
|
|
|
|
|
this.btnvideoloading = false;
|
|
|
|
|
|
|
|
this.statusNum = 0;
|
|
|
|
|
|
|
|
clearInterval(this.statusTimer);
|
|
|
|
|
|
|
|
this.statusTimer = null;
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
} else if (this.statusNum > 9) {
|
|
|
|
|
|
|
|
this.btnvideoloading = false;
|
|
|
|
|
|
|
|
this.statusNum = 0;
|
|
|
|
|
|
|
|
clearInterval(this.statusTimer);
|
|
|
|
|
|
|
|
this.statusTimer = null;
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
anVideoFn(command) {
|
|
|
|
anVideoFn(command) {
|
|
|
|
|
|
|
|
this.videoVisible = false;
|
|
|
|
getTermStatus({ termId: this.zztermId }).then((res) => {
|
|
|
|
getTermStatus({ termId: this.zztermId }).then((res) => {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
if (res.data.isonline) {
|
|
|
|
if (res.data.isonline) {
|
|
|
@ -971,13 +935,32 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
setTermFn(dataParams) {
|
|
|
|
|
|
|
|
console.log("点击了统一的接口", "runningstatus");
|
|
|
|
|
|
|
|
setTermCamera({
|
|
|
|
|
|
|
|
termId: this.zztermId,
|
|
|
|
|
|
|
|
list: dataParams,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
this.requestId = res.data.requestId;
|
|
|
|
|
|
|
|
this.picTime = res.data.date;
|
|
|
|
|
|
|
|
this.getTakePicStatus(res.data);
|
|
|
|
|
|
|
|
clearInterval(this.statusTimer);
|
|
|
|
|
|
|
|
this.statusTimer = window.setInterval(() => {
|
|
|
|
|
|
|
|
this.getTakePicStatus(res.data);
|
|
|
|
|
|
|
|
this.statusNum++;
|
|
|
|
|
|
|
|
}, 3000);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
|
|
|
},
|
|
|
|
//获取装置是否下发状态
|
|
|
|
//获取装置是否下发状态
|
|
|
|
getTakePicStatus(data) {
|
|
|
|
getTakePicStatus(data) {
|
|
|
|
console.log(data);
|
|
|
|
console.log(data);
|
|
|
|
getTakePicStatusJoggle({
|
|
|
|
getTakePicStatusJoggle({
|
|
|
|
requestid: data.requestId,
|
|
|
|
requestid: data.requestId,
|
|
|
|
termId: this.zztermId,
|
|
|
|
termId: this.zztermId,
|
|
|
|
photoTime: new Date(data.taketime).getTime(),
|
|
|
|
photoTime: new Date(this.picTime).getTime(),
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|