feat: utask mtask 增加筛选条件

This commit is contained in:
caoqianming 2024-08-22 12:45:53 +08:00
parent 4960ee7fac
commit 26172b767f
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class UtaskFilter(filters.FilterSet):
"belong_dept__name": ["exact"],
"mgroup__belong_dept__name": ["exact"],
"mtask_utask__mgroup": ["exact"],
"mtask_utask__mgroup__name": ["exact"],
"mtask_utask__mgroup__belong_dept": ['exact'],
"mtask_utask__mgroup__belong_dept__name": ['exact']
}
@ -49,6 +50,7 @@ class MtaskFilter(filters.FilterSet):
"start_date": ["exact", "gte", "lte"],
"end_date": ["exact", "gte", "lte"],
"mgroup": ["exact"],
"mgroup__name": ["exact"],
"mgroup__cate": ["exact"],
"mgroup__process": ["exact"],
"mgroup__process__cate": ["exact"],