mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 04:40:37 +00:00
no message
This commit is contained in:
parent
67e2ec4093
commit
f7061d1a8d
@ -136,7 +136,7 @@ class WebSocketDialog extends AbstractModel
|
||||
$this->has_file = $msgBuilder->clone()->whereMtype('file')->exists();
|
||||
$this->has_link = $msgBuilder->clone()->whereLink(1)->exists();
|
||||
}
|
||||
$this->name_py = Base::cn2pinyin($this->name);
|
||||
$this->pinyin = Base::cn2pinyin($this->name);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
@ -631,7 +631,7 @@ export default {
|
||||
return b.id - a.id;
|
||||
});
|
||||
if (projectKeyValue) {
|
||||
return data.filter(item => $A.strExists(`${item.name}||${item.desc}`, projectKeyValue));
|
||||
return data.filter(item => $A.strExists(`${item.name} ${item.desc}`, projectKeyValue));
|
||||
}
|
||||
return data;
|
||||
},
|
||||
|
||||
@ -100,7 +100,7 @@ export default {
|
||||
return b.id - a.id;
|
||||
});
|
||||
if (projectKeyValue) {
|
||||
return data.filter(item => $A.strExists(`${item.name}||${item.desc}`, projectKeyValue));
|
||||
return data.filter(item => $A.strExists(`${item.name} ${item.desc}`, projectKeyValue));
|
||||
}
|
||||
/*return data.map(item => {
|
||||
if (!$A.isArray(item.user_simple)) {
|
||||
|
||||
@ -602,7 +602,7 @@ export default {
|
||||
list = list.filter(({flow_item_id}) => flow_item_id === flowInfo.value);
|
||||
}
|
||||
if (searchText) {
|
||||
list = list.filter(({name, desc}) => $A.strExists(`${name}||${desc}`, searchText));
|
||||
list = list.filter(({name, desc}) => $A.strExists(`${name} ${desc}`, searchText));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
@ -1267,7 +1267,7 @@ export default {
|
||||
return true;
|
||||
}
|
||||
if (searchText) {
|
||||
if (!$A.strExists(`${name}||${desc}`, searchText)) {
|
||||
if (!$A.strExists(`${name} ${desc}`, searchText)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -227,8 +227,8 @@ export default {
|
||||
return false;
|
||||
}
|
||||
if (dialogKey) {
|
||||
const {name, name_py, last_msg} = dialog;
|
||||
let searchString = `${name} ${name_py}`
|
||||
const {name, pinyin, last_msg} = dialog;
|
||||
let searchString = `${name} ${pinyin}`
|
||||
if (last_msg) {
|
||||
switch (last_msg.type) {
|
||||
case 'text':
|
||||
@ -292,7 +292,7 @@ export default {
|
||||
return [];
|
||||
}
|
||||
if (contactsKey) {
|
||||
return contactsData.filter(item => $A.strExists(`${item.email}||${item.nickname}||${item.profession}||${item.pinyin}`, contactsKey))
|
||||
return contactsData.filter(item => $A.strExists(`${item.email} ${item.nickname} ${item.profession} ${item.pinyin}`, contactsKey))
|
||||
}
|
||||
return contactsData;
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user