|
@@ -113,7 +113,7 @@ export default {
|
|
|
listOrganizations()
|
|
listOrganizations()
|
|
|
.then((list) => {
|
|
.then((list) => {
|
|
|
let _list = list.filter((i) => i.name != '超级管理员')
|
|
let _list = list.filter((i) => i.name != '超级管理员')
|
|
|
- let _institutionList = _list.filter((i) => [10, 20].includes(i.type));
|
|
|
|
|
|
|
+ // let _institutionList = _list.filter((i) => [10, 20].includes(i.type));
|
|
|
console.log(this.institutionList);
|
|
console.log(this.institutionList);
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
this.data = this.$util.toTreeData({
|
|
this.data = this.$util.toTreeData({
|
|
@@ -122,7 +122,7 @@ export default {
|
|
|
parentIdField: 'parentId'
|
|
parentIdField: 'parentId'
|
|
|
});
|
|
});
|
|
|
this.institutionList = this.$util.toTreeData({
|
|
this.institutionList = this.$util.toTreeData({
|
|
|
- data: _institutionList,
|
|
|
|
|
|
|
+ data: _list,
|
|
|
idField: 'id',
|
|
idField: 'id',
|
|
|
parentIdField: 'parentId'
|
|
parentIdField: 'parentId'
|
|
|
});
|
|
});
|