diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue b/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue index 043d1ab..8f01147 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue @@ -9,7 +9,12 @@
通道:
- + 确认 --> - 确认 @@ -169,6 +177,7 @@ export default { loading: false, isShow: false, searchloading: false, + setloading: false, activeName: "1", //选项卡 accesslist: [], //通道选择器 ratiolist: [], @@ -339,6 +348,7 @@ export default { //命令调用videoSearch // --act=videoparams [0xD5] --flag=[Request Set Flag, default is set=1, 0: request] --channel=[Channel No] --preset=[Preset No] format=[Video Format: 1 QVGA 2 VGA 3 480p 4 720P 5 1080P] time=[seconds] videoSearch() { + this.searchloading = true; let params = [ { name: "act", @@ -369,6 +379,7 @@ export default { }, videoSet(setForm) { console.log(this.setForm); + this.setloading = true; let params = [ { name: "act", @@ -428,6 +439,8 @@ export default { this.i = 0; console.log("终止轮询"); // && res.data.result == 255 + this.searchloading = false; + this.setloading = false; console.log(JSON.parse(res.data.data)); this.capturenr = JSON.parse(res.data.data); this.$message({ @@ -440,6 +453,8 @@ export default { window.clearInterval(this.timer); this.timer = null; this.i = 0; + this.searchloading = false; + this.setloading = false; this.$message({ duration: 1500, showClose: true, @@ -450,9 +465,18 @@ export default { }) .catch(); }, + clearform() { + console.log("清除其他数据"); + this.capturenr = {}; + this.setForm = {}; + this.searchloading = false; + this.setloading = false; + }, clearData() { this.capturenr = {}; this.setForm = {}; + this.searchloading = false; + this.setloading = false; }, }, }; diff --git a/src/views/realTimeSearch/index.vue b/src/views/realTimeSearch/index.vue index 70b1fe8..fcc8f39 100644 --- a/src/views/realTimeSearch/index.vue +++ b/src/views/realTimeSearch/index.vue @@ -105,7 +105,7 @@