forked from github/dataease
fix(过滤器): 非管理员删除过滤器字段报错无权限
This commit is contained in:
parent
e19e3ccc2f
commit
27b2af4813
@ -87,9 +87,13 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadFields() {
|
loadFields() {
|
||||||
fieldListWithPermission(this.firstTableId).then(res => {
|
if (this.firstTableId) {
|
||||||
this.tableFields = JSON.parse(JSON.stringify(res.data))
|
fieldListWithPermission(this.firstTableId).then(res => {
|
||||||
})
|
this.tableFields = JSON.parse(JSON.stringify(res.data))
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.tableFields = []
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onMove(e, originalEvent) {
|
onMove(e, originalEvent) {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user