0bf21b84f0
后端仍有出口把底层异常原文写进 error_message / fileError / 匹配原因 / 响应 message,逐条翻译
跟不上新增;用户 2026-10-09 要求整个项目的提示语都用中文,所以把规矩做进界面出口。
规则:原文含中文照原样透出;整条无中文换成中文兜底句;**含中文但冒号后是纯英文尾巴的剥掉尾巴**
("转换结果打包失败: No space left on device" 只留主干)。被隐去的原文进 console 供核对日志。
闸口:用户端 http.ts 的 extractErrorMessage 五条返回路径与 unwrapJavaResponse、后台 envelope 的
textOf/errorTextOf、13 处任务卡 `错误:${item.error}`、2 处 fileError 兜底句、发布页文件错误与
匹配原因函数、dispatch-guard 的解析失败原因清单、22 处 ElMessage.error(result.error) 型展示、
后台看板与数字人详情页两处模板。
尺子:frontend-vue/tests/user-notice-chinese-only-guard.test.ts、admin-frontend-vue/tests/user-notice-chinese-only.test.ts
(分母硬钉+内存造违例自证+摘壳写法仍计入分母);source-pin 台账只登记本轮新增那一个文件,
别人的在飞格子没重算。node --test 用户端 782/782、后台 1782/1782,两棵树 vue-tsc 均 rc=0。
714 lines
20 KiB
Vue
714 lines
20 KiB
Vue
<template>
|
||
<div class="page-shell module-page">
|
||
<AmazonToolPageShell tool-id="split">
|
||
|
||
<div class="main-content">
|
||
<aside class="left-panel">
|
||
<div class="section-title">选择文件</div>
|
||
<FileUploadZone
|
||
hint="选择需要拆分的 Excel 文件或文件夹,按规则拆成多个 Excel 文件。"
|
||
:names="splitSelectedPaths"
|
||
:max-display="8"
|
||
files-label="选择 Excel 文件"
|
||
empty-text="暂未选择待拆分文件"
|
||
files-class="clean-placeholder split-selected-files"
|
||
@select-files="selectSplitFiles"
|
||
@select-folder="selectSplitFolder"
|
||
/>
|
||
|
||
<div class="section-title">保留列设置</div>
|
||
<div class="option-group column-option-group">
|
||
<div class="column-toolbar">
|
||
<span class="column-count">已选择 {{ splitSelectedColumns.length }} / {{ splitAvailableColumns.length }}
|
||
列</span>
|
||
<div class="column-actions">
|
||
<button type="button" class="opt-btn small"
|
||
@click="splitSelectedColumns = [...splitAvailableColumns]">全选</button>
|
||
<button type="button" class="opt-btn small" @click="splitSelectedColumns = []">清空</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="column-grid" v-if="splitAvailableColumns.length">
|
||
<label v-for="column in splitAvailableColumns" :key="column" class="column-item"
|
||
:class="{ active: splitSelectedColumns.includes(column) }">
|
||
<input v-model="splitSelectedColumns" type="checkbox" :value="column" />
|
||
<span>{{ column }}</span>
|
||
</label>
|
||
</div>
|
||
<div v-else class="empty-column-state">请选择 Excel 文件后读取表头并填充可保留列</div>
|
||
</div>
|
||
|
||
<div class="section-title">总条数</div>
|
||
<div class="option-group">
|
||
<label class="radio-item active">
|
||
<input type="checkbox" checked disabled />
|
||
<div>
|
||
<span class="label">当前数据总条数</span>
|
||
<div class="desc">{{ splitTotalRows }} 条(不含表头)</div>
|
||
</div>
|
||
</label>
|
||
</div>
|
||
|
||
<div class="section-title">拆分模式</div>
|
||
<div class="option-group">
|
||
<label class="radio-item" :class="{ active: splitMode === 'rows_per_file' }">
|
||
<input v-model="splitMode" type="radio" value="rows_per_file" name="split-mode" />
|
||
<div>
|
||
<span class="label">按每份条数</span>
|
||
<div class="desc">例如每份 2000 条,最后一份放剩余数据</div>
|
||
</div>
|
||
</label>
|
||
<label class="radio-item" :class="{ active: splitMode === 'parts' }">
|
||
<input v-model="splitMode" type="radio" value="parts" name="split-mode" />
|
||
<div>
|
||
<span class="label">按份数平均拆分</span>
|
||
<div class="desc">例如拆 5 份,按总条数尽量平均分配</div>
|
||
</div>
|
||
</label>
|
||
</div>
|
||
|
||
<div class="section-title">拆分参数</div>
|
||
<div class="option-group">
|
||
<label v-if="splitMode === 'rows_per_file'" class="split-input-card">
|
||
<span class="label">每份条数</span>
|
||
<input v-model.number="splitRowsPerFile" class="split-number-input" type="number" min="1"
|
||
placeholder="例如 2000" />
|
||
</label>
|
||
<label v-else class="split-input-card">
|
||
<span class="label">拆分份数</span>
|
||
<input v-model.number="splitParts" class="split-number-input" type="number" min="1" placeholder="例如 5" />
|
||
</label>
|
||
</div>
|
||
|
||
<div class="run-row">
|
||
<button type="button" class="btn-run" :disabled="splitRunning" @click="submitSplitRun">
|
||
{{ splitRunning ? '拆分中...' : '开始拆分' }}
|
||
</button>
|
||
<span class="loading-msg">
|
||
{{ splitRunning ? '正在拆分并上传结果,请稍候…' : '选择文件、保留列和拆分规则后即可执行拆分,结果会显示在右侧供下载' }}
|
||
</span>
|
||
</div>
|
||
</aside>
|
||
|
||
<section class="right-panel">
|
||
<TaskCenterPanel
|
||
:on-batch-delete="batchDeleteHistory"
|
||
title="拆分结果"
|
||
:cards="splitCards"
|
||
:current-items="currentTaskViews"
|
||
:history-items="historyTaskViews"
|
||
current-title="当前任务"
|
||
current-empty-text="暂无当前任务,完成数据拆分后会在这里展示"
|
||
history-empty-text="暂无历史记录"
|
||
>
|
||
<template #history-item-actions="{ item }">
|
||
<template v-if="itemSource(item)">
|
||
<button
|
||
v-if="itemSource(item).success && (itemSource(item).downloadUrl || itemSource(item).resultId)"
|
||
type="button"
|
||
class="download"
|
||
@click="downloadSplitResult(itemSource(item))"
|
||
>
|
||
下载压缩包
|
||
</button>
|
||
<button
|
||
v-if="itemSource(item).resultId"
|
||
type="button"
|
||
class="btn-delete"
|
||
@click="deleteSplitHistoryRecord(itemSource(item).resultId!)"
|
||
>
|
||
删除
|
||
</button>
|
||
</template>
|
||
</template>
|
||
</TaskCenterPanel>
|
||
</section>
|
||
</div>
|
||
</AmazonToolPageShell>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup lang="ts">
|
||
import { computed, onMounted, ref } from 'vue'
|
||
import { userNotice } from '@/shared/utils/user-notice'
|
||
import { ElMessage } from 'element-plus'
|
||
import AmazonToolPageShell from '@/pages/amazon/components/AmazonToolPageShell.vue';
|
||
import FileUploadZone from '@/shared/components/FileUploadZone.vue'
|
||
import TaskCenterPanel from '@/shared/components/tasks/TaskCenterPanel.vue'
|
||
import type { TaskItemView, TaskStatCard } from '@/shared/components/tasks/types'
|
||
import { deleteSplitHistory, getExcelInfo, getSplitHistory, getSplitResultDownloadUrl, runSplit, type SplitResultItem } from '@/shared/api/java-modules'
|
||
import { saveUrlWithProgress } from '@/shared/utils/download-progress'
|
||
import { collectDistinctErrors, guardBlocked } from '@/shared/dispatch-guard'
|
||
import { passGuard } from '@/shared/dispatch-guard-ui'
|
||
import { useExcelFileUpload } from '@/shared/composables/useExcelFileUpload'
|
||
import { formatDateTime } from '@/shared/utils/datetime'
|
||
import { runBatchDelete } from '@/shared/utils/batch-delete'
|
||
|
||
const {
|
||
files: splitUploadedFiles,
|
||
selectedPaths: splitSelectedPaths,
|
||
selectFiles: selectSplitFiles,
|
||
selectFolder: selectSplitFolder,
|
||
} = useExcelFileUpload({
|
||
// 展示原始本机路径;文件夹展开后只展示相对路径(与原实现一致)
|
||
filePathsMode: 'raw',
|
||
folderPathsMode: 'relative',
|
||
filesSuccessMessage: (_files, paths) => `已选择 ${paths.length} 个待拆分文件`,
|
||
folderSuccessMessage: (_files, items) => `已选择文件夹内 ${items.length} 个 xlsx 文件`,
|
||
folderEmptyWarning: (error) => error || '该文件夹下没有 xlsx 文件',
|
||
onFolderPicked: (folder) => {
|
||
splitArchiveName.value = folder.split(/[/\\]/).filter(Boolean).pop() || ''
|
||
},
|
||
onUploaded: async (info) => {
|
||
if (info.action === 'files') splitArchiveName.value = ''
|
||
if (info.files.length > 0) {
|
||
await loadSplitInfo(info.files[0].fileKey)
|
||
}
|
||
},
|
||
})
|
||
const splitArchiveName = ref('')
|
||
const splitAvailableColumns = ref<string[]>([])
|
||
const splitSelectedColumns = ref<string[]>([])
|
||
const splitTotalRows = ref(0)
|
||
const splitMode = ref<'rows_per_file' | 'parts'>('rows_per_file')
|
||
const splitRowsPerFile = ref<number | null>(2000)
|
||
const splitParts = ref<number | null>(5)
|
||
const splitRunning = ref(false)
|
||
const splitResultItems = ref<SplitResultItem[]>([])
|
||
|
||
// ---- 右侧任务面板统一视图(TaskCenterPanel)----
|
||
const splitCards = computed<TaskStatCard[]>(() => [
|
||
{ label: '运行中任务', value: currentTaskViews.value.length },
|
||
{ label: '已结束任务', value: historyTaskViews.value.length },
|
||
{ label: '成功任务', value: historyTaskViews.value.filter((view) => view.statusClass === 'success').length },
|
||
{ label: '失败任务', value: historyTaskViews.value.filter((view) => view.statusClass === 'failed').length },
|
||
])
|
||
|
||
function isSplitTaskBusy(item: SplitResultItem) {
|
||
const status = (item.taskStatus || '').toUpperCase()
|
||
return status === 'RUNNING' || status === 'PENDING'
|
||
}
|
||
|
||
/** 当前任务:运行中/待执行项(拆分接口通常同步完成即出结果,正常为空) */
|
||
const currentTaskViews = computed<TaskItemView[]>(() =>
|
||
splitResultItems.value.filter(isSplitTaskBusy).map(toSplitTaskView),
|
||
)
|
||
|
||
/** 历史任务:全部已结束的结果项 */
|
||
const historyTaskViews = computed<TaskItemView[]>(() =>
|
||
splitResultItems.value.filter((item) => !isSplitTaskBusy(item)).map(toSplitTaskView),
|
||
)
|
||
|
||
function itemSource(item: TaskItemView): SplitResultItem {
|
||
return item.source as SplitResultItem
|
||
}
|
||
|
||
function splitTaskStatusText(item: SplitResultItem) {
|
||
const status = (item.taskStatus || '').toUpperCase()
|
||
if (status === 'RUNNING') return '执行中'
|
||
if (status === 'PENDING') return '等待中'
|
||
return item.success ? '已完成' : '失败'
|
||
}
|
||
|
||
function splitTaskStatusClass(item: SplitResultItem) {
|
||
const status = (item.taskStatus || '').toUpperCase()
|
||
if (status === 'RUNNING') return 'running'
|
||
if (status === 'PENDING') return 'pending'
|
||
return item.success ? 'success' : 'failed'
|
||
}
|
||
|
||
function toSplitTaskView(item: SplitResultItem): TaskItemView {
|
||
return {
|
||
key: `split-${item.resultId ?? `${item.sourceFilename}-${item.rowCount ?? 0}`}`,
|
||
title: item.sourceFilename || '数据拆分',
|
||
taskId: item.taskId ?? '-',
|
||
startedAt: formatDateTime(item.startedAt || item.createdAt),
|
||
finishedAt: formatDateTime(item.finishedAt),
|
||
statusText: splitTaskStatusText(item),
|
||
statusClass: splitTaskStatusClass(item),
|
||
extraLines: [
|
||
...(item.outputFilename ? [`压缩包文件:${item.outputFilename}`] : []),
|
||
...(item.rowCount !== undefined ? [`压缩包共包含 ${item.rowCount} 条数据`] : []),
|
||
...(item.entryCount && item.entryCount > 0 ? [`压缩包内共 ${item.entryCount} 个拆分文件`] : []),
|
||
...(item.entries && item.entries.length ? [`压缩包内容:${formatSplitEntries(item.entries)}`] : []),
|
||
...(item.error ? [`错误信息:${userNotice(item.error)}`] : []),
|
||
],
|
||
source: item,
|
||
}
|
||
}
|
||
|
||
async function loadSplitInfo(fileKey: string) {
|
||
const result = await getExcelInfo(fileKey)
|
||
splitAvailableColumns.value = result.headers || []
|
||
splitSelectedColumns.value = [...(result.headers || [])]
|
||
splitTotalRows.value = result.totalRows || 0
|
||
}
|
||
|
||
async function submitSplitRun() {
|
||
if (!splitUploadedFiles.value.length) {
|
||
ElMessage.warning('请先选择待拆分 Excel 文件或文件夹')
|
||
return
|
||
}
|
||
if (!splitSelectedColumns.value.length) {
|
||
ElMessage.warning('请至少选择一列保留列')
|
||
return
|
||
}
|
||
if (splitMode.value === 'rows_per_file' && (!splitRowsPerFile.value || splitRowsPerFile.value <= 0)) {
|
||
ElMessage.warning('请输入有效的每份条数')
|
||
return
|
||
}
|
||
if (splitMode.value === 'parts' && (!splitParts.value || splitParts.value <= 0)) {
|
||
ElMessage.warning('请输入有效的拆分份数')
|
||
return
|
||
}
|
||
|
||
try {
|
||
splitRunning.value = true
|
||
const result = await runSplit({
|
||
files: splitUploadedFiles.value.map((item) => ({ fileKey: item.fileKey, originalFilename: item.originalFilename, relativePath: item.relativePath })),
|
||
selectedColumns: splitSelectedColumns.value,
|
||
splitMode: splitMode.value,
|
||
rowsPerFile: splitMode.value === 'rows_per_file' ? splitRowsPerFile.value || undefined : undefined,
|
||
parts: splitMode.value === 'parts' ? splitParts.value || undefined : undefined,
|
||
archiveName:
|
||
splitUploadedFiles.value.some((item) => !!item.relativePath) && splitArchiveName.value
|
||
? splitArchiveName.value
|
||
: undefined,
|
||
})
|
||
splitResultItems.value = result.items || []
|
||
await loadSplitHistory()
|
||
if (result.total > 0 && result.successCount === 0) {
|
||
// 逐文件原因就在 items[].error 里,优先直接列出,不再让用户对着「常见原因」猜
|
||
const details = collectDistinctErrors((result.items || []).map((item) => item.error)).slice(0, 5)
|
||
await passGuard(
|
||
guardBlocked(
|
||
'拆分未成功',
|
||
`本次提交的 ${result.total} 个文件全部处理失败。\n` +
|
||
(details.length
|
||
? `失败原因:\n${details.map((message) => `· ${message}`).join('\n')}\n`
|
||
: '常见原因是表头列名与所选保留列对不上,或文件内没有数据行。\n') +
|
||
'请在右侧结果列表查看每个文件的失败原因后重试。',
|
||
'split.all-failed',
|
||
),
|
||
)
|
||
return
|
||
}
|
||
ElMessage.success('数据拆分完成')
|
||
} catch (error) {
|
||
ElMessage.error(error instanceof Error ? error.message : '数据拆分失败')
|
||
} finally {
|
||
splitRunning.value = false
|
||
}
|
||
}
|
||
|
||
async function loadSplitHistory() {
|
||
try {
|
||
const response = await getSplitHistory()
|
||
splitResultItems.value = response.items || []
|
||
} catch {
|
||
// ignore history load errors
|
||
}
|
||
}
|
||
|
||
async function deleteSplitHistoryRecord(resultId: number) {
|
||
try {
|
||
await deleteSplitHistory(resultId)
|
||
await loadSplitHistory()
|
||
ElMessage.success('已删除')
|
||
} catch (error) {
|
||
ElMessage.error(error instanceof Error ? error.message : '删除失败')
|
||
}
|
||
}
|
||
|
||
function formatSplitEntries(entries: NonNullable<SplitResultItem['entries']>) {
|
||
const preview = entries.slice(0, 4).map((entry) => {
|
||
if (entry.rowCount !== undefined) {
|
||
return `${entry.filename}(${entry.rowCount}条)`
|
||
}
|
||
return entry.filename
|
||
})
|
||
const hiddenCount = entries.length - preview.length
|
||
return hiddenCount > 0 ? `${preview.join('、')} 等 ${entries.length} 个文件` : preview.join('、')
|
||
}
|
||
|
||
async function downloadSplitResult(item: SplitResultItem) {
|
||
const url = item.downloadUrl || (item.resultId ? getSplitResultDownloadUrl(item.resultId) : '')
|
||
if (!url) {
|
||
ElMessage.warning('当前结果没有下载地址')
|
||
return
|
||
}
|
||
|
||
const filename = item.outputFilename || `${new Date().toISOString().slice(0, 10).replace(/-/g, '')}.zip`
|
||
const result = await saveUrlWithProgress(url, filename, item.resultId ? `split:${item.resultId}` : undefined)
|
||
if (result.success) {
|
||
ElMessage.success(`已保存:${result.path || filename}`)
|
||
} else if (result.error && result.error !== '用户取消') {
|
||
ElMessage.error(userNotice(result.error))
|
||
}
|
||
}
|
||
|
||
onMounted(() => {
|
||
loadSplitHistory().catch(() => undefined)
|
||
})
|
||
|
||
/**
|
||
* 历史记录批量删除:复用单条删除逻辑(删除后原函数各自刷新列表)
|
||
*/
|
||
async function batchDeleteHistory(views: TaskItemView[]) {
|
||
const { total, failed } = await runBatchDelete(views, (view) => deleteSplitHistoryRecord(itemSource(view).resultId!))
|
||
if (!total) return
|
||
if (failed > 0) {
|
||
ElMessage.warning(`删除完成,${failed} 条失败`)
|
||
} else {
|
||
ElMessage.success(`已删除 ${total} 条历史记录`)
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style scoped>
|
||
.module-page {
|
||
min-height: 100vh;
|
||
background: #242424;
|
||
}
|
||
|
||
.main-content {
|
||
display: flex;
|
||
min-height: calc(100vh - 56px);
|
||
height: calc(100vh - 56px);
|
||
}
|
||
|
||
.left-panel {
|
||
width: 380px;
|
||
background: #242424;
|
||
padding: 20px;
|
||
overflow-y: auto;
|
||
border-right: 1px solid #2e3a52;
|
||
}
|
||
|
||
.right-panel {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 0;
|
||
background: #242424;
|
||
}
|
||
|
||
.section-title {
|
||
font-size: 13px;
|
||
color: #a0acbe;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
/* upload-zone 已抽到 FileUploadZone 组件;这里保留本 Tab 的差异样式 */
|
||
:deep(.upload-zone) {
|
||
padding: 24px;
|
||
text-align: center;
|
||
margin-bottom: 20px;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
:deep(.upload-zone:hover) {
|
||
border-color: #3498db;
|
||
background: #242424;
|
||
}
|
||
|
||
:deep(.upload-zone .hint) {
|
||
font-size: 13px;
|
||
margin-bottom: 12px;
|
||
}
|
||
|
||
:deep(.upload-zone .btns) {
|
||
justify-content: center;
|
||
}
|
||
|
||
:deep(.upload-zone .opt-btn) {
|
||
padding: 8px 16px;
|
||
font-size: 13px;
|
||
border-radius: 6px;
|
||
}
|
||
|
||
:deep(.upload-zone .opt-btn:hover) {
|
||
color: #3498db;
|
||
background: #333;
|
||
border-color: #3498db;
|
||
}
|
||
|
||
:deep(.upload-zone .opt-btn:disabled) {
|
||
cursor: not-allowed;
|
||
opacity: 0.55;
|
||
}
|
||
|
||
:deep(.selected-files) {
|
||
font-size: 12px;
|
||
color: #5e6878;
|
||
max-height: 112px;
|
||
overflow-y: auto;
|
||
text-align: left;
|
||
}
|
||
|
||
:deep(.more-line) {
|
||
color: #a0acbe;
|
||
}
|
||
|
||
:deep(.split-selected-files) {
|
||
max-height: 120px;
|
||
min-height: 72px;
|
||
padding-right: 4px;
|
||
}
|
||
|
||
.opt-btn,
|
||
.btn-run,
|
||
.download,
|
||
.btn-delete {
|
||
border: none;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.opt-btn {
|
||
padding: 8px 16px;
|
||
font-size: 13px;
|
||
color: #c8d2e2;
|
||
background: #242424;
|
||
border: 1px solid #3e4a62;
|
||
border-radius: 6px;
|
||
}
|
||
|
||
.opt-btn.small {
|
||
padding: 6px 10px;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.opt-btn:hover {
|
||
color: #3498db;
|
||
background: #333;
|
||
border-color: #3498db;
|
||
}
|
||
|
||
.option-group {
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.column-option-group {
|
||
padding: 14px;
|
||
border-radius: 10px;
|
||
background: #242424;
|
||
border: 1px solid #2e3a52;
|
||
}
|
||
|
||
.column-toolbar {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.column-count {
|
||
font-size: 12px;
|
||
color: #a0acbe;
|
||
}
|
||
|
||
.column-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.column-grid {
|
||
display: grid;
|
||
grid-template-columns: 1fr;
|
||
gap: 8px;
|
||
max-height: 280px;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.empty-column-state {
|
||
padding: 16px 12px;
|
||
border-radius: 8px;
|
||
border: 1px dashed #3e4a62;
|
||
background: #222b3d;
|
||
color: #7f8790;
|
||
font-size: 12px;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.column-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 10px 12px;
|
||
border-radius: 8px;
|
||
border: 1px solid #323e58;
|
||
background: #222b3d;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
font-size: 13px;
|
||
color: #d7d7d7;
|
||
}
|
||
|
||
.column-item:hover,
|
||
.column-item.active {
|
||
border-color: #3b6f98;
|
||
background: #26313a;
|
||
}
|
||
|
||
.column-item input {
|
||
margin: 0;
|
||
}
|
||
|
||
.column-item span {
|
||
word-break: break-all;
|
||
}
|
||
|
||
.radio-item {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
cursor: pointer;
|
||
padding: 10px 12px;
|
||
border-radius: 8px;
|
||
background: #242424;
|
||
border: 1px solid #2e3a52;
|
||
margin-bottom: 8px;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.radio-item:hover,
|
||
.radio-item.active {
|
||
background: #242424;
|
||
border-color: #3e4a62;
|
||
}
|
||
|
||
.radio-item input {
|
||
margin-top: 3px;
|
||
}
|
||
|
||
.label {
|
||
font-weight: 500;
|
||
color: #f5f8fc;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.desc {
|
||
font-size: 12px;
|
||
color: #5e6878;
|
||
margin-top: 2px;
|
||
line-height: 1.5;
|
||
font-weight: 400;
|
||
}
|
||
|
||
.split-input-card {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
padding: 14px 16px;
|
||
border-radius: 10px;
|
||
border: 1px solid #323e58;
|
||
background: #242424;
|
||
}
|
||
|
||
.split-number-input {
|
||
width: 100%;
|
||
padding: 12px 14px;
|
||
border-radius: 8px;
|
||
border: 1px solid #3e4a62;
|
||
background: #1b1b1b;
|
||
color: #f5f8fc;
|
||
font-size: 22px;
|
||
font-weight: 700;
|
||
line-height: 1.2;
|
||
outline: none;
|
||
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
|
||
}
|
||
|
||
.split-number-input:focus {
|
||
border-color: #3498db;
|
||
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.18);
|
||
background: #20252b;
|
||
}
|
||
|
||
.split-number-input::placeholder {
|
||
color: #708090;
|
||
font-size: 14px;
|
||
font-weight: 400;
|
||
}
|
||
|
||
.run-row {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 10px 12px;
|
||
margin-top: 16px;
|
||
}
|
||
|
||
.btn-run {
|
||
padding: 10px 22px;
|
||
background: #3498db;
|
||
color: #f5f8fc;
|
||
border-radius: 8px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.btn-run:hover {
|
||
background: #2980b9;
|
||
}
|
||
|
||
.btn-run:disabled {
|
||
background: #555;
|
||
color: #a0acbe;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.loading-msg {
|
||
color: #3498db;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.files {
|
||
font-size: 12px;
|
||
color: #5e6878;
|
||
margin-top: 4px;
|
||
}
|
||
|
||
.download {
|
||
padding: 6px 10px;
|
||
border-radius: 6px;
|
||
font-size: 12px;
|
||
background: rgba(52, 152, 219, 0.18);
|
||
color: #69b6ff;
|
||
}
|
||
|
||
.download:hover {
|
||
background: rgba(52, 152, 219, 0.28);
|
||
}
|
||
|
||
.btn-delete {
|
||
padding: 6px 10px;
|
||
border-radius: 6px;
|
||
font-size: 12px;
|
||
background: rgba(231, 76, 60, 0.12);
|
||
color: #ff8f8f;
|
||
}
|
||
|
||
.btn-delete:hover {
|
||
background: rgba(231, 76, 60, 0.22);
|
||
}
|
||
|
||
@media (max-width: 1100px) {
|
||
.main-content {
|
||
flex-direction: column;
|
||
height: auto;
|
||
}
|
||
|
||
.left-panel {
|
||
width: 100%;
|
||
border-right: none;
|
||
border-bottom: 1px solid #2e3a52;
|
||
}
|
||
|
||
.right-panel {
|
||
min-height: 420px;
|
||
}
|
||
}
|
||
</style>
|