Merge pull request #2765 from dataease/pr@dev@fix_map_setting

fix(系统管理-地图设置): 上传地图文件没有反应
This commit is contained in:
fit2cloud-chenyw 2022-08-02 17:07:53 +08:00 committed by GitHub
commit 1c5fb68461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -149,8 +149,13 @@ export default {
type: 'warning'
}).then(() => {
removeMap(param).then(res => {
this.$emit('refresh-tree')
this.$success(this.$t('commons.delete_success'))
this.$store.dispatch('map/setGeo', {
key: param.code,
value: null
}).then(() => {
this.$emit('refresh-tree')
this.$success(this.$t('commons.delete_success'))
})
})
}).catch(() => {
this.$info(this.$t('commons.delete_cancel'))

View File

@ -131,7 +131,7 @@ export default {
},
data() {
return {
formInline: { pCode: '' },
formInline: { pCode: '', fileName: '' },
loading: false,
rules: {
pCode: [
@ -227,7 +227,7 @@ export default {
return true
},
uploadMapFile(file) {
this.formInline.fileName = file.file.name
this.$set(this.formInline, 'fileName', file.file.name)
this.formInline.file = file.file
},
removeFile() {