diff --git a/src/utils/api/index.js b/src/utils/api/index.js index db5f420..99f136a 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -407,7 +407,16 @@ export function setVideoParamApi(data) { //查询图像分辨率 getImageParams +//获取GPS位置触发 +export function getTermGPSPosition(data) { + return request({ + url: "/api/getTermGPSPosition", + method: "post", + data, + }); +} // 获取GPS位置 + export function getTermGPSJoggle(data) { return request({ url: "/api/getTermGPS", diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/gpsPosition.vue b/src/views/management/monitoringEquipment/photographicDevice/components/gpsPosition.vue new file mode 100644 index 0000000..ee1c843 --- /dev/null +++ b/src/views/management/monitoringEquipment/photographicDevice/components/gpsPosition.vue @@ -0,0 +1,122 @@ + + + diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue b/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue index 06b886e..a529c97 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/components/videoCapture.vue @@ -147,7 +147,7 @@ export default { preset: [{ required: true, message: "请输入预置位", trigger: "blur" }], videoFormat: [ { required: true, message: "请选择视频分辨率", trigger: "blur" }, - ] + ], }, timer: null, i: 0, @@ -211,7 +211,7 @@ export default { getVideoParamnrApi({ // channelId: this.selaccess, // termId: this.seltermid, - requestId: this.requestId + requestId: this.requestId, }) .then((res) => { this.loading = false; @@ -220,13 +220,23 @@ export default { if (res.data.isNew == true) { this.searchloading = false; this.i = 0; - this.$message.success("查询已更新"); + + this.$message({ + showClose: true, + message: "查询已更新", + type: "success", + }); clearInterval(this.timer); this.timer = null; } else if (this.i > 9) { this.searchloading = false; this.i = 0; - this.$message.warning("暂无响应,请稍后再试!"); + + this.$message({ + showClose: true, + message: "暂无响应,请稍后再试!", + type: "warning", + }); clearInterval(this.timer); this.timer = null; diff --git a/src/views/management/monitoringEquipment/photographicDevice/index.vue b/src/views/management/monitoringEquipment/photographicDevice/index.vue index 6873ee7..b553084 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/index.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/index.vue @@ -165,7 +165,7 @@ > --> - +