Merge pull request #363 from dataease/pr@dev@fix_数据集切换页面权限问题

fix: 数据集切换界面权限问题
This commit is contained in:
XiaJunjie2020 2021-07-27 19:14:15 +08:00 committed by GitHub
commit fb538a8da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,7 @@ export default {
cancel() {
// this.dataReset()
if (this.param.tableId) {
this.$emit('switchComponent', { name: 'ViewTable', param: { id: this.param.tableId }})
this.$emit('switchComponent', { name: 'ViewTable', param: this.param.table })
} else {
this.$emit('switchComponent', { name: '' })
}

View File

@ -283,7 +283,7 @@ export default {
cancel() {
// this.dataReset()
if (this.param.tableId) {
this.$emit('switchComponent', { name: 'ViewTable', param: { id: this.param.tableId }})
this.$emit('switchComponent', { name: 'ViewTable', param: this.param.table})
} else {
this.$emit('switchComponent', { name: '' })
}

View File

@ -122,7 +122,7 @@ export default {
if (id !== null) {
this.fields = []
this.data = []
getTable(id, true).then(response => {
post('/dataset/table/getWithPermission/' + id, null).then(response => {
this.table = response.data
this.initPreviewData(this.page)
}).catch(res => {