修复自定义经纬度被更新经纬度覆盖的问题
This commit is contained in:
@@ -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} " +
|
||||
" </script>"})
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user