fix(系统设置): 添加成员时不能按照ID搜索
--bug=1018544 --user=李玉号 【系统设置】工作空间-成员-添加成员时不能按照ID搜索成员 https://www.tapd.cn/55049933/s/1269732
This commit is contained in:
parent
624e64a398
commit
f0f1b5790a
|
@ -176,7 +176,10 @@ export default {
|
|||
this.handleUserOption(queryString ? this.userListCopy.filter(this.createFilter(queryString)) : this.userListCopy);
|
||||
},
|
||||
createFilter(queryString) {
|
||||
return item => (item.name.toLowerCase().indexOf(queryString.toLowerCase()) !== -1);
|
||||
return item => {
|
||||
return (item.id.toLowerCase().indexOf(queryString.toLowerCase()) !== -1
|
||||
|| (item.name && item.name.toLowerCase().indexOf(queryString.toLowerCase()) !== -1));
|
||||
};
|
||||
},
|
||||
resetUserOption(val) {
|
||||
if (val) {
|
||||
|
|
Loading…
Reference in New Issue