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',
|
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',
|
||||||
|
@ -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: '文檔',
|
||||||
|
@ -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: '文档',
|
||||||
|
@ -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)
|
||||||
|
@ -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() {
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user