fix: 数据集切换界面权限问题

This commit is contained in:
junjie 2021-07-27 19:13:22 +08:00
parent 78712f5678
commit f952c1f0f1
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 => {