添加测试案卷的搜索条件
This commit is contained in:
@@ -262,7 +262,7 @@ export async function getDocumentTypes(searchParams: DocumentTypeSearchParams =
|
|||||||
filter['id'] = 'eq.1';
|
filter['id'] = 'eq.1';
|
||||||
} else if (searchParams.reviewType === 'record') {
|
} else if (searchParams.reviewType === 'record') {
|
||||||
// 如果是卷宗类型,只显示id=2或id=3的文档类型
|
// 如果是卷宗类型,只显示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;
|
let p_typeid: number[] | null = null;
|
||||||
if (fileType) {
|
if (fileType) {
|
||||||
if (fileType === 'record') {
|
if (fileType === 'record') {
|
||||||
p_typeid = [2, 3];
|
p_typeid = [2, 3, 155];
|
||||||
} else if (fileType === 'contract') {
|
} else if (fileType === 'contract') {
|
||||||
p_typeid = [1];
|
p_typeid = [1];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ export async function getDocuments(searchParams: DocumentSearchParams = {}): Pro
|
|||||||
if (reviewType === 'contract') {
|
if (reviewType === 'contract') {
|
||||||
documentTypes = [1];
|
documentTypes = [1];
|
||||||
} else if (reviewType === 'record') {
|
} 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') {
|
if (reviewType === 'record') {
|
||||||
// 如果是卷宗类型,只显示type_id=2或type_id=3的文档
|
// 如果是卷宗类型,只显示type_id=2或type_id=3的文档
|
||||||
if (params.filter) {
|
if (params.filter) {
|
||||||
params.filter['type_id'] = 'in.(2,3)';
|
params.filter['type_id'] = 'in.(2,3,155)';
|
||||||
} else {
|
} 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') {
|
} else if (reviewType === 'record') {
|
||||||
// 如果是卷宗类型,只显示id=2或id=3的文档类型
|
// 如果是卷宗类型,只显示id=2或id=3的文档类型
|
||||||
if (params.filter) {
|
if (params.filter) {
|
||||||
params.filter['id'] = 'in.(2,3)';
|
params.filter['id'] = 'in.(2,3,155)';
|
||||||
} else {
|
} else {
|
||||||
params.filter = { 'id': 'in.(2,3)' };
|
params.filter = { 'id': 'in.(2,3,155)' };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+12
-10
@@ -72,12 +72,12 @@ const portConfigs: Record<string, Partial<ApiConfig>> = {
|
|||||||
// 主要
|
// 主要
|
||||||
// 梅州
|
// 梅州
|
||||||
'51703': {
|
'51703': {
|
||||||
baseUrl: 'http://172.16.0.55:8073',
|
// baseUrl: 'http://172.16.0.55:8073',
|
||||||
documentUrl: 'http://172.16.0.55:8073/docauditai/',
|
// documentUrl: 'http://172.16.0.55:8073/docauditai/',
|
||||||
uploadUrl: 'http://172.16.0.55:8073/admin/documents'
|
// uploadUrl: 'http://172.16.0.55:8073/admin/documents'
|
||||||
// baseUrl: 'http://nas.7bm.co:8873',
|
baseUrl: 'http://nas.7bm.co:8073',
|
||||||
// documentUrl: 'http://nas.7bm.co:8873/docauditai/',
|
documentUrl: 'http://nas.7bm.co:8073/docauditai/',
|
||||||
// uploadUrl: 'http://nas.7bm.co:8873/admin/documents'
|
uploadUrl: 'http://nas.7bm.co:8073/admin/documents'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@@ -136,9 +136,12 @@ const configs: Record<string, ApiConfig> = {
|
|||||||
|
|
||||||
// 测试环境
|
// 测试环境
|
||||||
testing: {
|
testing: {
|
||||||
baseUrl: 'http://nas.7bm.co:8873',
|
// baseUrl: 'http://172.16.0.55:8873',
|
||||||
documentUrl: 'http://nas.7bm.co:8873/docauditai/',
|
// documentUrl: 'http://172.16.0.55:8873/docauditai/',
|
||||||
uploadUrl: 'http://nas.7bm.co:8873/admin/documents',
|
// uploadUrl: 'http://172.16.0.55:8873/admin/documents',
|
||||||
|
baseUrl: 'http://nas.7bm.co:8073',
|
||||||
|
documentUrl: 'http://nas.7bm.co:8073/docauditai/',
|
||||||
|
uploadUrl: 'http://nas.7bm.co:8073/admin/documents',
|
||||||
oauth: {
|
oauth: {
|
||||||
serverUrl: 'http://10.79.112.85', // IDaaS服务器地址
|
serverUrl: 'http://10.79.112.85', // IDaaS服务器地址
|
||||||
clientId: '54d2a619fe5c81ae1250434c441fccccqMtKwh7H4fO',
|
clientId: '54d2a619fe5c81ae1250434c441fccccqMtKwh7H4fO',
|
||||||
@@ -159,7 +162,6 @@ const configs: Record<string, ApiConfig> = {
|
|||||||
oauth: {
|
oauth: {
|
||||||
serverUrl: 'http://10.79.112.85', // IDaaS服务器地址
|
serverUrl: 'http://10.79.112.85', // IDaaS服务器地址
|
||||||
clientId: '54d2a619fe5c81ae1250434c441fccccqMtKwh7H4fO',
|
clientId: '54d2a619fe5c81ae1250434c441fccccqMtKwh7H4fO',
|
||||||
// clientSecret: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb', // 需要替换为实际的Client Secret
|
|
||||||
// ⚠️ 安全警告:clientSecret 不应该硬编码在代码中
|
// ⚠️ 安全警告:clientSecret 不应该硬编码在代码中
|
||||||
// 请在生产环境使用环境变量 OAUTH_CLIENT_SECRET
|
// 请在生产环境使用环境变量 OAUTH_CLIENT_SECRET
|
||||||
clientSecret: 'placeholder', // 占位符,实际值从环境变量获取
|
clientSecret: 'placeholder', // 占位符,实际值从环境变量获取
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ export default function RulesFiles() {
|
|||||||
setDocumentTypes(filteredTypes);
|
setDocumentTypes(filteredTypes);
|
||||||
} else if (storedReviewType === 'record') {
|
} else if (storedReviewType === 'record') {
|
||||||
// 只保留 id=2 和 id=3 的选项
|
// 只保留 id=2 和 id=3 的选项
|
||||||
const filteredTypes = allDocumentTypes.filter((type: {id: number}) => type.id === 2 || type.id === 3);
|
const filteredTypes = allDocumentTypes.filter((type: {id: number}) => type.id === 2 || type.id === 3 || type.id === 155);
|
||||||
setDocumentTypes(filteredTypes);
|
setDocumentTypes(filteredTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user