fix: 1.将主页和法务助手对话设置成手机也能够正确加载的响应式布局。
2. 修改合同重新上传模板的可接受文件类型,修改对接的上传模板对应的接口。 3. 交叉评查任务列表去除任务名称的点击效果。 4. 交叉评查文件预览在点击完成评查的按钮后会返回任务列表并打开任务的文档列表。 5.修复点击完成评查按钮造成页面刷新。 6. 修复创建任务的第3步无法返回列表。
This commit is contained in:
@@ -130,6 +130,14 @@ async function handleFileUpload(
|
||||
jwtToken?: string,
|
||||
attachments?: File[]
|
||||
): Promise<FileUploadResponse> {
|
||||
// console.log('【handleFileUpload】开始上传:', {
|
||||
// fileName,
|
||||
// fileSize: binaryData.byteLength,
|
||||
// documentType,
|
||||
// hasAttachments: !!(attachments && attachments.length > 0),
|
||||
// attachmentCount: attachments?.length || 0
|
||||
// });
|
||||
|
||||
const response = await uploadDocumentToServer(
|
||||
binaryData,
|
||||
fileName,
|
||||
@@ -144,11 +152,20 @@ async function handleFileUpload(
|
||||
jwtToken,
|
||||
attachments
|
||||
);
|
||||
|
||||
|
||||
// console.log('【handleFileUpload】uploadDocumentToServer返回:', {
|
||||
// hasError: !!response.error,
|
||||
// hasData: !!response.data,
|
||||
// error: response.error,
|
||||
// dataKeys: response.data ? Object.keys(response.data) : []
|
||||
// });
|
||||
|
||||
if (response.error || !response.data) {
|
||||
console.error('【handleFileUpload】上传失败:', response.error);
|
||||
throw new Error(response.error || '上传失败');
|
||||
}
|
||||
|
||||
|
||||
// console.log('【handleFileUpload】返回数据:', response.data);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
@@ -1088,7 +1105,21 @@ export default function FilesUpload() {
|
||||
attachmentFiles
|
||||
);
|
||||
|
||||
if (!uploadResp.result) throw new Error('主文件上传失败');
|
||||
// console.log('【合同上传】服务器响应数据:', uploadResp);
|
||||
// console.log('【合同上传】响应详情:', {
|
||||
// success: uploadResp.success,
|
||||
// hasResult: !!uploadResp.result,
|
||||
// error: uploadResp.error,
|
||||
// fullResponse: JSON.stringify(uploadResp)
|
||||
// });
|
||||
|
||||
if (!uploadResp.success) {
|
||||
throw new Error(uploadResp.error || '上传失败,服务器返回success=false');
|
||||
}
|
||||
|
||||
if (!uploadResp.result) {
|
||||
throw new Error('主文件上传失败:服务器未返回文档信息');
|
||||
}
|
||||
const documentId = uploadResp.result.id;
|
||||
|
||||
// 可选:模板上传
|
||||
|
||||
Reference in New Issue
Block a user