提交 f952c1f0 authored 作者: junjie's avatar junjie

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

上级 78712f56
...@@ -233,7 +233,7 @@ export default { ...@@ -233,7 +233,7 @@ export default {
cancel() { cancel() {
// this.dataReset() // this.dataReset()
if (this.param.tableId) { if (this.param.tableId) {
this.$emit('switchComponent', { name: 'ViewTable', param: { id: this.param.tableId }}) this.$emit('switchComponent', { name: 'ViewTable', param: this.param.table })
} else { } else {
this.$emit('switchComponent', { name: '' }) this.$emit('switchComponent', { name: '' })
} }
......
...@@ -283,7 +283,7 @@ export default { ...@@ -283,7 +283,7 @@ export default {
cancel() { cancel() {
// this.dataReset() // this.dataReset()
if (this.param.tableId) { if (this.param.tableId) {
this.$emit('switchComponent', { name: 'ViewTable', param: { id: this.param.tableId }}) this.$emit('switchComponent', { name: 'ViewTable', param: this.param.table})
} else { } else {
this.$emit('switchComponent', { name: '' }) this.$emit('switchComponent', { name: '' })
} }
......
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
if (id !== null) { if (id !== null) {
this.fields = [] this.fields = []
this.data = [] this.data = []
getTable(id, true).then(response => { post('/dataset/table/getWithPermission/' + id, null).then(response => {
this.table = response.data this.table = response.data
this.initPreviewData(this.page) this.initPreviewData(this.page)
}).catch(res => { }).catch(res => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论