fix: 修复dcbox地图坐标报错及编辑信息错误时点击box外未弹出提示框,修复导入信息错误时,导入成功提示

This commit is contained in:
@changcode
2021-12-20 16:57:12 +08:00
parent 5bf2ad939c
commit 55ae4b93ea
3 changed files with 17 additions and 10 deletions

View File

@@ -116,8 +116,13 @@ export default {
},
setLatlng () {
const lnglat = this.lnglat.split(',')
this.mapParam.longitude = lnglat[0]
this.mapParam.latitude = lnglat[1]
if (lnglat[0] !== 'undefined' && lnglat[1] !== 'undefined') {
this.mapParam.longitude = lnglat[0]
this.mapParam.latitude = lnglat[1]
} else {
this.mapParam.longitude = '-33.9257813'
this.mapParam.latitude = '55.5761251'
}
this.$emit('lnglatChange', this.lnglat, this.zoom)
},
getAttribute () {

View File

@@ -268,13 +268,15 @@ export default {
},
closeDialog () {
this.importBox.show = false
this.$nextTick(() => {
this.importResult = null
this.importFileList = []
this.importFile = null
this.importBox.value = 1
this.importBox.record = 'all'
})
setTimeout(() => {
this.$nextTick(() => {
this.importResult = null
this.importFileList = []
this.importFile = null
this.importBox.value = 1
this.importBox.record = 'all'
})
}, 200)
},
downloadTemplate () {
const language = localStorage.getItem('nz-language') || 'en' // 初始未选择默认 en 英文

View File

@@ -1,5 +1,5 @@
<template>
<div v-clickoutside="{obj:editDc, func:clickOutside}" class="right-box right-box-dc">
<div v-clickoutside="{obj:editDc, func: esc}" class="right-box right-box-dc">
<!-- begin--标题-->
<div class="right-box__header">
<div class="header__title">{{editDc.id ? ($t("config.dc.editDc")) : $t("config.dc.createDc")}}</div>