+
+
+ clear.open(e)"
+ @open-detail="(e) => detail.open(e)" />
+
+
+
+
+
+
+
+
+
+
diff --git a/orion-ops-ui/src/views/exec/upload-task/types/const.ts b/orion-ops-ui/src/views/exec/upload-task/types/const.ts
new file mode 100644
index 00000000..eb24662c
--- /dev/null
+++ b/orion-ops-ui/src/views/exec/upload-task/types/const.ts
@@ -0,0 +1,33 @@
+// 上传任务状态
+export const UploadTaskStatus = {
+ // 等待中
+ WAITING: 'WAITING',
+ // 上传中
+ UPLOADING: 'UPLOADING',
+ // 已完成
+ FINISHED: 'FINISHED',
+ // 已完成
+ FAILED: 'FAILED',
+ // 已取消
+ CANCELED: 'CANCELED',
+};
+
+// 上传任务文件状态
+export const UploadTaskFileStatus = {
+ // 等待中
+ WAITING: 'WAITING',
+ // 上传中
+ UPLOADING: 'UPLOADING',
+ // 已完成
+ FINISHED: 'FINISHED',
+ // 已完成
+ FAILED: 'FAILED',
+ // 已取消
+ CANCELED: 'CANCELED',
+};
+
+// 上传任务状态 字典项
+export const uploadTaskStatusKey = 'uploadTaskStatus';
+
+// 加载的字典值
+export const dictKeys = [uploadTaskStatusKey];
diff --git a/orion-ops-ui/src/views/exec/upload-task/types/table.columns.ts b/orion-ops-ui/src/views/exec/upload-task/types/table.columns.ts
new file mode 100644
index 00000000..a7c352f5
--- /dev/null
+++ b/orion-ops-ui/src/views/exec/upload-task/types/table.columns.ts
@@ -0,0 +1,70 @@
+import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
+import { dateFormat } from '@/utils';
+
+const columns = [
+ {
+ title: 'id',
+ dataIndex: 'id',
+ slotName: 'id',
+ width: 70,
+ align: 'left',
+ fixed: 'left',
+ }, {
+ title: '上传用户',
+ dataIndex: 'username',
+ slotName: 'username',
+ align: 'left',
+ width: 118,
+ ellipsis: true,
+ tooltip: true,
+ }, {
+ title: '上传描述',
+ dataIndex: 'description',
+ slotName: 'description',
+ align: 'left',
+ ellipsis: true,
+ tooltip: true,
+ }, {
+ title: '远程路径',
+ dataIndex: 'remotePath',
+ slotName: 'remotePath',
+ align: 'left',
+ ellipsis: true,
+ tooltip: true,
+ }, {
+ title: '上传状态',
+ dataIndex: 'status',
+ slotName: 'status',
+ align: 'center',
+ width: 138,
+ }, {
+ title: '文件数量',
+ dataIndex: 'fileCount',
+ slotName: 'fileCount',
+ width: 98,
+ align: 'center',
+ }, {
+ title: '主机数量',
+ dataIndex: 'hostCount',
+ slotName: 'hostCount',
+ width: 98,
+ align: 'center',
+ }, {
+ title: '上传时间',
+ dataIndex: 'createTime',
+ slotName: 'createTime',
+ align: 'center',
+ width: 180,
+ render: ({ record }) => {
+ return dateFormat(new Date(record.createTime));
+ },
+ }, {
+ title: '操作',
+ slotName: 'handle',
+ width: 180,
+ align: 'center',
+ fixed: 'right',
+ },
+] as TableColumnData[];
+
+export default columns;