bri-components 1.3.15 → 1.3.16
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
|
@@ -282,6 +282,8 @@
|
|
|
282
282
|
return {
|
|
283
283
|
_icon: this.multipleMode ? "ios-people" : "ios-person",
|
|
284
284
|
_highSearch: false,
|
|
285
|
+
_reverseFilter: false, // 是否反向过滤,默认正向过滤
|
|
286
|
+
_userDepartFilterVals: [], // 过滤的数据
|
|
285
287
|
|
|
286
288
|
...this.propsObj,
|
|
287
289
|
...this.commonDealPropsObj
|
|
@@ -422,7 +424,7 @@
|
|
|
422
424
|
this.userList = data.list.filter(item =>
|
|
423
425
|
this.reverseFilter
|
|
424
426
|
? !this.userDepartFilterVals.includes(item.departmentKey)
|
|
425
|
-
: this.userDepartFilterVals.includes(item.departmentKey)
|
|
427
|
+
: !this.userDepartFilterVals.length || this.userDepartFilterVals.includes(item.departmentKey)
|
|
426
428
|
);
|
|
427
429
|
this.total = data.total;
|
|
428
430
|
}
|
|
@@ -501,7 +503,7 @@
|
|
|
501
503
|
...data.list.filter(item =>
|
|
502
504
|
this.reverseFilter
|
|
503
505
|
? !this.userDepartFilterVals.includes(item._key)
|
|
504
|
-
: this.userDepartFilterVals.includes(item._key)
|
|
506
|
+
: !this.userDepartFilterVals.length || this.userDepartFilterVals.includes(item._key)
|
|
505
507
|
)
|
|
506
508
|
];
|
|
507
509
|
}
|