From f8235d5b3fa5a2e0699a05442e757563a9ba4bd6 Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Mon, 3 Nov 2025 22:26:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=BB=8F=E7=BA=AC=E5=BA=A6=E8=A2=AB=E6=9B=B4=E6=96=B0=E7=BB=8F?= =?UTF-8?q?=E7=BA=AC=E5=BA=A6=E8=A6=86=E7=9B=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vmp/gb28181/dao/DeviceChannelMapper.java | 4 ---- web/src/views/common/CommonChannelEdit.vue | 21 +++++++------------ 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceChannelMapper.java index 6c3d23eb2..8c907df40 100755 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceChannelMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/dao/DeviceChannelMapper.java @@ -248,8 +248,6 @@ public interface DeviceChannelMapper { ", status=#{item.status}" + ", longitude=#{item.longitude}" + ", latitude=#{item.latitude}" + - ", gb_longitude=#{item.gbLongitude}" + - ", gb_latitude=#{item.gbLatitude}" + ", ptz_type=#{item.ptzType}" + ", position_type=#{item.positionType}" + ", room_type=#{item.roomType}" + @@ -277,8 +275,6 @@ public interface DeviceChannelMapper { " SET " + " latitude=#{latitude}, " + " longitude=#{longitude}, " + - " gb_longitude=#{gbLongitude}, " + - " gb_latitude=#{gbLatitude}, " + " gps_time=#{gpsTime} " + " WHERE id=#{id} " + " "}) diff --git a/web/src/views/common/CommonChannelEdit.vue b/web/src/views/common/CommonChannelEdit.vue index 80b19beeb..1933c49bb 100644 --- a/web/src/views/common/CommonChannelEdit.vue +++ b/web/src/views/common/CommonChannelEdit.vue @@ -364,25 +364,18 @@ export default { type: 'warning' }).then(() => { this.loading = true - this.$axios({ - method: 'post', - url: '/api/common/channel/reset', - params: { - id: this.form.gbId - } - }).then((res) => { - if (res.data.code === 0) { + this.$store.dispatch('commonChanel/reset', this.form.gbId) + .then((data) => { this.$message.success({ showClose: true, message: '重置成功 已保存' }) this.getCommonChannel(this.form.gbId) - } - }).catch((error) => { - console.error(error) - }).finally(() => { - this.loading = false - }) + }).catch((error) => { + console.error(error) + }).finally(() => { + this.loading = false + }) }).catch(() => { })