修复自定义经纬度被更新经纬度覆盖的问题

This commit is contained in:
lin
2025-11-03 22:26:18 +08:00
parent 8f6a9a4729
commit f8235d5b3f
2 changed files with 7 additions and 18 deletions

View File

@@ -248,8 +248,6 @@ public interface DeviceChannelMapper {
", status=#{item.status}" + ", status=#{item.status}" +
", longitude=#{item.longitude}" + ", longitude=#{item.longitude}" +
", latitude=#{item.latitude}" + ", latitude=#{item.latitude}" +
", gb_longitude=#{item.gbLongitude}" +
", gb_latitude=#{item.gbLatitude}" +
", ptz_type=#{item.ptzType}" + ", ptz_type=#{item.ptzType}" +
", position_type=#{item.positionType}" + ", position_type=#{item.positionType}" +
", room_type=#{item.roomType}" + ", room_type=#{item.roomType}" +
@@ -277,8 +275,6 @@ public interface DeviceChannelMapper {
" SET " + " SET " +
" latitude=#{latitude}, " + " latitude=#{latitude}, " +
" longitude=#{longitude}, " + " longitude=#{longitude}, " +
" gb_longitude=#{gbLongitude}, " +
" gb_latitude=#{gbLatitude}, " +
" gps_time=#{gpsTime} " + " gps_time=#{gpsTime} " +
" WHERE id=#{id} " + " WHERE id=#{id} " +
" </script>"}) " </script>"})

View File

@@ -364,25 +364,18 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.loading = true this.loading = true
this.$axios({ this.$store.dispatch('commonChanel/reset', this.form.gbId)
method: 'post', .then((data) => {
url: '/api/common/channel/reset',
params: {
id: this.form.gbId
}
}).then((res) => {
if (res.data.code === 0) {
this.$message.success({ this.$message.success({
showClose: true, showClose: true,
message: '重置成功 已保存' message: '重置成功 已保存'
}) })
this.getCommonChannel(this.form.gbId) this.getCommonChannel(this.form.gbId)
} }).catch((error) => {
}).catch((error) => { console.error(error)
console.error(error) }).finally(() => {
}).finally(() => { this.loading = false
this.loading = false })
})
}).catch(() => { }).catch(() => {
}) })