|
|
@@ -58,7 +58,7 @@
|
|
|
<script setup lang="tsx">
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { NButton, NDataTable, NForm, NNumberAnimation, NInput, NEllipsis } from 'naive-ui'
|
|
|
-import type { DataTableColumns, PaginationProps, DropdownProps } from 'naive-ui'
|
|
|
+import type { DataTableColumns, PaginationProps, DropdownProps, EllipsisProps } from 'naive-ui'
|
|
|
import { useDataTable } from '@/composable/comp/useDataTable'
|
|
|
import { useResettableReactive } from '@/composable/useResettable'
|
|
|
import { getBatchDownloadList, createBatchDownload as createBatchDownloadTask } from '@/service/batchDownload'
|
|
|
@@ -95,7 +95,7 @@ const progressOptions = [
|
|
|
{ label: 'pending', value: 'pending' },
|
|
|
{ label: 'running', value: 'running' },
|
|
|
{ label: 'error', value: 'error' },
|
|
|
- { label: 'failed', value: 'failed' }
|
|
|
+ { label: 'failed', value: 'failed' },
|
|
|
{ label: 'complete', value: 'complete' },
|
|
|
]
|
|
|
|
|
|
@@ -220,7 +220,7 @@ function createColumns(): DataTableColumns<BatchDownloadInfo> {
|
|
|
whiteSpace: "pre-line" // ⬅️ \n 正常换行
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
+ } as EllipsisProps,
|
|
|
{
|
|
|
default: () =>
|
|
|
h("span", { style: { whiteSpace: "pre-line" } }, rowData.sn.join("\n"))
|
|
|
@@ -318,7 +318,7 @@ const itemDelete = (id: string) => {
|
|
|
|
|
|
// 批量下载
|
|
|
const handleDownloadClick = () => {
|
|
|
-
|
|
|
+ return
|
|
|
}
|
|
|
|
|
|
// 批量删除
|