feat(frontend):仪表板分享报错fix

This commit is contained in:
junjie 2021-05-27 10:50:27 +08:00
parent 8e6d5436bc
commit 5cfc7b0cac
7 changed files with 16 additions and 11 deletions

View File

@ -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',

View File

@ -276,7 +276,9 @@ export default {
select_module: '選擇模块',
default_module: '默认模块'
},
datasource: '數據源'
datasource: '數據源',
char_can_not_more_50: '名稱不能超過50字符',
share_success: '分享成功'
},
documentation: {
documentation: '文檔',

View File

@ -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: '文档',

View File

@ -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)

View File

@ -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() {

View File

@ -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)

View File

@ -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)