bri-components 1.4.33 → 1.4.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.4.33",
3
+ "version": "1.4.34",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -408,6 +408,7 @@
408
408
  return arr.reduce((totalList, item) => {
409
409
  return [
410
410
  ...totalList,
411
+ item,
411
412
  ...loop(item.children)
412
413
  ];
413
414
  }, []);
@@ -418,11 +419,7 @@
418
419
  userShowList () {
419
420
  // 有部门过滤就只显示对应的部门,无过滤就涌全部用户(包含无部门用户)
420
421
  let list = this.filterVals.length || this.cascaderVals.length
421
- ? this.userList.filter(item =>
422
- this.reverseFilter
423
- ? !this.allDepartShowKeys.includes(item.departmentKey)
424
- : this.allDepartShowKeys.includes(item.departmentKey)
425
- )
422
+ ? this.userList.filter(item => this.allDepartShowKeys.includes(item.departmentKey))
426
423
  : this.userList;
427
424
 
428
425
  list = this.curDepart._key === "_highSearch"