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', select_module: 'Select Module',
default_module: 'Default 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: 'Documentation', documentation: 'Documentation',

View File

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

View File

@ -278,7 +278,8 @@ export default {
default_module: '默认模块' default_module: '默认模块'
}, },
datasource: '数据连接', datasource: '数据连接',
char_can_not_more_50: '名称不能超过50字符' char_can_not_more_50: '名称不能超过50字符',
share_success: '分享成功'
}, },
documentation: { documentation: {
documentation: '文档', documentation: '文档',

View File

@ -158,11 +158,11 @@ export default {
return roots return roots
}, },
save() { save(msg) {
const rows = this.$refs.table.store.states.selection const rows = this.$refs.table.store.states.selection
const request = this.buildRequest(rows) const request = this.buildRequest(rows)
saveShare(request).then(res => { saveShare(request).then(res => {
this.$success(this.$t('commons.save_success')) this.$success(msg)
return true return true
}).catch(err => { }).catch(err => {
this.$error(err.message) this.$error(err.message)

View File

@ -58,7 +58,7 @@ export default {
this.showSearchInput = false this.showSearchInput = false
}, },
save() { save() {
this.$refs[this.activeName].save() this.$refs[this.activeName].save(this.$t('commons.share_success'))
this.$emit('close-grant', 0) this.$emit('close-grant', 0)
}, },
cancel() { cancel() {

View File

@ -78,11 +78,11 @@ export default {
this.setCheckNodes() this.setCheckNodes()
}) })
}, },
save() { save(msg) {
const rows = this.$refs.table.store.states.selection const rows = this.$refs.table.store.states.selection
const request = this.buildRequest(rows) const request = this.buildRequest(rows)
saveShare(request).then(res => { saveShare(request).then(res => {
this.$success(this.$t('commons.save_success')) this.$success(msg)
return true return true
}).catch(err => { }).catch(err => {
this.$error(err.message) this.$error(err.message)

View File

@ -86,11 +86,11 @@ export default {
}) })
}, },
save() { save(msg) {
const rows = this.$refs.table.store.states.selection const rows = this.$refs.table.store.states.selection
const request = this.buildRequest(rows) const request = this.buildRequest(rows)
saveShare(request).then(res => { saveShare(request).then(response => {
this.$success(this.$t('commons.save_success')) this.$success(msg)
return true return true
}).catch(err => { }).catch(err => {
this.$error(err.message) this.$error(err.message)