|
@@ -384,16 +384,16 @@ export default {
|
|
|
|
|
|
let getList = res.data[0];
|
|
|
|
|
|
- if (this.allowOrgList.findIndex((i) => i.area) != -1) {
|
|
|
- let _index = this.allowOrgList.findIndex((i) => i.area);
|
|
|
- let _list = this.allowOrgList[_index].list;
|
|
|
- getList = getList.filter((i) => _list.includes(i.id));
|
|
|
- } else {
|
|
|
- let mergedList = this.allowOrgList.reduce((acc, curr) => {
|
|
|
- return [...acc, ...curr.list];
|
|
|
- }, []);
|
|
|
- getList = getList.filter((i) => !mergedList.includes(i.id));
|
|
|
- }
|
|
|
+ // if (this.allowOrgList.findIndex((i) => i.area) != -1) {
|
|
|
+ // let _index = this.allowOrgList.findIndex((i) => i.area);
|
|
|
+ // let _list = this.allowOrgList[_index].list;
|
|
|
+ // getList = getList.filter((i) => _list.includes(i.id));
|
|
|
+ // } else {
|
|
|
+ // let mergedList = this.allowOrgList.reduce((acc, curr) => {
|
|
|
+ // return [...acc, ...curr.list];
|
|
|
+ // }, []);
|
|
|
+ // getList = getList.filter((i) => !mergedList.includes(i.id));
|
|
|
+ // }
|
|
|
|
|
|
this.OrgOptions = getList;
|
|
|
if (this.OrgOptions.length == 1) {
|