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