mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 03:03:41 +00:00
perf: 优化根据会员筛选任务
This commit is contained in:
parent
e8e873f0da
commit
660851e81c
@ -820,7 +820,12 @@ export default {
|
|||||||
const {project_user} = this.projectData;
|
const {project_user} = this.projectData;
|
||||||
const userItems = project_user.map((item, index) => {
|
const userItems = project_user.map((item, index) => {
|
||||||
const userInfo = cacheUserBasic.find(({userid}) => userid === item.userid) || {}
|
const userInfo = cacheUserBasic.find(({userid}) => userid === item.userid) || {}
|
||||||
const length = allTask.filter(({task_user}) => {
|
const length = allTask.filter(({task_user, complete_at}) => {
|
||||||
|
if (!this.projectData.cacheParameter.completedTask) {
|
||||||
|
if (complete_at) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return task_user.find(({userid, owner}) => userid === item.userid && owner);
|
return task_user.find(({userid, owner}) => userid === item.userid && owner);
|
||||||
}).length
|
}).length
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user