forked from github/dataease
feat(frontend):仪表板分享报错fix
This commit is contained in:
parent
8e6d5436bc
commit
5cfc7b0cac
@ -277,7 +277,9 @@ export default {
|
||||
select_module: 'Select Module',
|
||||
default_module: 'Default Module'
|
||||
},
|
||||
datasource: 'Datasource'
|
||||
datasource: 'Datasource',
|
||||
char_can_not_more_50: 'Name can not more 50 char',
|
||||
share_success: 'Share Success'
|
||||
},
|
||||
documentation: {
|
||||
documentation: 'Documentation',
|
||||
|
@ -276,7 +276,9 @@ export default {
|
||||
select_module: '選擇模块',
|
||||
default_module: '默认模块'
|
||||
},
|
||||
datasource: '數據源'
|
||||
datasource: '數據源',
|
||||
char_can_not_more_50: '名稱不能超過50字符',
|
||||
share_success: '分享成功'
|
||||
},
|
||||
documentation: {
|
||||
documentation: '文檔',
|
||||
|
@ -278,7 +278,8 @@ export default {
|
||||
default_module: '默认模块'
|
||||
},
|
||||
datasource: '数据连接',
|
||||
char_can_not_more_50: '名称不能超过50字符'
|
||||
char_can_not_more_50: '名称不能超过50字符',
|
||||
share_success: '分享成功'
|
||||
},
|
||||
documentation: {
|
||||
documentation: '文档',
|
||||
|
@ -158,11 +158,11 @@ export default {
|
||||
return roots
|
||||
},
|
||||
|
||||
save() {
|
||||
save(msg) {
|
||||
const rows = this.$refs.table.store.states.selection
|
||||
const request = this.buildRequest(rows)
|
||||
saveShare(request).then(res => {
|
||||
this.$success(this.$t('commons.save_success'))
|
||||
this.$success(msg)
|
||||
return true
|
||||
}).catch(err => {
|
||||
this.$error(err.message)
|
||||
|
@ -58,7 +58,7 @@ export default {
|
||||
this.showSearchInput = false
|
||||
},
|
||||
save() {
|
||||
this.$refs[this.activeName].save()
|
||||
this.$refs[this.activeName].save(this.$t('commons.share_success'))
|
||||
this.$emit('close-grant', 0)
|
||||
},
|
||||
cancel() {
|
||||
|
@ -78,11 +78,11 @@ export default {
|
||||
this.setCheckNodes()
|
||||
})
|
||||
},
|
||||
save() {
|
||||
save(msg) {
|
||||
const rows = this.$refs.table.store.states.selection
|
||||
const request = this.buildRequest(rows)
|
||||
saveShare(request).then(res => {
|
||||
this.$success(this.$t('commons.save_success'))
|
||||
this.$success(msg)
|
||||
return true
|
||||
}).catch(err => {
|
||||
this.$error(err.message)
|
||||
|
@ -86,11 +86,11 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
save() {
|
||||
save(msg) {
|
||||
const rows = this.$refs.table.store.states.selection
|
||||
const request = this.buildRequest(rows)
|
||||
saveShare(request).then(res => {
|
||||
this.$success(this.$t('commons.save_success'))
|
||||
saveShare(request).then(response => {
|
||||
this.$success(msg)
|
||||
return true
|
||||
}).catch(err => {
|
||||
this.$error(err.message)
|
||||
|
Loading…
Reference in New Issue
Block a user