|
|
@ -641,7 +641,7 @@ export default {
|
|
|
|
this.statusTimer = window.setInterval(() => {
|
|
|
|
this.statusTimer = window.setInterval(() => {
|
|
|
|
this.getTakePicStatus(res.data);
|
|
|
|
this.getTakePicStatus(res.data);
|
|
|
|
this.statusNum++;
|
|
|
|
this.statusNum++;
|
|
|
|
}, 2000);
|
|
|
|
}, 3000);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
|
console.log(err); //代码错误、请求失败捕获
|
|
|
|
console.log(err); //代码错误、请求失败捕获
|
|
|
@ -706,7 +706,11 @@ export default {
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
//res.data 0 状态未知 1 成功 2失败
|
|
|
|
//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;
|
|
|
|
this.statusNum = 0;
|
|
|
|
clearInterval(this.statusTimer);
|
|
|
|
clearInterval(this.statusTimer);
|
|
|
|
this.statusTimer = null;
|
|
|
|
this.statusTimer = null;
|
|
|
@ -718,7 +722,7 @@ export default {
|
|
|
|
message: "下发指令超时,请重试!",
|
|
|
|
message: "下发指令超时,请重试!",
|
|
|
|
type: "warning",
|
|
|
|
type: "warning",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else if (res.data.cmaStatus == 1) {
|
|
|
|
} else if (res.data.cmaStatus == 1 || res.data.picStatus == true) {
|
|
|
|
this.statusNum = 0;
|
|
|
|
this.statusNum = 0;
|
|
|
|
this.btnpicloading = false;
|
|
|
|
this.btnpicloading = false;
|
|
|
|
this.btnvideoloading = false;
|
|
|
|
this.btnvideoloading = false;
|
|
|
|