更改下发指令逻辑

hn2.0
fanluyan 2 years ago
parent 1c0bec39d8
commit b56114300f

@ -641,7 +641,7 @@ export default {
this.statusTimer = window.setInterval(() => {
this.getTakePicStatus(res.data);
this.statusNum++;
}, 2000);
}, 3000);
})
.catch((err) => {
console.log(err); //
@ -706,7 +706,11 @@ export default {
.then((res) => {
console.log(res);
//res.data 0 1 2
if (res.data.cmaStatus == 0 && this.statusNum >= 5) {
if (
res.data.cmaStatus == 0 &&
res.data.picStatus == false &&
this.statusNum >= 5
) {
this.statusNum = 0;
clearInterval(this.statusTimer);
this.statusTimer = null;
@ -718,7 +722,7 @@ export default {
message: "下发指令超时,请重试!",
type: "warning",
});
} else if (res.data.cmaStatus == 1) {
} else if (res.data.cmaStatus == 1 || res.data.picStatus == true) {
this.statusNum = 0;
this.btnpicloading = false;
this.btnvideoloading = false;

Loading…
Cancel
Save