feat: 1. 完善起草合同页面的逻辑交互,对接minio的接口操作

This commit is contained in:
2025-12-05 20:17:37 +08:00
parent 3d1dbb3f97
commit 91b7518c99
21 changed files with 1249 additions and 1057 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ async function safeGetJWT(jwtToken?: string): Promise<string> {
*/
export async function findIsProposer(taskId: string | number, userId: number | undefined, frontendJWT?: string): Promise<boolean> {
// 通过postgrest的get请求去cross_examination_tasks表中进行查找assignee_id是否等于userId
const response = await postgrestGet(`cross_examination_tasks`, {
const response = await postgrestGet(`/api/postgrest/proxy/cross_examination_tasks`, {
select: 'assigner_id',
filter: {
id: `eq.${taskId}`
@@ -399,7 +399,7 @@ export async function confirmReviewResults(
): Promise<{data?: unknown, error?: string, status?: number}> {
try {
// 通过postgrest的post请求去documents表中进行查找id等于documentId的数据,更新documents表的audit_status为1
const response = await postgrestPut(`documents`, {
const response = await postgrestPut(`/api/postgrest/proxy/documents`, {
audit_status: 1
}, {
id: documentId