forked from github/dataease
fix: 用户管理插件用户bug修复
This commit is contained in:
parent
07e93339cb
commit
d0ae80c5db
@ -14,7 +14,7 @@ export default {
|
|||||||
const { children = [] } = context;
|
const { children = [] } = context;
|
||||||
if (!columns?.length) return children;
|
if (!columns?.length) return children;
|
||||||
children.forEach(ele => {
|
children.forEach(ele => {
|
||||||
if (columns.includes(ele.componentOptions.propsData.prop)) {
|
if (columns.includes(ele.componentOptions?.propsData?.prop)) {
|
||||||
nodes.push(ele)
|
nodes.push(ele)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -378,8 +378,9 @@ export default {
|
|||||||
pluginLoaded()
|
pluginLoaded()
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.isPluginLoaded = res.success && res.data;
|
this.isPluginLoaded = res.success && res.data;
|
||||||
if (this.isPluginLoaded) {
|
if (!this.isPluginLoaded) {
|
||||||
// this.searchConfig.components.push(...this.extraFilterComponents);
|
this.checkedColumnNames = this.checkedColumnNames.filter(ele => !['dept', 'roles'].includes(ele))
|
||||||
|
this.columnNames = this.columnNames.filter(ele => !['dept', 'roles'].includes(ele.props))
|
||||||
}
|
}
|
||||||
this.canLoadDom = true;
|
this.canLoadDom = true;
|
||||||
})
|
})
|
||||||
@ -448,6 +449,9 @@ export default {
|
|||||||
this.checkedColumnNames = val
|
this.checkedColumnNames = val
|
||||||
? columnOptions.map((ele) => ele.props)
|
? columnOptions.map((ele) => ele.props)
|
||||||
: [];
|
: [];
|
||||||
|
if (!this.isPluginLoaded) {
|
||||||
|
this.checkedColumnNames = this.checkedColumnNames.filter(ele => !['dept', 'roles'].includes(ele))
|
||||||
|
}
|
||||||
this.isIndeterminate = false;
|
this.isIndeterminate = false;
|
||||||
},
|
},
|
||||||
handleCheckedColumnNamesChange(value) {
|
handleCheckedColumnNamesChange(value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user