feat: initial import (exclude templates and runtime temp files)
This commit is contained in:
47
app/static/app.js
Normal file
47
app/static/app.js
Normal file
@@ -0,0 +1,47 @@
|
||||
// Bootstrap loader for legacy /app.js entry.
|
||||
(function bootstrapXibaoWeb() {
|
||||
if (window.__XIBAO_BOOTSTRAPPING__) {
|
||||
return;
|
||||
}
|
||||
if (window.__XIBAO_MAIN_READY__) {
|
||||
return;
|
||||
}
|
||||
window.__XIBAO_BOOTSTRAPPING__ = true;
|
||||
|
||||
const currentSrc = String(document.currentScript?.src || "");
|
||||
const currentUrl = currentSrc ? new URL(currentSrc, window.location.href) : null;
|
||||
const currentPath = currentUrl ? String(currentUrl.pathname || "") : "";
|
||||
let basePath = "";
|
||||
if (currentPath.endsWith("/app.js")) {
|
||||
basePath = currentPath.slice(0, -"/app.js".length);
|
||||
}
|
||||
if (basePath === "/") {
|
||||
basePath = "";
|
||||
}
|
||||
window.__XIBAO_BASE_PATH__ = basePath;
|
||||
const version = currentUrl ? currentUrl.searchParams.get("v") : "";
|
||||
const qs = version ? `?v=${encodeURIComponent(version)}` : "";
|
||||
|
||||
function loadScript(src) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const s = document.createElement("script");
|
||||
s.src = src;
|
||||
s.async = false;
|
||||
s.onload = () => resolve();
|
||||
s.onerror = () => reject(new Error(`加载失败: ${src}`));
|
||||
document.head.appendChild(s);
|
||||
});
|
||||
}
|
||||
|
||||
const scriptUrl = (path) => `${basePath}${path}`;
|
||||
|
||||
loadScript(scriptUrl(`/js/core/state.js${qs}`))
|
||||
.then(() => loadScript(scriptUrl(`/js/main.js${qs}`)))
|
||||
.catch((err) => {
|
||||
// Keep UI feedback simple; fallback to console for non-blocking visibility.
|
||||
console.error("[xibao] frontend bootstrap failed:", err);
|
||||
})
|
||||
.finally(() => {
|
||||
window.__XIBAO_BOOTSTRAPPING__ = false;
|
||||
});
|
||||
})();
|
||||
245
app/static/index.html
Normal file
245
app/static/index.html
Normal file
@@ -0,0 +1,245 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>喜报处理初始版</title>
|
||||
<link rel="stylesheet" href="./styles.css?v=20260227.28" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg-shape bg-shape-a"></div>
|
||||
<div class="bg-shape bg-shape-b"></div>
|
||||
|
||||
<main class="container">
|
||||
<section class="card composer-card">
|
||||
<div class="section-head">
|
||||
<h2>输入接龙文本</h2>
|
||||
<span class="muted">粘贴后可直接解析或生成</span>
|
||||
</div>
|
||||
<textarea id="raw-text" placeholder="#接龙
|
||||
1、营江路张三30万一年期定期他行挖转
|
||||
2、中心所李四50万保险揽收现金
|
||||
3、营江路所王五20万5年交礼金
|
||||
4、潇水南路保险2万"></textarea>
|
||||
<div class="row">
|
||||
<button id="paste-btn" class="secondary">粘贴文本</button>
|
||||
<button id="generate-btn">生成</button>
|
||||
<button id="parse-btn" class="secondary">仅解析预览</button>
|
||||
<button id="force-clear-btn" class="danger">强制清理截图</button>
|
||||
<button id="clear-btn" class="danger">清空历史</button>
|
||||
</div>
|
||||
<div id="progress-wrap" class="progress-wrap hidden">
|
||||
<div class="progress-head">
|
||||
<span id="progress-stage">等待开始</span>
|
||||
<span id="progress-percent">0%</span>
|
||||
</div>
|
||||
<div class="progress-bar">
|
||||
<div id="progress-fill" class="progress-fill"></div>
|
||||
</div>
|
||||
<div id="progress-detail" class="muted progress-detail"></div>
|
||||
</div>
|
||||
<div id="msg" class="msg"></div>
|
||||
</section>
|
||||
|
||||
<section class="card metrics metrics-bar">
|
||||
<div class="metric"><span>输入行</span><strong id="m-input">0</strong></div>
|
||||
<div class="metric"><span>有效解析</span><strong id="m-parsed">0</strong></div>
|
||||
<div class="metric"><span>新增</span><strong id="m-new">0</strong></div>
|
||||
<div class="metric"><span>重复</span><strong id="m-dup">0</strong></div>
|
||||
<div class="metric"><span>跳过</span><strong id="m-skip">0</strong></div>
|
||||
</section>
|
||||
|
||||
<div class="workspace">
|
||||
<section class="main-col">
|
||||
<section class="card stage-card" id="preview-card">
|
||||
<div class="section-head">
|
||||
<h2>预览图</h2>
|
||||
<span id="preview-note" class="muted">生成后显示</span>
|
||||
</div>
|
||||
<div id="preview-grid" class="preview-grid"></div>
|
||||
</section>
|
||||
|
||||
<section class="card stage-card" id="new-card">
|
||||
<div class="section-head">
|
||||
<h2>新增记录</h2>
|
||||
<span class="muted">自动识别后可手动修正或标识</span>
|
||||
</div>
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>网点</th>
|
||||
<th>金额</th>
|
||||
<th>类型</th>
|
||||
<th>页面</th>
|
||||
<th>状态</th>
|
||||
<th>输出文件</th>
|
||||
<th>标记</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="new-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</section>
|
||||
|
||||
<aside class="side-col">
|
||||
<details class="card fold-card" id="dup-panel">
|
||||
<summary>重复记录(可展开)</summary>
|
||||
<div class="fold-body">
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>网点</th>
|
||||
<th>金额</th>
|
||||
<th>类型</th>
|
||||
<th>状态</th>
|
||||
<th>原因</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="dup-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="card fold-card" id="skip-panel">
|
||||
<summary>跳过明细(可展开)</summary>
|
||||
<div class="fold-body">
|
||||
<ul id="skip-list" class="skip-list"></ul>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="card fold-card" id="advanced-panel">
|
||||
<summary>高级设置(可选)</summary>
|
||||
<div class="fold-body">
|
||||
<div class="form-grid">
|
||||
<label>
|
||||
模板文件路径(可留空走配置)
|
||||
<input id="template-file" placeholder="/home/yuyx/黄金三十天喜报模版(余额、保险、理财)(1).pptx" />
|
||||
</label>
|
||||
<label>
|
||||
输出目录(可留空走配置)
|
||||
<input id="output-dir" placeholder="/home/yuyx/xibao_web_initial/output" />
|
||||
</label>
|
||||
</div>
|
||||
<div id="config-summary" class="muted config-summary">加载中...</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="card fold-card" id="history-panel">
|
||||
<summary>历史记录(刷新后仍可见)</summary>
|
||||
<div class="fold-body">
|
||||
<div class="section-head">
|
||||
<span id="history-note" class="muted">加载中...</span>
|
||||
<button id="history-refresh-btn" class="secondary">刷新历史</button>
|
||||
</div>
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>时间</th>
|
||||
<th>网点</th>
|
||||
<th>金额</th>
|
||||
<th>类型</th>
|
||||
<th>状态</th>
|
||||
<th>原始行</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="history-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="card fold-card" id="issue-panel">
|
||||
<summary>已标识错误(可编辑/删除)</summary>
|
||||
<div class="fold-body">
|
||||
<div class="section-head">
|
||||
<span id="issue-note" class="muted">加载中...</span>
|
||||
<button id="issue-refresh-btn" class="secondary">刷新标识</button>
|
||||
</div>
|
||||
<div class="table-wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>时间</th>
|
||||
<th>类型</th>
|
||||
<th>原始行</th>
|
||||
<th>备注</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="issue-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</aside>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div id="insurance-modal" class="modal hidden">
|
||||
<div class="modal-card">
|
||||
<h3>检测到保险记录</h3>
|
||||
<p>有保险条目未写明年限,请逐条选择期交年限:</p>
|
||||
<div id="insurance-items" class="insurance-list"></div>
|
||||
<div class="row">
|
||||
<button id="insurance-submit">确认并继续生成</button>
|
||||
<button id="insurance-cancel" class="danger">取消</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="correction-modal" class="modal hidden">
|
||||
<div class="modal-card correction-card">
|
||||
<h3>手动修正并重生图</h3>
|
||||
<p>保存后只重生当前这条,并可选择记住规则。</p>
|
||||
<div class="form-grid">
|
||||
<label>
|
||||
网点
|
||||
<input id="corr-branch" />
|
||||
</label>
|
||||
<label>
|
||||
金额(万)
|
||||
<input id="corr-amount" />
|
||||
</label>
|
||||
<label>
|
||||
类型
|
||||
<input id="corr-type" />
|
||||
</label>
|
||||
<label>
|
||||
页面
|
||||
<input id="corr-page" placeholder="page_2" />
|
||||
</label>
|
||||
<label>
|
||||
状态
|
||||
<input id="corr-status" />
|
||||
</label>
|
||||
<label>
|
||||
备注(可选)
|
||||
<input id="corr-note" />
|
||||
</label>
|
||||
</div>
|
||||
<label class="check-line">
|
||||
<input id="corr-remember" type="checkbox" />
|
||||
记住规则(下次自动套用)
|
||||
</label>
|
||||
<label id="corr-keyword-wrap" class="hidden">
|
||||
规则关键词(可留空自动推断)
|
||||
<input id="corr-keyword" placeholder="如:揽收他行" />
|
||||
</label>
|
||||
<div class="row">
|
||||
<button id="corr-submit">保存并生成</button>
|
||||
<button id="corr-cancel" class="danger">取消</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="./app.js?v=20260227.28"></script>
|
||||
</body>
|
||||
</html>
|
||||
10
app/static/js/README.md
Normal file
10
app/static/js/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Frontend JS Layout
|
||||
|
||||
- `core/state.js`
|
||||
- Shared runtime state and constant maps.
|
||||
- `main.js`
|
||||
- Main production script: full feature logic + Vue app section.
|
||||
|
||||
`/static/app.js` is the bootstrap entry. It only loads `core/state.js` and `main.js`.
|
||||
|
||||
> Note: `/opt/xibao-web/app/app.js` is a legacy file and is not served by the site.
|
||||
52
app/static/js/core/state.js
Normal file
52
app/static/js/core/state.js
Normal file
@@ -0,0 +1,52 @@
|
||||
// Frontend core state/constants for xibao web.
|
||||
(function initXibaoCore(globalObj) {
|
||||
if (globalObj.XIBAO_CORE) {
|
||||
return;
|
||||
}
|
||||
|
||||
const state = {
|
||||
lastResult: null,
|
||||
keyFields: ["branch", "amount", "type"],
|
||||
lastGeneratedImages: [],
|
||||
activeProgressToken: "",
|
||||
progressTimer: null,
|
||||
correctionContext: null,
|
||||
imageBlobCache: new Map(),
|
||||
imageBlobPromises: new Map(),
|
||||
toastTimer: null,
|
||||
previewLoadToken: 0,
|
||||
previewLoadConcurrency: 3,
|
||||
previewLoadedCount: 0,
|
||||
imageDeliveryMaxKbps: 300,
|
||||
};
|
||||
|
||||
const SKIP_REASON_MAP = {
|
||||
skip_line_rule: "说明/标题行",
|
||||
branch_not_found: "未识别网点",
|
||||
type_not_found: "未识别产品类型或期限",
|
||||
amount_not_found: "未识别金额",
|
||||
demand_deposit_not_generate: "活期类信息且未写明确期限,默认不生成",
|
||||
};
|
||||
|
||||
const DUP_REASON_MAP = {
|
||||
history_duplicate: "历史重复",
|
||||
input_duplicate: "本次重复",
|
||||
};
|
||||
|
||||
const MARK_TYPE_MAP = {
|
||||
recognition_error: "识别错误",
|
||||
generation_error: "生成错误",
|
||||
};
|
||||
|
||||
const DUP_AUTO_OPEN_LIMIT = 20;
|
||||
const PREVIEW_WARM_LIMIT = 12;
|
||||
|
||||
globalObj.XIBAO_CORE = {
|
||||
state,
|
||||
SKIP_REASON_MAP,
|
||||
DUP_REASON_MAP,
|
||||
MARK_TYPE_MAP,
|
||||
DUP_AUTO_OPEN_LIMIT,
|
||||
PREVIEW_WARM_LIMIT,
|
||||
};
|
||||
})(window);
|
||||
2121
app/static/js/main.js
Normal file
2121
app/static/js/main.js
Normal file
File diff suppressed because it is too large
Load Diff
914
app/static/styles.css
Normal file
914
app/static/styles.css
Normal file
@@ -0,0 +1,914 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");
|
||||
|
||||
:root {
|
||||
--bg-0: #edf3f4;
|
||||
--bg-1: #f8f5ed;
|
||||
--surface: rgba(255, 255, 255, 0.92);
|
||||
--surface-strong: #ffffff;
|
||||
--ink: #182c32;
|
||||
--muted: #61777d;
|
||||
--line: #d4e0e4;
|
||||
--line-strong: #c3d2d8;
|
||||
--brand: #0e766e;
|
||||
--brand-deep: #0a5b56;
|
||||
--accent: #d77c2e;
|
||||
--danger: #c53d34;
|
||||
--focus: rgba(14, 118, 110, 0.22);
|
||||
--shadow-soft: 0 10px 28px rgba(18, 45, 52, 0.1);
|
||||
--shadow-strong: 0 22px 48px rgba(17, 43, 49, 0.16);
|
||||
--radius-xl: 22px;
|
||||
--radius-lg: 16px;
|
||||
--radius-md: 12px;
|
||||
--radius-sm: 10px;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
line-height: 1.55;
|
||||
color: var(--ink);
|
||||
background: radial-gradient(circle at 7% -12%, rgba(14, 118, 110, 0.18) 0, transparent 36%),
|
||||
radial-gradient(circle at 94% 0, rgba(215, 124, 46, 0.18) 0, transparent 32%),
|
||||
linear-gradient(165deg, var(--bg-0), var(--bg-1));
|
||||
}
|
||||
|
||||
.bg-shape {
|
||||
position: fixed;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.bg-shape-a {
|
||||
top: -130px;
|
||||
right: -100px;
|
||||
width: 340px;
|
||||
height: 340px;
|
||||
border-radius: 44% 56% 59% 41%;
|
||||
background: rgba(14, 118, 110, 0.12);
|
||||
animation: float-a 13s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.bg-shape-b {
|
||||
left: -92px;
|
||||
bottom: -92px;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
border-radius: 56% 44% 40% 60%;
|
||||
background: rgba(215, 124, 46, 0.13);
|
||||
animation: float-b 14s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes float-a {
|
||||
0%,
|
||||
100% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
50% {
|
||||
transform: translate(-8px, 12px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes float-b {
|
||||
0%,
|
||||
100% {
|
||||
transform: translate(0, 0);
|
||||
}
|
||||
50% {
|
||||
transform: translate(9px, -11px);
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
max-width: 1460px;
|
||||
margin: 0 auto;
|
||||
padding: 24px 16px 34px;
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.top {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-xl);
|
||||
padding: 20px 22px;
|
||||
background: linear-gradient(118deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 252, 0.82));
|
||||
box-shadow: var(--shadow-soft);
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.top-copy h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(27px, 3.7vw, 42px);
|
||||
letter-spacing: 0.012em;
|
||||
}
|
||||
|
||||
.top-copy p {
|
||||
margin: 8px 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.top-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.top-meta span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 30px;
|
||||
padding: 0 12px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgba(14, 118, 110, 0.24);
|
||||
background: rgba(14, 118, 110, 0.09);
|
||||
color: var(--brand-deep);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.card {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-xl);
|
||||
padding: 16px;
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow-soft);
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.composer-card {
|
||||
border-color: rgba(14, 118, 110, 0.28);
|
||||
box-shadow: var(--shadow-strong);
|
||||
}
|
||||
|
||||
.metrics-bar {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.metrics {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.metric {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 12px;
|
||||
background: var(--surface-strong);
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.metric span {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.metric strong {
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.workspace {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.main-col {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.side-col {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
position: sticky;
|
||||
top: 14px;
|
||||
max-height: calc(100vh - 28px);
|
||||
overflow: auto;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.stage-card {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
#preview-card {
|
||||
min-height: 280px;
|
||||
}
|
||||
|
||||
#preview-card .preview-grid {
|
||||
max-height: 700px;
|
||||
overflow: auto;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
#new-card .table-wrap {
|
||||
max-height: 520px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-size: 19px;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.section-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
textarea,
|
||||
input {
|
||||
width: 100%;
|
||||
border: 1px solid var(--line-strong);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface-strong);
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
outline: none;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
textarea {
|
||||
min-height: 184px;
|
||||
resize: vertical;
|
||||
padding: 13px 14px;
|
||||
}
|
||||
|
||||
input {
|
||||
height: 40px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
|
||||
textarea:focus,
|
||||
input:focus,
|
||||
button:focus-visible,
|
||||
summary:focus-visible {
|
||||
border-color: rgba(14, 118, 110, 0.56);
|
||||
box-shadow: 0 0 0 4px var(--focus);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.row {
|
||||
margin-top: 12px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
button,
|
||||
.mini-btn,
|
||||
.preview-btn {
|
||||
min-height: 38px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 11px;
|
||||
padding: 0 14px;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.01em;
|
||||
cursor: pointer;
|
||||
color: #ffffff;
|
||||
background: linear-gradient(138deg, var(--brand), var(--brand-deep));
|
||||
transition: transform 0.16s ease, box-shadow 0.2s ease, opacity 0.2s ease;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
.mini-btn:hover,
|
||||
.preview-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 10px 18px rgba(11, 84, 78, 0.24);
|
||||
}
|
||||
|
||||
button:disabled,
|
||||
.mini-btn:disabled,
|
||||
.preview-btn:disabled {
|
||||
opacity: 0.56;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
button.secondary,
|
||||
.mini-btn.secondary,
|
||||
.preview-btn.secondary {
|
||||
color: var(--ink);
|
||||
border-color: var(--line-strong);
|
||||
background: #f7fbfc;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
button.secondary:hover,
|
||||
.mini-btn.secondary:hover,
|
||||
.preview-btn.secondary:hover {
|
||||
background: #eef5f7;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
button.danger,
|
||||
.mini-btn.danger,
|
||||
.preview-btn.danger {
|
||||
color: #ffffff;
|
||||
border-color: transparent;
|
||||
background: linear-gradient(138deg, #cd4d45, #b8362e);
|
||||
}
|
||||
|
||||
.progress-wrap {
|
||||
margin-top: 12px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(255, 255, 255, 0.86);
|
||||
}
|
||||
|
||||
.progress-head {
|
||||
margin-bottom: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
height: 8px;
|
||||
border-radius: 999px;
|
||||
overflow: hidden;
|
||||
background: #e4ecef;
|
||||
}
|
||||
|
||||
.progress-fill {
|
||||
width: 0;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, var(--brand), var(--accent));
|
||||
transition: width 0.25s ease;
|
||||
}
|
||||
|
||||
.progress-detail {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.msg {
|
||||
min-height: 22px;
|
||||
margin-top: 10px;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.fold-card {
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.fold-card > summary {
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
padding: 14px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.fold-card > summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fold-card > summary::after {
|
||||
content: "展开";
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.fold-card[open] > summary {
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: rgba(249, 252, 252, 0.88);
|
||||
}
|
||||
|
||||
.fold-card[open] > summary::after {
|
||||
content: "收起";
|
||||
}
|
||||
|
||||
.fold-body {
|
||||
padding: 14px 16px 16px;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.form-grid label,
|
||||
#corr-keyword-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.config-summary {
|
||||
margin-top: 10px;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.table-wrap {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
background: #ffffff;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#history-panel .table-wrap,
|
||||
#issue-panel .table-wrap {
|
||||
max-height: 340px;
|
||||
}
|
||||
|
||||
#dup-panel .table-wrap {
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
min-width: 720px;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid #ecf2f4;
|
||||
}
|
||||
|
||||
th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
background: #f4f9fa;
|
||||
color: #405960;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
tbody tr:hover td {
|
||||
background: #fbfdfd;
|
||||
}
|
||||
|
||||
#new-body td:nth-child(3),
|
||||
#dup-body td:nth-child(3),
|
||||
#history-body td:nth-child(4) {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cell-actions {
|
||||
min-width: 170px;
|
||||
}
|
||||
|
||||
.actions-inline,
|
||||
.skip-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.mini-btn {
|
||||
min-height: 30px;
|
||||
border-radius: 9px;
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.preview-grid {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
align-items: start;
|
||||
align-content: start;
|
||||
grid-auto-rows: max-content;
|
||||
}
|
||||
|
||||
.preview-empty {
|
||||
grid-column: 1 / -1;
|
||||
border: 1px dashed var(--line-strong);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 24px 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.preview-item {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
background: #ffffff;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
height: auto;
|
||||
align-self: start;
|
||||
}
|
||||
|
||||
.preview-media {
|
||||
width: 100%;
|
||||
background: #f2f8f9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.preview-media.is-loading::after,
|
||||
.preview-media.is-error::after {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #597278;
|
||||
background: rgba(242, 248, 249, 0.88);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.preview-media.is-loading::after {
|
||||
content: "加载中...";
|
||||
}
|
||||
|
||||
.preview-media.is-error::after {
|
||||
content: "加载失败";
|
||||
color: #8f3a33;
|
||||
}
|
||||
|
||||
.preview-image {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
max-height: none;
|
||||
height: auto;
|
||||
min-height: 220px;
|
||||
aspect-ratio: 1 / 2;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
background: #eef4f6;
|
||||
}
|
||||
|
||||
.preview-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 8px;
|
||||
border-top: 1px solid #dfeaed;
|
||||
min-height: 46px;
|
||||
}
|
||||
|
||||
.preview-name {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
font-size: 12px;
|
||||
color: #4d666d;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.preview-btn {
|
||||
min-height: 30px;
|
||||
border-radius: 9px;
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
flex: 0 0 auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.skip-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.skip-list li {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
background: #ffffff;
|
||||
padding: 10px;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.skip-list li > span {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.check-line {
|
||||
margin-top: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.check-line input[type="checkbox"] {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 50;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 18px;
|
||||
background: rgba(18, 36, 42, 0.48);
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.modal-card {
|
||||
width: min(880px, calc(100vw - 30px));
|
||||
max-height: 88vh;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-xl);
|
||||
background: #ffffff;
|
||||
box-shadow: 0 30px 56px rgba(13, 34, 41, 0.32);
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.modal-card p {
|
||||
margin: 8px 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.correction-card .form-grid {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.insurance-list {
|
||||
margin-top: 12px;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.insurance-item {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius-md);
|
||||
background: #f8fbfc;
|
||||
padding: 10px;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.insurance-line {
|
||||
font-size: 13px;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.insurance-meta {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.insurance-options {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.insurance-options label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.insurance-error {
|
||||
margin-top: 8px;
|
||||
color: var(--danger);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.toast-msg {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
bottom: 26px;
|
||||
transform: translate(-50%, 12px);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
z-index: 70;
|
||||
padding: 9px 14px;
|
||||
border-radius: 10px;
|
||||
color: #ffffff;
|
||||
background: rgba(18, 41, 49, 0.92);
|
||||
box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
|
||||
transition: transform 0.2s ease, opacity 0.2s ease;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.toast-msg.show {
|
||||
transform: translate(-50%, 0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.toast-msg.error {
|
||||
background: rgba(163, 39, 31, 0.94);
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@media (max-width: 1360px) {
|
||||
.workspace {
|
||||
grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
|
||||
}
|
||||
|
||||
#preview-card .preview-grid {
|
||||
max-height: 520px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.metrics-bar {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.workspace {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.side-col {
|
||||
position: static;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
#history-panel .table-wrap,
|
||||
#issue-panel .table-wrap,
|
||||
#dup-panel .table-wrap,
|
||||
#new-card .table-wrap,
|
||||
#preview-card .preview-grid,
|
||||
.skip-list {
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 880px) {
|
||||
.container {
|
||||
padding: 16px 12px 22px;
|
||||
}
|
||||
|
||||
.top {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.top-meta {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.card {
|
||||
border-radius: 16px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.fold-card {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.fold-card > summary {
|
||||
padding: 12px 14px;
|
||||
}
|
||||
|
||||
.fold-body {
|
||||
padding: 12px 14px 14px;
|
||||
}
|
||||
|
||||
.metrics-bar {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.preview-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.row button {
|
||||
flex: 1 1 calc(50% - 8px);
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
table {
|
||||
min-width: 620px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.top-meta span {
|
||||
min-height: 28px;
|
||||
padding: 0 10px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.preview-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.row button {
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
|
||||
.metrics-bar {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.modal {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.modal-card {
|
||||
width: 100%;
|
||||
max-height: 92vh;
|
||||
border-radius: 14px;
|
||||
padding: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
13
app/static/vendor/vue.global.prod.js
vendored
Normal file
13
app/static/vendor/vue.global.prod.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user