重定位修改

This commit is contained in:
2025-10-20 17:30:02 +08:00
parent 0e14e656be
commit 381b9ebcfe
9 changed files with 54 additions and 859 deletions

View File

@@ -209,9 +209,10 @@ export default {
cancelButtonText: this.$t('no'),
type: 'warning'
}).then(() => {
this._sendAutoBack()
this._sendAutoBack('0')
this.backActive = false
}).catch(() => {
this._sendAutoBack('1')
this.backActive = false
})
}
@@ -505,19 +506,21 @@ export default {
}
},
// 打点功能点击返回成功后
async _sendAutoBack () {
async _sendAutoBack (flag) {
try {
this.loading = this.$loading({
lock: true,
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.6)'
})
let res = await sendAutoBack()
let res = await sendAutoBack(flag)
if (res && res.code === 200) {
this.$nextTick(() => {
this.$refs.glMap.closeWebSocket()
})
this.tipShow = true
if (flag === '0') {
this.$nextTick(() => {
this.$refs.glMap.closeWebSocket()
})
this.tipShow = true
}
}
this.loading.close()
} catch (e) {