⚡ 上传状态优化.
This commit is contained in:
@@ -273,7 +273,7 @@ public class ExecCommandServiceImpl implements ExecCommandService {
|
|||||||
// 添加内置参数
|
// 添加内置参数
|
||||||
params.put("userId", request.getUserId());
|
params.put("userId", request.getUserId());
|
||||||
params.put("username", request.getUsername());
|
params.put("username", request.getUsername());
|
||||||
params.put("source", request.getSourceId());
|
params.put("source", request.getSource());
|
||||||
params.put("sourceId", request.getSourceId());
|
params.put("sourceId", request.getSourceId());
|
||||||
params.put("seq", request.getExecSeq());
|
params.put("seq", request.getExecSeq());
|
||||||
params.put("execId", execId);
|
params.put("execId", execId);
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ const columns = [
|
|||||||
}, {
|
}, {
|
||||||
title: '操作',
|
title: '操作',
|
||||||
slotName: 'handle',
|
slotName: 'handle',
|
||||||
width: 130,
|
width: 118,
|
||||||
align: 'left',
|
align: 'center',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
},
|
},
|
||||||
] as TableColumnData[];
|
] as TableColumnData[];
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
<div class="table-left-bar-handle">
|
<div class="table-left-bar-handle">
|
||||||
<!-- 标题 -->
|
<!-- 标题 -->
|
||||||
<div class="table-title">
|
<div class="table-title">
|
||||||
SFTP 操作日志
|
文件操作日志
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 右侧操作 -->
|
<!-- 右侧操作 -->
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<a-form-item field="remotePath"
|
<a-form-item field="remotePath"
|
||||||
style="margin-bottom: 4px;"
|
style="margin-bottom: 4px;"
|
||||||
label="上传路径"
|
label="上传路径"
|
||||||
help="${username} 用户名 ${home} 家目录">
|
help="${username} 用户名 ${home} 用户家目录">
|
||||||
<a-input v-model="formModel.remotePath"
|
<a-input v-model="formModel.remotePath"
|
||||||
placeholder="请输入上传路径"
|
placeholder="请输入上传路径"
|
||||||
allow-clear />
|
allow-clear />
|
||||||
|
|||||||
@@ -3,22 +3,36 @@
|
|||||||
<a-steps :current="status.step"
|
<a-steps :current="status.step"
|
||||||
:status="status.status as any"
|
:status="status.status as any"
|
||||||
direction="vertical">
|
direction="vertical">
|
||||||
|
<!-- 创建任务 -->
|
||||||
<a-step description="创建上传任务">创建任务</a-step>
|
<a-step description="创建上传任务">创建任务</a-step>
|
||||||
|
<!-- 上传文件 -->
|
||||||
<a-step>
|
<a-step>
|
||||||
上传文件
|
上传文件
|
||||||
|
<template #icon v-if="status.step === 2">
|
||||||
|
<icon-loading />
|
||||||
|
</template>
|
||||||
<template #description>
|
<template #description>
|
||||||
<span>将文件上传到临时分区</span><br>
|
<span>将文件上传到临时分区</span><br>
|
||||||
<span class="span-red">在此期间请不要关闭页面</span>
|
<span v-if="status.step === 2" class="span-red desc-tips">
|
||||||
|
在此期间请不要关闭页面
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</a-step>
|
</a-step>
|
||||||
|
<!-- 分发文件 -->
|
||||||
<a-step>
|
<a-step>
|
||||||
分发文件
|
分发文件
|
||||||
|
<template #icon v-if="status.step === 3">
|
||||||
|
<icon-loading />
|
||||||
|
</template>
|
||||||
<template #description>
|
<template #description>
|
||||||
<span>将文件分发到目标服务器</span><br>
|
<span>将文件分发到目标服务器</span><br>
|
||||||
<span>可以关闭页面</span>
|
<span v-if="status.step === 3" class="span-blue desc-tips">
|
||||||
|
在此期间可以关闭页面
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</a-step>
|
</a-step>
|
||||||
<a-step description="上传完成并释放资源">上传完成</a-step>
|
<!-- 上传完成 -->
|
||||||
|
<a-step description="释放资源">上传完成</a-step>
|
||||||
</a-steps>
|
</a-steps>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -42,4 +56,10 @@
|
|||||||
.container {
|
.container {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.desc-tips {
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 6px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user