🔨 上传任务使用用户连接配置.
This commit is contained in:
@@ -31,7 +31,11 @@
|
||||
</div>
|
||||
<!-- 进度 -->
|
||||
<a-tooltip position="left"
|
||||
:content="file.fileSize ? ((file.current || 0) / file.fileSize * 100).toFixed(2) + '%' : '0%'"
|
||||
:content="(
|
||||
file.status === UploadTaskFileStatus.FAILED
|
||||
? (file.errorMessage || '')
|
||||
: (file.fileSize ? ((file.current || 0) / file.fileSize * 100).toFixed(2) + '%' : '0%')
|
||||
)"
|
||||
mini>
|
||||
<a-progress type="circle"
|
||||
size="mini"
|
||||
|
||||
@@ -240,8 +240,9 @@
|
||||
for (let file of host.files) {
|
||||
const fileStatus = taskStatusData.files.find(s => s.id === file.id);
|
||||
if (fileStatus) {
|
||||
file.status = fileStatus.status;
|
||||
file.current = fileStatus.current;
|
||||
file.status = fileStatus.status;
|
||||
file.errorMessage = fileStatus.errorMessage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,9 +46,9 @@
|
||||
<a-descriptions-item label="脚本执行">
|
||||
{{ record.scriptExec === EnabledStatus.ENABLED ? '是' : '否' }}
|
||||
</a-descriptions-item>
|
||||
<!-- 创建时间 -->
|
||||
<a-descriptions-item label="创建时间">
|
||||
{{ dateFormat(new Date(record.createTime)) }}
|
||||
<!-- 执行用户 -->
|
||||
<a-descriptions-item label="执行用户">
|
||||
{{ record.execUsername }}
|
||||
</a-descriptions-item>
|
||||
<!-- 修改时间 -->
|
||||
<a-descriptions-item label="修改时间">
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
:on-before-ok="handlerOk"
|
||||
@close="handleClose">
|
||||
<a-spin class="full" :loading="loading">
|
||||
<!-- 提示 -->
|
||||
<a-alert class="mb16">修改后将使用此用户的权限以及主机配置执行此任务</a-alert>
|
||||
<a-form :model="formModel"
|
||||
label-align="right"
|
||||
:auto-label-width="true">
|
||||
|
||||
Reference in New Issue
Block a user