fix: 调整上传页远程下载入口
This commit is contained in:
@@ -20,7 +20,26 @@
|
||||
</div>
|
||||
<h3>拖拽文件夹或文件到这里</h3>
|
||||
<p>支持 .zip, .xlsx, .xls, .csv 格式</p>
|
||||
<p class="upload-hint">或者点击选择文件</p>
|
||||
<div class="upload-zone-actions">
|
||||
<span class="upload-hint">或者点击选择文件</span><br>
|
||||
<n-tooltip trigger="hover" placement="bottom">
|
||||
<template #trigger>
|
||||
<span class="remote-run-trigger" @click.stop @keydown.stop>
|
||||
<n-button
|
||||
type="primary"
|
||||
secondary
|
||||
:loading="remoteStarting"
|
||||
:disabled="working || remoteStarting"
|
||||
@click.stop="startRemoteProcessing"
|
||||
>
|
||||
<template #icon><n-icon><CloudDownloadOutline /></n-icon></template>
|
||||
远程下载并处理
|
||||
</n-button>
|
||||
</span>
|
||||
</template>
|
||||
从已配置的 FTP/SFTP 目录递归下载数据,然后自动开始处理。
|
||||
</n-tooltip>
|
||||
</div>
|
||||
<input
|
||||
ref="fileInput"
|
||||
class="hidden-input"
|
||||
@@ -40,17 +59,6 @@
|
||||
/>
|
||||
</section>
|
||||
|
||||
<section v-if="!taskInProgress" class="remote-run-card">
|
||||
<div class="remote-run-copy">
|
||||
<h4>远程自动化</h4>
|
||||
<p>从已配置的 FTP/SFTP 目录递归下载数据,然后自动开始处理。</p>
|
||||
</div>
|
||||
<n-button type="primary" secondary :loading="remoteStarting" :disabled="working" @click="startRemoteProcessing">
|
||||
<template #icon><n-icon><CloudDownloadOutline /></n-icon></template>
|
||||
远程下载并处理
|
||||
</n-button>
|
||||
</section>
|
||||
|
||||
<div v-if="!taskInProgress && files.length > 0" class="file-list">
|
||||
<div class="file-list-header">
|
||||
<h4>已选择文件</h4>
|
||||
|
||||
+10
-30
@@ -589,39 +589,24 @@ select {
|
||||
}
|
||||
|
||||
.upload-hint {
|
||||
margin-top: 12px !important;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
margin-top: 0 !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
font-size: 13px !important;
|
||||
}
|
||||
|
||||
.remote-run-card {
|
||||
.upload-zone-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin-top: 16px;
|
||||
padding: 16px 20px;
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-border-color-light);
|
||||
border-radius: var(--td-radius-default);
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin-top: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.remote-run-copy {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.remote-run-copy h4 {
|
||||
margin: 0 0 4px;
|
||||
color: var(--td-text-color-primary);
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.remote-run-copy p {
|
||||
margin: 0;
|
||||
color: var(--td-text-color-secondary);
|
||||
font-size: 13px;
|
||||
line-height: 20px;
|
||||
.remote-run-trigger {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.file-list {
|
||||
@@ -1700,11 +1685,6 @@ select {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.remote-run-card {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.card-actions,
|
||||
.settings-card-header,
|
||||
.field-card-title-row,
|
||||
|
||||
Reference in New Issue
Block a user