总进度: {{ totalProgress }}%
成功: {{ stats.success }}
@@ -423,13 +480,14 @@ onActivated(() => {
:class="`status-${fileItem.status}`"
>
- {{ fileItem.name }}
+ {{ fileItem.name }}
({{ formatFileSize(fileItem.size) }})
@@ -437,7 +495,7 @@ onActivated(() => {
{
重试
{
-
+
取消
- {{ uploadLoading ? '上传中...' : '确认上传' }}
+ {{ uploadLoading ? '上传中...' : (uploadFileList.length > 0 ? `确认上传 ${uploadFileList.length} 项` : '确认上传') }}
+ >
{{ (paginationData.currentPage - 1) * paginationData.pageSize + scope.$index + 1 }}
-
-
+
+
{{ formatFileSize(scope.row.size) }}
@@ -542,10 +601,129 @@ onActivated(() => {
display: flex;
justify-content: flex-end;
}
+
+.el-upload__tip {
+ margin-top: 10px; // Increased margin for better spacing
+ line-height: 1.6; // Improved line height
+ font-size: 13px; // Slightly larger font for tip
+ color: #606266;
+
+ .el-link {
+ // Style for the folder upload link
+ font-size: inherit; // Inherit font size from parent
+ vertical-align: baseline; // Align with surrounding text
+ margin: 0 2px; // Small horizontal margin
+ }
+}
+
+.upload-progress-section {
+ margin-top: 20px;
+ padding: 15px;
+ background-color: #f8f9fa;
+ border-radius: 6px;
+}
+
+.upload-stats {
+ display: flex;
+ gap: 15px;
+ margin-bottom: 15px;
+ font-size: 14px;
+ color: #606266;
+ flex-wrap: wrap;
+}
+
+.upload-file-list {
+ max-height: 300px;
+ overflow-y: auto;
+ border: 1px solid #eee;
+ padding: 5px;
+ border-radius: 4px;
+}
+
+.upload-file-item {
+ display: flex;
+ align-items: center;
+ padding: 8px 10px;
+ margin-bottom: 8px;
+ background-color: white;
+ border-radius: 4px;
+ border: 1px solid #e4e7ed;
+ transition: all 0.3s;
+ font-size: 13px;
+}
+
+.upload-file-item:last-child {
+ margin-bottom: 0;
+}
+
+.upload-file-item.status-uploading {
+ border-color: #409eff;
+ background-color: #ecf5ff;
+}
+
+.upload-file-item.status-success {
+ border-color: #67c23a;
+ background-color: #f0f9eb;
+}
+
+.upload-file-item.status-error {
+ border-color: #f56c6c;
+ background-color: #fef0f0;
+}
+
+.file-info {
+ flex: 1;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+}
+
+.file-name {
+ font-weight: 500;
+ color: #303133;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: block;
+ line-height: 1.4;
+}
+
+.file-size {
+ color: #909399;
+ font-size: 11px;
+ line-height: 1.2;
+}
+
+.file-progress {
+ flex: 0 0 150px;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin: 0 10px;
+}
+.file-progress .el-progress {
+ flex-grow: 1;
+}
+
+.progress-text {
+ font-size: 11px;
+ color: #606266;
+ min-width: 30px;
+ text-align: right;
+}
+
+.file-actions {
+ flex: 0 0 auto;
+ display: flex;
+ gap: 5px;
+}
+.file-actions .el-button {
+ padding: 4px 8px;
+}
diff --git a/management/web/types/auto/components.d.ts b/management/web/types/auto/components.d.ts
index 1e875d5..256a9f9 100644
--- a/management/web/types/auto/components.d.ts
+++ b/management/web/types/auto/components.d.ts
@@ -31,6 +31,7 @@ declare module 'vue' {
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput']
+ ElLink: typeof import('element-plus/es')['ElLink']
ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
diff --git a/pyproject.toml b/pyproject.toml
index 274f509..e860ef8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -140,7 +140,7 @@ full = [
]
[tool.setuptools]
-packages = ['rag', 'api', 'sdk', 'helm','agent', 'deepdoc', 'graphrag', 'flask_session', 'intergrations', 'agentic_reasoning']
+packages = ['rag', 'api', 'sdk', 'helm','agent', 'graphrag', 'flask_session', 'intergrations', 'agentic_reasoning']
[[tool.uv.index]]
url = "https://mirrors.aliyun.com/pypi/simple"