安徽视频

ds1.0
fanluyan 2 years ago
parent 8d73a1c348
commit 9e8d65d9fe

@ -1079,8 +1079,6 @@ export default {
console.log(timearr);
}
}
////
if (
this.deviceListData.zzprotocol == "65286" ||
@ -1114,6 +1112,10 @@ export default {
this.$moment(new Date(lastETime)).format("YYYY-MM-DD HH:mm")
);
}
// return dayArr;
}
}
console.log(dayArr);
for (var k = 0; k < dayArr.length; k++) {
//console.log(moment(dayArr[k]).hour());
@ -1123,9 +1125,6 @@ export default {
preset: 255,
});
}
// return dayArr;
}
var parmsobj = {
termid: this.deviceListData.zzid,
channelid: this.checkList,

@ -421,7 +421,7 @@ export default {
zzradio: -1,
videoVisible: false,
videoForm: {
stream: "0",
stream: 0,
time: "20",
},
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) {
this.videoVisible = false;
getTermStatus({ termId: this.zztermId }).then((res) => {
console.log(res);
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) {
console.log(data);
getTakePicStatusJoggle({
requestid: data.requestId,
termId: this.zztermId,
photoTime: new Date(data.taketime).getTime(),
photoTime: new Date(this.picTime).getTime(),
})
.then((res) => {
console.log(res);

Loading…
Cancel
Save