添加loading

master
fanluyan 2 years ago
parent c088e7b2ef
commit 90cd760484

@ -581,7 +581,7 @@ export default {
console.log(res); console.log(res);
if (res.data.isonline) { if (res.data.isonline) {
this.btnpicloading = true; this.btnpicloading = true;
this.loadingpic = true;
getLatestPhotoJoggle({ getLatestPhotoJoggle({
captureType: 0, captureType: 0,
channel: command, channel: command,
@ -596,6 +596,7 @@ export default {
message: "手动拍照请求成功!", message: "手动拍照请求成功!",
type: "success", type: "success",
}); });
this.loadingpic = true;
console.log(res); console.log(res);
this.newPicData = res.data; this.newPicData = res.data;
console.log(this.newPicData); console.log(this.newPicData);
@ -629,7 +630,6 @@ export default {
console.log(res); console.log(res);
if (res.data.isonline) { if (res.data.isonline) {
this.btnvideoloading = true; this.btnvideoloading = true;
this.loadingpic = true;
getLatestPhotoJoggle({ getLatestPhotoJoggle({
captureType: 1, captureType: 1,
channel: command, channel: command,
@ -644,6 +644,7 @@ export default {
message: "手动拍视频请求成功!", message: "手动拍视频请求成功!",
type: "success", type: "success",
}); });
this.loadingpic = true;
console.log(res); console.log(res);
this.newPicData = res.data; this.newPicData = res.data;
console.log(this.newPicData); console.log(this.newPicData);
@ -813,6 +814,9 @@ export default {
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.el-loading-mask {
background-color: rgba(255, 255, 255, 0.6) !important;
}
} }
.totalPic { .totalPic {
width: 100%; width: 100%;

Loading…
Cancel
Save