forked from github/dataease
Merge pull request #363 from dataease/pr@dev@fix_数据集切换页面权限问题
fix: 数据集切换界面权限问题
This commit is contained in:
commit
fb538a8da8
@ -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 {
|
|||||||
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 {
|
|||||||
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 => {
|
||||||
|
Loading…
Reference in New Issue
Block a user