添加测试案卷的搜索条件
This commit is contained in:
@@ -262,7 +262,7 @@ export async function getDocumentTypes(searchParams: DocumentTypeSearchParams =
|
||||
filter['id'] = 'eq.1';
|
||||
} else if (searchParams.reviewType === 'record') {
|
||||
// 如果是卷宗类型,只显示id=2或id=3的文档类型
|
||||
filter['id'] = 'in.(2,3)';
|
||||
filter['id'] = 'in.(2,3,155)';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@ export async function getReviewFiles(searchParams: DocumentSearchParams = {}, do
|
||||
let p_typeid: number[] | null = null;
|
||||
if (fileType) {
|
||||
if (fileType === 'record') {
|
||||
p_typeid = [2, 3];
|
||||
p_typeid = [2, 3, 155];
|
||||
} else if (fileType === 'contract') {
|
||||
p_typeid = [1];
|
||||
} else {
|
||||
|
||||
@@ -231,7 +231,7 @@ export async function getDocuments(searchParams: DocumentSearchParams = {}): Pro
|
||||
if (reviewType === 'contract') {
|
||||
documentTypes = [1];
|
||||
} else if (reviewType === 'record') {
|
||||
documentTypes = [2, 3];
|
||||
documentTypes = [2, 3, 155];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -594,9 +594,9 @@ export async function getTodayDocuments(userInfo?: { user_id?: number; [key: str
|
||||
if (reviewType === 'record') {
|
||||
// 如果是卷宗类型,只显示type_id=2或type_id=3的文档
|
||||
if (params.filter) {
|
||||
params.filter['type_id'] = 'in.(2,3)';
|
||||
params.filter['type_id'] = 'in.(2,3,155)';
|
||||
} else {
|
||||
params.filter = { 'type_id': 'in.(2,3)' };
|
||||
params.filter = { 'type_id': 'in.(2,3,155)' };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -651,9 +651,9 @@ export async function getDocumentTypes(reviewType?: string, token?: string): Pro
|
||||
} else if (reviewType === 'record') {
|
||||
// 如果是卷宗类型,只显示id=2或id=3的文档类型
|
||||
if (params.filter) {
|
||||
params.filter['id'] = 'in.(2,3)';
|
||||
params.filter['id'] = 'in.(2,3,155)';
|
||||
} else {
|
||||
params.filter = { 'id': 'in.(2,3)' };
|
||||
params.filter = { 'id': 'in.(2,3,155)' };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user