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' type: 'warning'
}).then(() => { }).then(() => {
removeMap(param).then(res => { removeMap(param).then(res => {
this.$emit('refresh-tree') this.$store.dispatch('map/setGeo', {
this.$success(this.$t('commons.delete_success')) key: param.code,
value: null
}).then(() => {
this.$emit('refresh-tree')
this.$success(this.$t('commons.delete_success'))
})
}) })
}).catch(() => { }).catch(() => {
this.$info(this.$t('commons.delete_cancel')) this.$info(this.$t('commons.delete_cancel'))

View File

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