更新附件追加功能,优化文件选择和验证逻辑,支持多种文件格式,调整用户界面以提升操作体验。

This commit is contained in:
2025-09-22 11:17:40 +08:00
parent acb717c342
commit 1ea9fb205c
2 changed files with 254 additions and 12 deletions
+3 -3
View File
@@ -1064,11 +1064,11 @@ export default function DocumentsIndex() {
<i className="ri-download-line"></i>
</button>
{record.type === 1 && record.fileStatus === 'Processed' && (
{record.type === '1' && record.fileStatus === 'Processed' && (
<>
<button
type="button"
className="text-xs px-2 py-1 h-7 mr-1 bg-primary text-white hover:bg-primary-dark rounded"
className="text-xs px-2 py-1 h-7 mr-1 hover:underline hover:text-primary"
onClick={() => {
setSelectedDocumentId(record.id);
setShowAttachmentUpload(true);
@@ -1079,7 +1079,7 @@ export default function DocumentsIndex() {
</button>
<button
type="button"
className="text-xs px-2 py-1 h-7 mr-1 bg-gray-100 text-gray-700 hover:bg-gray-200 rounded"
className="text-xs px-2 py-1 h-7 mr-1 text-gray-500 hover:underline hover:text-gray-700"
onClick={() => {
setSelectedDocumentId(record.id);
setShowTemplateUpload(true);