forked from github/dataease
Merge pull request #2765 from dataease/pr@dev@fix_map_setting
fix(系统管理-地图设置): 上传地图文件没有反应
This commit is contained in:
commit
1c5fb68461
@ -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'))
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user