添加测试案卷的搜索条件
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)' };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+13
-11
@@ -72,12 +72,12 @@ const portConfigs: Record<string, Partial<ApiConfig>> = {
|
||||
// 主要
|
||||
// 梅州
|
||||
'51703': {
|
||||
baseUrl: 'http://172.16.0.55:8073',
|
||||
documentUrl: 'http://172.16.0.55:8073/docauditai/',
|
||||
uploadUrl: 'http://172.16.0.55:8073/admin/documents'
|
||||
// baseUrl: 'http://nas.7bm.co:8873',
|
||||
// documentUrl: 'http://nas.7bm.co:8873/docauditai/',
|
||||
// uploadUrl: 'http://nas.7bm.co:8873/admin/documents'
|
||||
// baseUrl: 'http://172.16.0.55:8073',
|
||||
// documentUrl: 'http://172.16.0.55:8073/docauditai/',
|
||||
// uploadUrl: 'http://172.16.0.55:8073/admin/documents'
|
||||
baseUrl: 'http://nas.7bm.co:8073',
|
||||
documentUrl: 'http://nas.7bm.co:8073/docauditai/',
|
||||
uploadUrl: 'http://nas.7bm.co:8073/admin/documents'
|
||||
},
|
||||
|
||||
|
||||
@@ -136,11 +136,14 @@ const configs: Record<string, ApiConfig> = {
|
||||
|
||||
// 测试环境
|
||||
testing: {
|
||||
baseUrl: 'http://nas.7bm.co:8873',
|
||||
documentUrl: 'http://nas.7bm.co:8873/docauditai/',
|
||||
uploadUrl: 'http://nas.7bm.co:8873/admin/documents',
|
||||
// baseUrl: 'http://172.16.0.55:8873',
|
||||
// documentUrl: 'http://172.16.0.55:8873/docauditai/',
|
||||
// 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: {
|
||||
serverUrl: 'http://10.79.112.85', // IDaaS服务器地址
|
||||
serverUrl: 'http://10.79.112.85', // IDaaS服务器地址
|
||||
clientId: '54d2a619fe5c81ae1250434c441fccccqMtKwh7H4fO',
|
||||
clientSecret: 'placeholder', // 需要替换为实际的Client Secret
|
||||
redirectUri: 'http://10.79.97.17/', // 回调地址
|
||||
@@ -159,7 +162,6 @@ const configs: Record<string, ApiConfig> = {
|
||||
oauth: {
|
||||
serverUrl: 'http://10.79.112.85', // IDaaS服务器地址
|
||||
clientId: '54d2a619fe5c81ae1250434c441fccccqMtKwh7H4fO',
|
||||
// clientSecret: 'VYk1AC5XIJEfnEXwyq0u9JEY3fi3byCfSD58zANGeb', // 需要替换为实际的Client Secret
|
||||
// ⚠️ 安全警告:clientSecret 不应该硬编码在代码中
|
||||
// 请在生产环境使用环境变量 OAUTH_CLIENT_SECRET
|
||||
clientSecret: 'placeholder', // 占位符,实际值从环境变量获取
|
||||
|
||||
@@ -206,7 +206,7 @@ export default function RulesFiles() {
|
||||
setDocumentTypes(filteredTypes);
|
||||
} else if (storedReviewType === 'record') {
|
||||
// 只保留 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user