feat(electron-shell): 新增插件目录选择接口并将版本升至 1.10.0
This commit is contained in:
@@ -1,140 +1,133 @@
|
||||
<template>
|
||||
<div class="page">
|
||||
<!-- 未登录 / 结果横幅 -->
|
||||
<transition name="fade-slide">
|
||||
<el-alert v-if="needLogin" type="warning" :closable="false" show-icon title="未登录:请先在壳子(工作台)登录统一账户,再刷新本界面" />
|
||||
<el-alert v-else-if="banner" :type="banner.type" :closable="true" show-icon @close="banner = null">
|
||||
<template #title>{{ banner.text }}</template>
|
||||
</el-alert>
|
||||
</transition>
|
||||
<!-- 方案工具条:方案供「定时任务」按 config_id 引用,到点自动取方案最新参数 -->
|
||||
<div class="toolbar">
|
||||
<span class="spacer" />
|
||||
<span class="saved" :class="{ 'is-idle': !lastSavedAt }">
|
||||
<i />{{ lastSavedAt ? '已保存 ' + lastSavedAt : '尚未保存' }}
|
||||
</span>
|
||||
<el-select v-model="schemeSel" class="scheme-sel" size="small" :disabled="running"
|
||||
placeholder="当前配置(自动保存)" @change="onSchemeChange">
|
||||
<el-option v-for="o in schemeOptions" :key="o.value" :label="o.label" :value="o.value" />
|
||||
</el-select>
|
||||
<el-button size="small" :disabled="running" @click="saveSchemeAs">存为方案</el-button>
|
||||
<el-button size="small" text type="danger" :disabled="running || !schemeSel"
|
||||
@click="removeScheme">删除</el-button>
|
||||
</div>
|
||||
|
||||
<!-- 执行配置(头部含多配置方案:方案供「定时任务」引用,到点自动取方案最新参数) -->
|
||||
<el-card shadow="never" class="panel">
|
||||
<template #header>
|
||||
<div class="panel-head">
|
||||
<div class="panel-title">
|
||||
<span class="title-ico">
|
||||
<svg viewBox="0 0 24 24" width="17" height="17" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
|
||||
<polyline points="7 10 12 15 17 10" />
|
||||
<line x1="12" y1="15" x2="12" y2="3" />
|
||||
</svg>
|
||||
</span>
|
||||
<div class="title-txts">
|
||||
<div class="title-txt">执行配置</div>
|
||||
<div class="title-sub">勾选导出内容,参数自动保存到本机,方案供定时任务到点引用</div>
|
||||
<!-- 内联提示 -->
|
||||
<div v-if="needLogin" class="notice is-warn">
|
||||
<span class="n-ico">!</span>
|
||||
<span>未登录:请先在壳子(工作台)登录统一账户,再刷新本界面</span>
|
||||
</div>
|
||||
<div v-else-if="notice" class="notice" :class="'is-' + notice.type">
|
||||
<span class="n-ico">{{ notice.type === 'ok' ? '✓' : (notice.type === 'error' ? '✕' : '·') }}</span>
|
||||
<span>{{ notice.text }}</span>
|
||||
</div>
|
||||
|
||||
<!-- 01 导出内容 -->
|
||||
<section class="sec">
|
||||
<div class="sec-head">
|
||||
<span class="sec-badge">01</span>
|
||||
<span class="sec-name">导出内容</span>
|
||||
<span class="sec-line" />
|
||||
</div>
|
||||
<div class="sec-body">
|
||||
<div class="grp-tools">
|
||||
<span class="gt-count">已选 <b>{{ form.reports.length }}</b> / {{ ALL_KEYS.length }} 项</span>
|
||||
<span class="spacer" />
|
||||
<el-button size="small" :disabled="running" @click="selectAll">全选</el-button>
|
||||
<el-button size="small" text :disabled="running || !form.reports.length"
|
||||
@click="clearAll">清空</el-button>
|
||||
</div>
|
||||
<div class="groups">
|
||||
<div v-for="g in GROUPED" :key="g.name" class="grp">
|
||||
<div class="grp-head">
|
||||
<el-checkbox :model-value="g.all" :indeterminate="g.some" :disabled="running"
|
||||
@change="toggleGroup(g)">{{ g.name }}</el-checkbox>
|
||||
<span class="grp-count" :class="{ full: g.all }">{{ g.picked }}/{{ g.items.length }}</span>
|
||||
</div>
|
||||
<div class="grp-body">
|
||||
<el-checkbox v-for="it in g.items" :key="it.key" :model-value="form.reports.includes(it.key)"
|
||||
:disabled="running" class="rep-item" @change="toggleItem(it.key)">
|
||||
<span class="rep-name">{{ it.name }}</span>
|
||||
<el-tooltip :content="it.tag" placement="top" :show-after="150">
|
||||
<el-icon class="rep-info"><InfoFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
</el-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
<div class="head-tools">
|
||||
<span v-if="lastSavedAt" class="saved">
|
||||
<i class="dot" />已保存 {{ lastSavedAt }}
|
||||
</span>
|
||||
<el-select v-model="schemeSel" class="scheme-sel" size="small" :disabled="running" @change="onSchemeChange">
|
||||
<el-option v-for="o in schemeOptions" :key="o.value" :label="o.label" :value="o.value" />
|
||||
</el-select>
|
||||
<el-button size="small" :disabled="running" @click="saveSchemeAs">存为方案</el-button>
|
||||
<el-button size="small" text type="danger" :disabled="running || !schemeSel"
|
||||
@click="removeScheme">删除</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<div class="tip">
|
||||
勾选项由后端按各自规则自动计算日期区间并导出;<b>截图</b>=储值卡余额整页,<b>储值余额</b>=当天快照(无日期筛选)。
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<el-form label-position="top">
|
||||
<!-- 执行说明 -->
|
||||
<section class="sec">
|
||||
<div class="sec-head">
|
||||
<span class="sec-badge">01</span>
|
||||
<span class="sec-name">执行说明</span>
|
||||
<span class="sec-line" />
|
||||
</div>
|
||||
<div class="flow-desc">
|
||||
<div class="flow-item"><span class="flow-no">1</span>登录态预检:约 30 分钟内免扫码;失效时自动打开浏览器,钉钉扫码一次后全程复用</div>
|
||||
<div class="flow-item"><span class="flow-no">2</span>「报表统计/储值卡余额」整页截图 → 储值卡余额-YYYYMMDD.png</div>
|
||||
<div class="flow-item"><span class="flow-no">3</span>按勾选的报表自动计算日期区间,逐张导出 xlsx(礼品卡订单因接口限制跨度 ≤31 天,按月拆分)</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 导出内容(按业务分组) -->
|
||||
<section class="sec">
|
||||
<div class="sec-head">
|
||||
<span class="sec-badge">02</span>
|
||||
<span class="sec-name">导出内容</span>
|
||||
<span class="sec-line" />
|
||||
<span class="sec-count">已选 <b>{{ form.reports.length }}</b> / {{ ALL_KEYS.length }} 项</span>
|
||||
<el-button size="small" text type="primary" :disabled="running" @click="selectAll">全选</el-button>
|
||||
<el-button size="small" text :disabled="running || !form.reports.length" @click="clearAll">清空</el-button>
|
||||
</div>
|
||||
<div class="groups">
|
||||
<div v-for="g in GROUPED" :key="g.name" class="grp">
|
||||
<div class="grp-head">
|
||||
<el-checkbox :model-value="g.all" :indeterminate="g.some" :disabled="running"
|
||||
@change="toggleGroup(g)">{{ g.name }}</el-checkbox>
|
||||
<span class="grp-count" :class="{ full: g.all }">{{ g.picked }}/{{ g.items.length }}</span>
|
||||
</div>
|
||||
<div class="grp-body">
|
||||
<el-checkbox v-for="it in g.items" :key="it.key" :model-value="form.reports.includes(it.key)"
|
||||
:disabled="running" class="rep-item" @change="toggleItem(it.key)">
|
||||
<span class="rep-name">{{ it.name }}</span>
|
||||
<el-tooltip :content="it.tag" placement="top" :show-after="150">
|
||||
<el-icon class="rep-info"><InfoFilled /></el-icon>
|
||||
</el-tooltip>
|
||||
</el-checkbox>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tip">日期区间由各报表规则自动计算:截图=当天;前一天;昨日~今日;昨日;本月1日~今日;本月1日~昨日;上月完整;近3个自然月(礼品卡订单按月拆分)</div>
|
||||
</section>
|
||||
|
||||
<!-- 执行设置 -->
|
||||
<section class="sec">
|
||||
<div class="sec-head">
|
||||
<span class="sec-badge">03</span>
|
||||
<span class="sec-name">执行设置</span>
|
||||
<span class="sec-line" />
|
||||
</div>
|
||||
<!-- 02 执行设置 -->
|
||||
<section class="sec">
|
||||
<div class="sec-head">
|
||||
<span class="sec-badge">02</span>
|
||||
<span class="sec-name">执行设置</span>
|
||||
<span class="sec-line" />
|
||||
</div>
|
||||
<div class="sec-body">
|
||||
<el-form label-position="top">
|
||||
<div class="grid">
|
||||
<el-form-item label="保存目录">
|
||||
<el-input v-model="form.save_dir" :disabled="running" clearable
|
||||
placeholder="留空 = D:\资料\财务\CRM数据导出" />
|
||||
<div class="dir-ctrl">
|
||||
<el-input v-model="form.save_dir" class="dir-input" :disabled="running" clearable
|
||||
placeholder="D:\资料\财务\CRM数据导出" />
|
||||
<el-button class="dir-btn" :disabled="running || picking" :loading="picking"
|
||||
@click="pickDir">选择</el-button>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="调试日志">
|
||||
<el-switch v-model="form.debug_mode" :disabled="running" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="tip">截图与全部 xlsx 统一输出到保存目录;「调试日志」开启后输出完整调试信息(默认关闭)</div>
|
||||
</section>
|
||||
|
||||
<!-- 操作 -->
|
||||
<div class="actions">
|
||||
<el-button type="primary" size="large" class="btn-run" :loading="running" @click="run">
|
||||
{{ running ? '执行中 ' + progress + '%' : '一键执行' }}
|
||||
</el-button>
|
||||
<el-button v-if="running" type="danger" size="large" plain :loading="stopping"
|
||||
@click="forceStop">强制停止</el-button>
|
||||
<span class="spacer" />
|
||||
<el-button size="large" :disabled="running" @click="saveNow(true)">保存配置</el-button>
|
||||
<el-button size="large" text :disabled="running" @click="resetDefaults">恢复默认</el-button>
|
||||
</div>
|
||||
</el-form>
|
||||
</el-card>
|
||||
|
||||
<!-- 运行状态 -->
|
||||
<transition name="fade-slide">
|
||||
<div v-if="running" class="status">
|
||||
<el-progress :percentage="progress" :stroke-width="10" :show-text="false" class="status-bar" />
|
||||
<div class="status-row">
|
||||
<span class="pulse" />
|
||||
<span class="status-txt">正在执行,日志与进度实时显示在工作台下方【运行日志】区</span>
|
||||
<span class="status-pct">{{ progress }}%</span>
|
||||
</div>
|
||||
<div class="tip">
|
||||
截图与全部 xlsx 统一输出到该目录(留空 = 默认目录);<b>调试日志</b>开启后输出完整调试信息,默认关闭。
|
||||
</div>
|
||||
</el-form>
|
||||
</div>
|
||||
</transition>
|
||||
</section>
|
||||
|
||||
<!-- 流程说明:大段说明收进折叠区 -->
|
||||
<details class="help">
|
||||
<summary><span>流程说明</span><span class="h-arrow">▾</span></summary>
|
||||
<div class="help-body">
|
||||
<div class="hb-line"><b>① 登录态预检</b>:约 30 分钟内免扫码;失效时自动打开浏览器,钉钉扫码一次后全程复用。</div>
|
||||
<div class="hb-line"><b>② 截图</b>:进入「报表统计 / 储值卡余额」整页截图 → <b>储值卡余额-YYYYMMDD.png</b>。</div>
|
||||
<div class="hb-line"><b>③ 报表导出</b>:按勾选项逐张导出 xlsx;礼品卡订单因接口限制跨度 ≤31 天,按月拆分。</div>
|
||||
<div class="hb-line"><b>日期规则</b>:当天快照(储值余额)/ 前一天 / 昨日~今日 / 昨日 / 本月1日~今日 / 本月1日~昨日 / 上月完整 / 近3个自然月。</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<!-- 操作区 -->
|
||||
<div class="actions">
|
||||
<el-button type="primary" class="btn-run" :loading="running" @click="run">
|
||||
{{ running ? '执行中 ' + progress + '%' : '一键执行' }}
|
||||
</el-button>
|
||||
<el-button v-if="running" type="danger" plain :loading="stopping"
|
||||
@click="forceStop">强制停止</el-button>
|
||||
<span class="spacer" />
|
||||
<el-button :disabled="running" @click="restoreLastFields">恢复上次参数</el-button>
|
||||
<el-button :disabled="running" @click="saveNow(true)">保存配置</el-button>
|
||||
<el-button text :disabled="running" @click="resetDefaults">恢复默认</el-button>
|
||||
</div>
|
||||
|
||||
<!-- 运行态:只留一行文字,进度与日志由壳子展示 -->
|
||||
<div v-if="running" class="runline">
|
||||
<span class="pulse" />
|
||||
<span>正在执行,日志与进度实时显示在工作台下方「运行日志」区</span>
|
||||
<span class="pct">{{ progress }}%</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed } from 'vue'
|
||||
import { computed, ref } from 'vue'
|
||||
import { usePluginUI } from './usePluginUI'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { InfoFilled } from '@element-plus/icons-vue'
|
||||
@@ -146,10 +139,14 @@ const ITEMS = [
|
||||
{ key: 'report/cashPay/export#prev', name: '现金支付', tag: '前一天', group: '支付数据' },
|
||||
{ key: 'report/thirdPayShop/export#prev', name: '第三方支付(门店)', tag: '前一天', group: '支付数据' },
|
||||
{ key: 'report/unionPay/export#prev', name: '支付数据', tag: '前一天', group: '支付数据' },
|
||||
{ key: 'report/orderSubjectAddition/export#prev', name: '订单附加属性统计', tag: '前一天', group: '支付数据' },
|
||||
{ key: 'report/groupData/export#prev_today', name: '团购数据', tag: '昨日~今日', group: '支付数据' },
|
||||
{ key: 'report/taobaoTicket/export#prev_today', name: '淘宝订单数据', tag: '昨日~今日', group: '支付数据' },
|
||||
{ key: 'report/comprehensivePerformance/export#month_to_today', name: '技师综合业绩', tag: '本月1日~今日', group: '业绩与核销' },
|
||||
{ key: 'report/weimeng/exportValidate#prev_prev', name: '微盟核销统计', tag: '昨日', group: '业绩与核销' },
|
||||
{ key: 'report/debitCard/memberBalanceExport#today', name: '储值余额', tag: '当天快照·无日期筛选', group: '储值卡与霸王餐' },
|
||||
{ key: 'report/debitCard/depositExport#month_to_today', name: '储值记录', tag: '本月1日~今日·小程序储值', group: '储值卡与霸王餐' },
|
||||
{ key: 'report/debitCard/balanceAccountBookExport#month_to_today', name: '储值台账', tag: '本月1日~今日·小程序储值', group: '储值卡与霸王餐' },
|
||||
{ key: 'report/debitCardConsume/export#month1_to_prev', name: '储值卡消费', tag: '本月1日~昨日', group: '储值卡与霸王餐' },
|
||||
{ key: 'report/depositData/export#month1_to_prev', name: '储值卡线上充值', tag: '本月1日~昨日·渠道=管理端', group: '储值卡与霸王餐' },
|
||||
{ key: 'report/overlordOrderDeposit/export#month1_to_prev', name: '霸王餐充值明细', tag: '本月1日~昨日', group: '储值卡与霸王餐' },
|
||||
@@ -164,15 +161,16 @@ const ITEMS = [
|
||||
const ALL_KEYS = ITEMS.map((i) => i.key)
|
||||
const GROUPS = [...new Set(ITEMS.map((i) => i.group))]
|
||||
|
||||
// DEFAULTS 与 plugin.json.fields 的 default 逐项一致
|
||||
const DEFAULTS = () => ({
|
||||
reports: [...ALL_KEYS],
|
||||
save_dir: '',
|
||||
save_dir: 'D:\\资料\\财务\\CRM数据导出',
|
||||
debug_mode: false,
|
||||
})
|
||||
|
||||
const {
|
||||
form, needLogin, banner, lastSavedAt, running, progress, stopping,
|
||||
saveNow, resetDefaults,
|
||||
form, needLogin, notice, lastSavedAt, running, progress, stopping,
|
||||
saveNow, resetDefaults, restoreLastFields,
|
||||
schemeSel, schemeOptions, onSchemeChange, saveSchemeAs, removeScheme,
|
||||
run, forceStop,
|
||||
} = usePluginUI({
|
||||
@@ -223,413 +221,108 @@ function selectAll() {
|
||||
function clearAll() {
|
||||
form.reports = []
|
||||
}
|
||||
|
||||
// 调用壳子本机接口打开原生「选择文件夹」对话框(壳子 /api/dialog/directory,仅返回路径)
|
||||
const picking = ref(false)
|
||||
async function pickDir() {
|
||||
picking.value = true
|
||||
try {
|
||||
const r = await fetch('/api/dialog/directory', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ title: '选择保存目录', current: form.save_dir || '' }),
|
||||
})
|
||||
const d = await r.json().catch(() => ({}))
|
||||
if (!r.ok) throw new Error(d.detail || d.error || ('HTTP ' + r.status))
|
||||
if (d.path) form.save_dir = d.path
|
||||
} catch (e) {
|
||||
ElMessage.warning('打开文件夹选择失败:' + e.message)
|
||||
} finally {
|
||||
picking.value = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* ---------- 页面骨架 ---------- */
|
||||
.page {
|
||||
width: 100%;
|
||||
padding: 6px 4px 28px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
/* 插件差异样式:只用壳子 token,不写字面色值;左右内边距由壳子提供 */
|
||||
|
||||
.fade-slide-enter-active,
|
||||
.fade-slide-leave-active {
|
||||
transition: opacity 0.25s ease, transform 0.25s ease;
|
||||
}
|
||||
|
||||
.fade-slide-enter-from,
|
||||
.fade-slide-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(-6px);
|
||||
}
|
||||
|
||||
/* ---------- 主容器(无边框平铺:外层由壳子 iframe 的边框统一包裹) ---------- */
|
||||
.panel {
|
||||
background: transparent;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.panel :deep(.el-card__header) {
|
||||
padding: 6px 2px 16px;
|
||||
border-bottom: 1px solid var(--el-border-color-lighter);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.panel :deep(.el-card__body) {
|
||||
padding: 16px 2px 2px;
|
||||
}
|
||||
|
||||
/* ---------- 卡片头部 ---------- */
|
||||
.panel-head {
|
||||
/* ---------- 导出内容:顶部计数 + 按钮 ---------- */
|
||||
.grp-tools {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
margin-bottom: var(--space-2-5);
|
||||
}
|
||||
.grp-tools .spacer { flex: 1; }
|
||||
.gt-count { font: 400 11.5px/1 var(--f-cn); color: var(--t3); }
|
||||
.gt-count b { font: 600 12px/1 var(--f-num); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
|
||||
|
||||
.panel-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.title-ico {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--el-color-primary);
|
||||
background: linear-gradient(135deg, var(--el-color-primary-light-8), var(--el-color-primary-light-6));
|
||||
box-shadow: inset 0 0 0 1px var(--el-color-primary-light-5);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.title-txts {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.title-txt {
|
||||
font-weight: 700;
|
||||
font-size: 15px;
|
||||
line-height: 1.2;
|
||||
color: var(--el-text-color-primary);
|
||||
}
|
||||
|
||||
.title-sub {
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-secondary);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.head-tools {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.scheme-sel {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.saved {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
color: #2ea44f;
|
||||
background: rgba(46, 164, 79, 0.1);
|
||||
border: 1px solid rgba(46, 164, 79, 0.25);
|
||||
padding: 2px 10px;
|
||||
border-radius: 999px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.saved .dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #2ea44f;
|
||||
}
|
||||
|
||||
/* ---------- 表单分区 ---------- */
|
||||
.sec {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.sec:last-of-type {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.sec-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.sec-badge {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 7px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--el-color-primary);
|
||||
background: var(--el-color-primary-light-9);
|
||||
border: 1px solid var(--el-color-primary-light-7);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sec-name {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--el-text-color-primary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sec-line {
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, var(--el-border-color-lighter), transparent);
|
||||
}
|
||||
|
||||
.sec-count {
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-secondary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sec-count b {
|
||||
color: var(--el-color-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* 执行说明 */
|
||||
.flow-desc {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.flow-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
font-size: 13px;
|
||||
color: var(--el-text-color-regular);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.flow-no {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 6px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--el-color-primary);
|
||||
background: var(--el-color-primary-light-9);
|
||||
border: 1px solid var(--el-color-primary-light-7);
|
||||
flex-shrink: 0;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* ---------- 导出内容分组 ---------- */
|
||||
/* ---------- 分组块:浅灰底 + 描边,避免白卡叠白卡 ---------- */
|
||||
.groups {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
|
||||
gap: 10px;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: var(--space-2-5);
|
||||
}
|
||||
|
||||
.grp {
|
||||
border: 1px solid var(--el-border-color-lighter);
|
||||
border-radius: 10px;
|
||||
padding: 10px 14px 12px;
|
||||
background: var(--el-fill-color-blank);
|
||||
transition: border-color 0.2s;
|
||||
background: var(--subtle);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--r-field);
|
||||
padding: 8px 12px 10px;
|
||||
}
|
||||
|
||||
.grp:hover {
|
||||
border-color: var(--el-color-primary-light-5);
|
||||
}
|
||||
|
||||
.grp-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
gap: var(--space-2);
|
||||
padding-bottom: 6px;
|
||||
margin-bottom: 4px;
|
||||
border-bottom: 1px dashed var(--el-border-color-lighter);
|
||||
border-bottom: 1px solid var(--line-soft);
|
||||
}
|
||||
|
||||
.grp-head :deep(.el-checkbox__label) {
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
font: 600 12.5px/18px var(--f-cn);
|
||||
color: var(--t1);
|
||||
}
|
||||
|
||||
.grp-count {
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-secondary);
|
||||
font: 500 11px/1 var(--f-num);
|
||||
color: var(--t3);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--r-pill);
|
||||
padding: 4px 8px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
background: var(--el-fill-color);
|
||||
border-radius: 999px;
|
||||
padding: 1px 8px;
|
||||
}
|
||||
|
||||
.grp-count.full {
|
||||
color: var(--el-color-success);
|
||||
background: rgba(46, 164, 79, 0.1);
|
||||
color: var(--good-ink);
|
||||
background: var(--good-soft);
|
||||
border-color: var(--good-line);
|
||||
}
|
||||
|
||||
.grp-body {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
gap: 2px 8px;
|
||||
margin-top: 4px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.grp-body :deep(.el-checkbox) {
|
||||
margin-right: 0;
|
||||
height: 26px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.grp-body :deep(.el-checkbox__label) {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 12.5px;
|
||||
color: var(--el-text-color-primary);
|
||||
padding-left: 4px;
|
||||
font: 400 12px/18px var(--f-cn);
|
||||
color: var(--t2);
|
||||
}
|
||||
|
||||
.rep-info {
|
||||
font-size: 13px;
|
||||
color: var(--el-text-color-placeholder);
|
||||
cursor: help;
|
||||
flex-shrink: 0;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.rep-info:hover {
|
||||
color: var(--el-color-primary);
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(280px, 1fr) auto;
|
||||
gap: 0 18px;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.grid :deep(.el-form-item) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.grid :deep(.el-form-item__label) {
|
||||
padding-bottom: 6px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.tip {
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
color: var(--el-text-color-secondary);
|
||||
line-height: 1.6;
|
||||
margin-top: 6px;
|
||||
color: var(--t4);
|
||||
cursor: help;
|
||||
transition: color var(--dur);
|
||||
}
|
||||
.rep-info:hover { color: var(--brand); }
|
||||
|
||||
/* ---------- 操作区 ---------- */
|
||||
.actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
border-top: 1px dashed var(--el-border-color);
|
||||
padding-top: 18px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.btn-run {
|
||||
min-width: 150px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
letter-spacing: 2px;
|
||||
background: linear-gradient(135deg, var(--el-color-primary), var(--el-color-primary-dark-2));
|
||||
box-shadow: 0 6px 16px var(--el-color-primary-light-6);
|
||||
transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
|
||||
}
|
||||
|
||||
.btn-run:hover {
|
||||
filter: brightness(1.06);
|
||||
box-shadow: 0 8px 20px var(--el-color-primary-light-5);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn-run:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn-run.is-loading {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* ---------- 运行状态 ---------- */
|
||||
.status {
|
||||
padding: 14px 16px;
|
||||
border-radius: 12px;
|
||||
background: linear-gradient(135deg, var(--el-color-primary-light-9), var(--el-color-primary-light-8));
|
||||
border: 1px solid var(--el-color-primary-light-6);
|
||||
box-shadow: 0 2px 10px var(--el-color-primary-light-7);
|
||||
}
|
||||
|
||||
.status-bar :deep(.el-progress-bar__outer) {
|
||||
background: rgba(64, 158, 255, 0.15);
|
||||
}
|
||||
|
||||
.status-bar :deep(.el-progress-bar__inner) {
|
||||
background: linear-gradient(90deg, var(--el-color-primary), var(--el-color-primary-dark-2));
|
||||
}
|
||||
|
||||
.status-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.pulse {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--el-color-primary);
|
||||
animation: pulse 1.4s ease-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 var(--el-color-primary-light-6);
|
||||
}
|
||||
|
||||
70% {
|
||||
box-shadow: 0 0 0 8px transparent;
|
||||
}
|
||||
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.status-txt {
|
||||
flex: 1;
|
||||
font-size: 12.5px;
|
||||
color: var(--el-text-color-regular);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.status-pct {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--el-color-primary);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
/* ---------- 执行设置:目录输入框 + 选择按钮(同一行两列) ---------- */
|
||||
.dir-ctrl { display: flex; align-items: center; gap: var(--space-2); width: 100%; }
|
||||
.dir-ctrl .dir-input { flex: 1 1 auto; min-width: 0; }
|
||||
.dir-ctrl .dir-btn { flex: 0 0 auto; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user