746 lines
45 KiB
HTML
746 lines
45 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title>37du 壳子 · 基于数据的重排版提案 v2(Run-centric Console)</title>
|
||
<style>
|
||
/* ============================================================
|
||
v2 · 信息架构重排版:一切围绕「运行」组织
|
||
左轨=场景轨 · 中央=上下文(总览/执行台/计划) · 右轨=活动轨
|
||
单文件自包含 · 双主题 · 数据均取自真实接口字段
|
||
============================================================ */
|
||
:root {
|
||
--canvas: #F4F6F9;
|
||
--surface: #FFFFFF;
|
||
--surface-2: #F1F4F8;
|
||
--border: #E4E9F0;
|
||
--border-strong: #CDD6E1;
|
||
--text: #182230;
|
||
--text-sub: #5A6674;
|
||
--text-faint: #7C8896;
|
||
--primary: #1E6FA8;
|
||
--primary-strong: #17608F;
|
||
--primary-tint: #E9F2FA;
|
||
--ok: #1F8A4C; --ok-tint: #E7F5EC;
|
||
--err: #D64545; --err-tint: #FBEBEB;
|
||
--warn: #B26B00; --warn-tint: #FBF3E0;
|
||
--r-frame: 14px; --r-card: 12px; --r-ctl: 8px;
|
||
--sh-sm: 0 1px 2px rgba(15, 23, 42, .05);
|
||
--sh-md: 0 8px 24px -12px rgba(15, 23, 42, .14);
|
||
--font: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
|
||
--mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
|
||
}
|
||
.frame[data-theme="dark"] {
|
||
--canvas: #0E1116; --surface: #151A21; --surface-2: #1B222B;
|
||
--border: #27303D; --border-strong: #39465A;
|
||
--text: #E8EDF4; --text-sub: #9AA7B5; --text-faint: #6E7C8C;
|
||
--primary: #3E93CF; --primary-strong: #5FA9DE; --primary-tint: #14304A;
|
||
--ok: #4CC38A; --ok-tint: #12291C;
|
||
--err: #E5726F; --err-tint: #2E1717;
|
||
--warn: #DFA63E; --warn-tint: #2D2312;
|
||
--sh-sm: 0 1px 2px rgba(0,0,0,.3);
|
||
--sh-md: 0 10px 28px -14px rgba(0,0,0,.55);
|
||
}
|
||
* { box-sizing: border-box; }
|
||
body {
|
||
margin: 0; background: #E9ECF1; color: #182230;
|
||
font-family: var(--font); font-size: 14px; line-height: 1.6;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
body.dark { background: #0B0E12; color: #E8EDF4; }
|
||
|
||
.intro { max-width: 1280px; margin: 0 auto; padding: 26px 24px 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
|
||
.intro h1 { margin: 0; font-size: 19px; font-weight: 700; }
|
||
.intro h1 small { color: #7C8896; font-weight: 500; font-size: 13px; }
|
||
.intro p { margin: 4px 0 0; font-size: 12.5px; color: #5A6674; }
|
||
body.dark .intro p { color: #9AA7B5; }
|
||
.theme-toggle {
|
||
border: 1px solid #CDD6E1; background: #fff; color: #182230;
|
||
border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; font-family: inherit;
|
||
}
|
||
.theme-toggle:hover { border-color: #1E6FA8; color: #1E6FA8; }
|
||
body.dark .theme-toggle { background: #1B222B; border-color: #39465A; color: #E8EDF4; }
|
||
body.dark .theme-toggle:hover { border-color: #3E93CF; color: #3E93CF; }
|
||
|
||
.stage { max-width: 1280px; margin: 18px auto 0; padding: 0 24px; }
|
||
.frame {
|
||
border-radius: var(--r-frame); background: var(--canvas);
|
||
border: 1px solid var(--border); box-shadow: var(--sh-md);
|
||
overflow: hidden; display: flex; flex-direction: column; height: 820px;
|
||
}
|
||
|
||
/* ---------- 标题栏 ---------- */
|
||
.titlebar {
|
||
height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 10px;
|
||
padding-left: 14px; background: var(--surface); border-bottom: 1px solid var(--border);
|
||
}
|
||
.titlebar .mark { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--primary); color: #fff; font: 700 9px/1 var(--mono); }
|
||
.titlebar .tname { font-size: 12.5px; font-weight: 600; }
|
||
.titlebar .tver { font: 500 10.5px/1 var(--mono); color: var(--text-faint); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
|
||
.titlebar .tsp { flex: 1; }
|
||
.win-ctl { display: flex; height: 100%; }
|
||
.win-ctl span { width: 44px; display: grid; place-items: center; color: var(--text-faint); font-size: 11px; }
|
||
.win-ctl span:hover { background: var(--surface-2); }
|
||
.win-ctl span.close:hover { background: var(--err); color: #fff; }
|
||
|
||
/* ---------- 三栏骨架 ---------- */
|
||
.shell { flex: 1; display: grid; grid-template-columns: 206px minmax(0, 1fr) 288px; min-height: 0; }
|
||
|
||
/* ===== 左轨 · 场景轨 ===== */
|
||
.rail { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 10px; min-height: 0; }
|
||
.me {
|
||
display: flex; align-items: center; gap: 9px;
|
||
padding: 8px 8px; margin-bottom: 10px;
|
||
border: 1px solid var(--border); border-radius: var(--r-card);
|
||
cursor: pointer; transition: border-color .13s ease;
|
||
}
|
||
.me:hover { border-color: var(--border-strong); }
|
||
.me .ava { width: 28px; height: 28px; border-radius: 8px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
|
||
.me .mm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
|
||
.me .mm b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.me .mm span { font-size: 10.5px; color: var(--text-faint); }
|
||
.me .ticket { font: 500 9.5px/1 var(--mono); color: var(--warn); background: var(--warn-tint); border-radius: 999px; padding: 3px 7px; flex-shrink: 0; }
|
||
|
||
.nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
|
||
.nv {
|
||
display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 9px;
|
||
border-radius: var(--r-ctl); font-size: 12.5px; color: var(--text-sub);
|
||
cursor: pointer; position: relative; transition: background .12s ease, color .12s ease;
|
||
}
|
||
.nv:hover { background: var(--surface-2); color: var(--text); }
|
||
.nv.active { background: var(--primary-tint); color: var(--primary); font-weight: 600; }
|
||
.nv.active::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
|
||
.nv svg { width: 14px; height: 14px; flex-shrink: 0; }
|
||
.nv .bdg { margin-left: auto; font: 500 10px/1 var(--mono); color: var(--text-faint); background: var(--surface-2); border-radius: 999px; padding: 2px 6px; }
|
||
.nv.active .bdg { background: transparent; color: var(--primary); }
|
||
|
||
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 0 9px 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; color: var(--text-faint); }
|
||
.rail-head .cnt { font: 500 10px/1 var(--mono); background: var(--surface-2); border-radius: 999px; padding: 2px 6px; }
|
||
.scenes { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 1px; min-height: 0; }
|
||
.sc-rail {
|
||
display: flex; align-items: center; gap: 8px; height: 33px; padding: 0 9px;
|
||
border-radius: var(--r-ctl); cursor: pointer; transition: background .12s ease;
|
||
}
|
||
.sc-rail:hover { background: var(--surface-2); }
|
||
.sc-rail.active { background: var(--primary-tint); }
|
||
.sc-rail .tile { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; flex-shrink: 0; }
|
||
.t-sky { background: var(--primary-tint); color: var(--primary); }
|
||
.t-honey { background: var(--warn-tint); color: var(--warn); }
|
||
.t-mint { background: var(--ok-tint); color: var(--ok); }
|
||
.t-blush { background: var(--err-tint); color: var(--err); }
|
||
.sc-rail .nm { flex: 1; font-size: 12px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.sc-rail.active .nm { color: var(--primary); font-weight: 600; }
|
||
.sc-rail .dep { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
|
||
.dep.on { background: var(--ok); }
|
||
.dep.off { background: var(--warn); }
|
||
.rail-foot { border-top: 1px solid var(--border); padding: 9px 9px 1px; margin-top: 8px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-faint); }
|
||
.rail-foot a { color: var(--primary); text-decoration: none; cursor: pointer; }
|
||
|
||
/* ===== 中央 · 上下文区 ===== */
|
||
.center { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
|
||
.view { display: none; flex: 1; min-height: 0; overflow: auto; padding: 20px 22px; }
|
||
.view.on { display: block; }
|
||
|
||
/* --- 执行台 --- */
|
||
.run-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
|
||
.run-head .big-tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; font-weight: 700; flex-shrink: 0; }
|
||
.run-head .rh-m { flex: 1; min-width: 0; }
|
||
.run-head h2 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
||
.chip { font: 500 10.5px/1 var(--mono); color: var(--text-faint); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
|
||
.chip.ok { color: var(--ok); background: var(--ok-tint); border-color: transparent; font-family: var(--font); }
|
||
.chip.warn { color: var(--warn); background: var(--warn-tint); border-color: transparent; font-family: var(--font); cursor: pointer; }
|
||
.run-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-sub); }
|
||
.rh-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
|
||
|
||
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--sh-sm); }
|
||
.card + .card { margin-top: 12px; }
|
||
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; }
|
||
.card-h h3 { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
|
||
.card-h .ops { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-faint); }
|
||
.card-b { padding: 12px 16px 14px; }
|
||
|
||
/* 参数 */
|
||
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
|
||
.field { display: flex; flex-direction: column; gap: 5px; }
|
||
.field label { font-size: 11.5px; color: var(--text-sub); display: flex; justify-content: space-between; }
|
||
.field label em { font-style: normal; font-size: 10.5px; color: var(--text-faint); }
|
||
.ctl {
|
||
height: 32px; border: 1px solid var(--border-strong); border-radius: var(--r-ctl);
|
||
background: var(--surface); color: var(--text); padding: 0 10px; font: 400 12.5px/1 var(--font);
|
||
display: flex; align-items: center; justify-content: space-between; cursor: pointer;
|
||
}
|
||
.ctl:hover { border-color: var(--primary); }
|
||
.ctl .arr { color: var(--text-faint); font-size: 9px; }
|
||
.restored { display: flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 11px; color: var(--text-faint); }
|
||
.restored a { color: var(--primary); cursor: pointer; text-decoration: none; }
|
||
|
||
/* 运行卡 */
|
||
.run-card { border: 1px solid var(--border); }
|
||
.run-card.live { border-color: rgba(30, 111, 168, .45); box-shadow: 0 0 0 3px var(--primary-tint); }
|
||
.state-pills { display: flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 2px; }
|
||
.state-pill { font-size: 10.5px; color: var(--text-faint); padding: 3px 10px; border-radius: 999px; cursor: pointer; border: none; background: transparent; font-family: inherit; }
|
||
.state-pill.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); font-weight: 600; }
|
||
.run-body { padding: 14px 16px; }
|
||
.st { display: none; }
|
||
.run-card[data-state="idle"] .st-idle { display: block; }
|
||
.run-card[data-state="running"] .st-running { display: block; }
|
||
.run-card[data-state="done"] .st-done { display: block; }
|
||
|
||
.go-btn {
|
||
display: inline-flex; align-items: center; gap: 9px;
|
||
height: 40px; padding: 0 26px; border: none; border-radius: 10px;
|
||
background: var(--primary-strong); color: #fff; font: 600 13.5px/1 var(--font);
|
||
cursor: pointer; box-shadow: 0 6px 16px -8px rgba(23, 96, 143, .55);
|
||
transition: transform .12s ease, box-shadow .12s ease;
|
||
}
|
||
.go-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(23, 96, 143, .6); }
|
||
.go-hint { font-size: 11px; color: var(--text-faint); margin-left: 12px; }
|
||
|
||
.prog-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
|
||
.prog-row .pct { font: 600 19px/1 var(--mono); letter-spacing: -.02em; }
|
||
.prog-row .track { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
|
||
.prog-row .fill { width: 62%; height: 100%; border-radius: 999px; background: var(--primary); }
|
||
.live-b { font: 600 9.5px/1 var(--mono); letter-spacing: .08em; color: var(--ok); background: var(--ok-tint); padding: 3px 8px; border-radius: 999px; animation: pulse 1.6s ease infinite; }
|
||
@keyframes pulse { 50% { opacity: .45; } }
|
||
|
||
.logs { background: var(--surface-2); border-radius: var(--r-ctl); padding: 9px 12px; font: 400 11.5px/1.8 var(--mono); max-height: 148px; overflow: auto; }
|
||
.lg { display: flex; gap: 10px; }
|
||
.lg .t { color: var(--text-faint); flex-shrink: 0; }
|
||
.lg .lv { font-weight: 600; width: 40px; flex-shrink: 0; }
|
||
.lv.i { color: var(--primary); }
|
||
.lv.w { color: var(--warn); }
|
||
.lg .m { color: var(--text); word-break: break-all; }
|
||
|
||
.done-banner { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: var(--r-ctl); background: var(--ok-tint); margin-bottom: 11px; }
|
||
.done-banner .ic { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
|
||
.done-banner .db { flex: 1; }
|
||
.done-banner .db b { font-size: 12.5px; display: block; }
|
||
.done-banner .db span { font-size: 11.5px; color: var(--text-sub); }
|
||
.done-banner .again { border: 1px solid var(--border-strong); background: transparent; border-radius: var(--r-ctl); padding: 6px 13px; font: 500 12px/1 var(--font); color: var(--text-sub); cursor: pointer; }
|
||
.done-banner .again:hover { border-color: var(--primary); color: var(--primary); }
|
||
|
||
/* 场景内定时 */
|
||
.sched-inline { display: flex; align-items: center; gap: 10px; padding: 10px 0 2px; }
|
||
.sched-inline .si { flex: 1; display: flex; align-items: center; gap: 9px; font-size: 12px; }
|
||
.sched-inline .si b { font-weight: 600; }
|
||
.sched-inline .si span { color: var(--text-faint); font-size: 11.5px; }
|
||
.cron-chip { font: 500 10.5px/1 var(--mono); color: var(--primary); background: var(--primary-tint); border-radius: 6px; padding: 3px 7px; }
|
||
.switch { width: 30px; height: 17px; border-radius: 999px; background: var(--border-strong); position: relative; flex-shrink: 0; }
|
||
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .15s ease; }
|
||
.switch.on { background: var(--ok); }
|
||
.switch.on::after { left: 15px; }
|
||
.mini-btn { border: 1px solid var(--border-strong); background: transparent; color: var(--text-sub); border-radius: var(--r-ctl); padding: 5px 11px; font: 500 11.5px/1 var(--font); cursor: pointer; }
|
||
.mini-btn:hover { border-color: var(--primary); color: var(--primary); }
|
||
|
||
/* --- 总览 --- */
|
||
.ov-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
|
||
.ov-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
|
||
.ov-head .sub { margin: 3px 0 0; font-size: 12px; color: var(--text-faint); }
|
||
.kpis { display: flex; gap: 8px; }
|
||
.kpi { display: flex; align-items: baseline; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-ctl); padding: 7px 12px; }
|
||
.kpi b { font: 600 15px/1 var(--mono); }
|
||
.kpi b em { font-style: normal; font-size: 10.5px; color: var(--text-faint); font-weight: 500; }
|
||
.kpi span { font-size: 11px; color: var(--text-faint); }
|
||
.kpi.ok b { color: var(--ok); }
|
||
|
||
.queue { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
|
||
.q-item { display: flex; align-items: center; gap: 11px; padding: 11px 14px; }
|
||
.q-when { text-align: center; flex-shrink: 0; width: 46px; }
|
||
.q-when b { display: block; font: 600 15px/1.1 var(--mono); }
|
||
.q-when span { font-size: 10px; color: var(--text-faint); }
|
||
.q-m { flex: 1; min-width: 0; }
|
||
.q-m b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.q-m span { font-size: 11px; color: var(--text-faint); font-family: var(--mono); }
|
||
|
||
.ov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
|
||
.ov-sc { display: flex; align-items: center; gap: 12px; padding: 13px 15px; cursor: pointer; font-family: inherit; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-sm); transition: border-color .13s ease, box-shadow .13s ease; }
|
||
.ov-sc:hover { border-color: var(--border-strong); box-shadow: var(--sh-md); }
|
||
.ov-sc .tile { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
|
||
.ov-sc .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
|
||
.ov-sc .m b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.ov-sc .m span { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.ov-sc .meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
|
||
.ov-sc .meta i { font-style: normal; font-size: 10px; color: var(--text-faint); font-family: var(--mono); }
|
||
.ov-sc .meta .st2 { font-size: 10px; }
|
||
.st2.ok { color: var(--ok); }
|
||
.st2.warn { color: var(--warn); }
|
||
.ov-sc .go { flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--primary); border: 1px solid var(--border-strong); border-radius: var(--r-ctl); padding: 5px 12px; transition: all .13s ease; }
|
||
.ov-sc:hover .go { background: var(--primary); border-color: var(--primary); color: #fff; }
|
||
|
||
/* --- 计划 --- */
|
||
.sched-list { display: flex; flex-direction: column; }
|
||
.sched-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
|
||
.sched-row:last-child { border-bottom: none; }
|
||
.sr-when { width: 108px; flex-shrink: 0; }
|
||
.sr-when b { display: block; font-size: 12.5px; }
|
||
.sr-when span { font-size: 10.5px; color: var(--text-faint); font-family: var(--mono); }
|
||
.sr-m { flex: 1; min-width: 0; }
|
||
.sr-m b { display: block; font-size: 13px; }
|
||
.sr-m span { font-size: 11px; color: var(--text-faint); }
|
||
.sr-last { width: 120px; flex-shrink: 0; font-size: 11px; color: var(--text-faint); }
|
||
.sr-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
|
||
.link-btn { border: none; background: none; font: 500 11.5px/1 var(--font); color: var(--primary); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
|
||
.link-btn:hover { background: var(--primary-tint); }
|
||
.link-btn.danger { color: var(--err); }
|
||
.link-btn.danger:hover { background: var(--err-tint); }
|
||
|
||
/* ===== 右轨 · 活动轨 ===== */
|
||
.activity { background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: auto; padding: 12px; gap: 12px; min-height: 0; }
|
||
.act-sec { display: flex; flex-direction: column; }
|
||
.act-h { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
|
||
.act-h h4 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; color: var(--text-faint); }
|
||
.act-h a { font-size: 10.5px; color: var(--primary); text-decoration: none; cursor: pointer; }
|
||
.act-item { display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px; border-radius: var(--r-ctl); cursor: pointer; }
|
||
.act-item:hover { background: var(--surface-2); }
|
||
.act-item .aw { font: 500 10.5px/1.5 var(--mono); color: var(--text-faint); width: 62px; flex-shrink: 0; }
|
||
.act-item .aw b { display: block; color: var(--text); font-size: 11.5px; }
|
||
.act-item .am { flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-sub); line-height: 1.45; }
|
||
.act-item .am b { color: var(--text); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.act-item .am span { display: block; font-size: 10.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.act-item .am span.err { color: var(--err); }
|
||
.act-item .st3 { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
|
||
.st3.ok { background: var(--ok-tint); color: var(--ok); }
|
||
.st3.err { background: var(--err-tint); color: var(--err); }
|
||
.st3.plan { background: var(--primary-tint); color: var(--primary); font-size: 8px; }
|
||
|
||
.plat-row { display: flex; align-items: center; gap: 9px; padding: 8px 8px; }
|
||
.plat-row + .plat-row { border-top: 1px dashed var(--border); }
|
||
.plat-row .pd { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
|
||
.plat-row .pd.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
|
||
.plat-row .pd.off { background: var(--border-strong); }
|
||
.plat-row .pm { flex: 1; min-width: 0; line-height: 1.3; }
|
||
.plat-row .pm b { font-size: 12px; display: block; }
|
||
.plat-row .pm span { font-size: 10.5px; color: var(--text-faint); }
|
||
.plat-row .pm span.ok2 { color: var(--ok); }
|
||
.ticket-card { border: 1px solid var(--border); border-radius: var(--r-card); padding: 11px 13px; background: var(--warn-tint); }
|
||
.ticket-card b { font-size: 12px; color: var(--warn); display: flex; align-items: center; gap: 6px; }
|
||
.ticket-card p { margin: 4px 0 8px; font-size: 10.5px; color: var(--text-sub); line-height: 1.55; }
|
||
.ticket-card .mini-btn { background: var(--surface); }
|
||
|
||
/* ---------- 状态栏 ---------- */
|
||
.statusbar { height: 26px; flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 0 14px; font-size: 10.5px; color: var(--text-faint); background: var(--surface); border-top: 1px solid var(--border); }
|
||
.statusbar .si { display: inline-flex; align-items: center; gap: 5px; }
|
||
.statusbar i { width: 5px; height: 5px; border-radius: 50%; }
|
||
.statusbar i.on { background: var(--ok); }
|
||
.statusbar i.mid { background: var(--warn); }
|
||
.statusbar .sp { flex: 1; }
|
||
.statusbar .mono { font-family: var(--mono); }
|
||
|
||
/* ---------- IA 对照表 ---------- */
|
||
.mapping { max-width: 1280px; margin: 34px auto 56px; padding: 0 24px; }
|
||
.mapping h2 { font-size: 16px; margin: 0 0 12px; }
|
||
.map-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E4E9F0; border-radius: 12px; overflow: hidden; font-size: 12.5px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
|
||
body.dark .map-table { background: #151A21; border-color: #27303D; }
|
||
.map-table th { text-align: left; font-size: 11px; letter-spacing: .05em; color: #7C8896; background: #F7F9FB; padding: 10px 14px; border-bottom: 1px solid #E4E9F0; }
|
||
body.dark .map-table th { background: #1B222B; border-color: #27303D; color: #6E7C8C; }
|
||
.map-table td { padding: 10px 14px; border-bottom: 1px solid #EFF2F6; color: #3D4854; vertical-align: top; }
|
||
body.dark .map-table td { border-color: #222B37; color: #C6D0DC; }
|
||
.map-table tr:last-child td { border-bottom: none; }
|
||
.map-table td:first-child { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
|
||
.map-table td.moved { color: #1E6FA8; font-weight: 600; }
|
||
body.dark .map-table td.moved { color: #5FA9DE; }
|
||
.map-table td.cut { color: #B3403E; }
|
||
body.dark .map-table td.cut { color: #E5726F; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="intro">
|
||
<div>
|
||
<h1>基于数据的重排版 v2 <small>· Run-centric Console</small></h1>
|
||
<p>原子实体是「运行」:场景=模板 · 定时=触发器 · 平台会话=前置条件 · 日志/进度/结果=过程与产物。左轨选场景,中央看上下文,右轨看活动流 —— 点左侧导航或场景可切换视图</p>
|
||
</div>
|
||
<button class="theme-toggle" onclick="document.body.classList.toggle('dark');document.querySelector('.frame').dataset.theme=document.body.classList.contains('dark')?'dark':'light'">◐ 深 / 浅主题</button>
|
||
</div>
|
||
|
||
<div class="stage">
|
||
<div class="frame" data-theme="light">
|
||
<div class="titlebar">
|
||
<span class="mark">37</span><span class="tname">自动化工作台</span><span class="tver">v2.3.1</span>
|
||
<span class="tsp"></span>
|
||
<div class="win-ctl"><span>—</span><span>▢</span><span class="close">✕</span></div>
|
||
</div>
|
||
|
||
<div class="shell">
|
||
<!-- ============ 左轨:场景轨 ============ -->
|
||
<aside class="rail">
|
||
<div class="me" title="个人中心">
|
||
<span class="ava">张</span>
|
||
<span class="mm"><b>张三</b><span>人力资源部 · zhangsan</span></span>
|
||
<span class="ticket">票 5天</span>
|
||
</div>
|
||
|
||
<div class="nav">
|
||
<div class="nv" data-view="overview" onclick="switchView('overview')">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><rect x="3" y="3" width="8" height="8" rx="2"/><rect x="13" y="3" width="8" height="8" rx="2"/><rect x="3" y="13" width="8" height="8" rx="2"/><rect x="13" y="13" width="8" height="8" rx="2"/></svg>
|
||
<span>总览</span>
|
||
</div>
|
||
<div class="nv" data-view="sched" onclick="switchView('sched')">
|
||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>
|
||
<span>计划</span>
|
||
<span class="bdg">3</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="rail-head"><span>场景库</span><span class="cnt">6</span></div>
|
||
<div class="scenes">
|
||
<div class="sc-rail active" onclick="switchView('run')"><span class="tile t-sky">考</span><span class="nm">考勤月报封存检查</span><span class="dep on"></span></div>
|
||
<div class="sc-rail" onclick="switchView('run')"><span class="tile t-honey">假</span><span class="nm">请假单批量补录</span><span class="dep off"></span></div>
|
||
<div class="sc-rail" onclick="switchView('run')"><span class="tile t-mint">周</span><span class="nm">周报数据汇总</span><span class="dep on"></span></div>
|
||
<div class="sc-rail" onclick="switchView('run')"><span class="tile t-blush">邮</span><span class="nm">邮件定时巡检</span><span class="dep on"></span></div>
|
||
<div class="sc-rail" onclick="switchView('run')"><span class="tile t-sky">薪</span><span class="nm">薪酬条分发</span><span class="dep off"></span></div>
|
||
<div class="sc-rail" onclick="switchView('run')"><span class="tile t-mint">档</span><span class="nm">档案归档巡检</span><span class="dep on"></span></div>
|
||
</div>
|
||
|
||
<div class="rail-foot"><span>壳子 v2.3.1</span><a>检查更新</a></div>
|
||
</aside>
|
||
|
||
<!-- ============ 中央:上下文区 ============ -->
|
||
<main class="center">
|
||
|
||
<!-- ▍执行台:选中场景后,参数/运行/日志/定时 全部围绕这一次执行组织 -->
|
||
<section class="view on" id="view-run">
|
||
<div class="run-head">
|
||
<span class="big-tile t-sky">考</span>
|
||
<div class="rh-m">
|
||
<h2>考勤月报封存检查 <span class="chip">v1.4.0</span> <span class="chip ok">OA · 已登录</span> <span class="chip warn">装浏览器</span></h2>
|
||
<p>抓取当月 OA 考勤原始表,校验异常打卡并生成封存报表回传中心机</p>
|
||
</div>
|
||
<div class="rh-actions">
|
||
<button class="mini-btn">插件详情</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 参数卡:fields[] 数据驱动 · 恢复上次值(新增可负担性) -->
|
||
<div class="card">
|
||
<div class="card-h">
|
||
<h3>执行参数</h3>
|
||
<span class="ops">3 项 · 全部必填已就绪</span>
|
||
</div>
|
||
<div class="card-b">
|
||
<div class="fields">
|
||
<div class="field">
|
||
<label>报表月份 <em>uses_month</em></label>
|
||
<div class="ctl"><span>2025-11</span><span class="arr">▾</span></div>
|
||
</div>
|
||
<div class="field">
|
||
<label>失败重试次数 <em>int</em></label>
|
||
<div class="ctl"><span>2</span></div>
|
||
</div>
|
||
<div class="field">
|
||
<label>异常通知邮箱 <em>text</em></label>
|
||
<div class="ctl"><span style="color:var(--text-faint)">zhangsan@37du.cn</span></div>
|
||
</div>
|
||
</div>
|
||
<div class="restored">↺ 已恢复上次执行参数(11 日 14:02) · <a>恢复默认</a></div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 运行卡:待执行 / 执行中 / 已完成 三态切换(右上角示意按钮) -->
|
||
<div class="card run-card live" id="run-card" data-state="running">
|
||
<div class="card-h">
|
||
<h3>运行</h3>
|
||
<div class="state-pills" onclick="event.stopPropagation()">
|
||
<button class="state-pill" data-s="idle" onclick="setRun('idle')">待执行</button>
|
||
<button class="state-pill on" data-s="running" onclick="setRun('running')">执行中</button>
|
||
<button class="state-pill" data-s="done" onclick="setRun('done')">已完成</button>
|
||
</div>
|
||
</div>
|
||
<div class="run-body">
|
||
<!-- 待执行 -->
|
||
<div class="st st-idle">
|
||
<button class="go-btn">▶ 一键执行</button>
|
||
<span class="go-hint">使用本机 Chrome 会话执行 · 日志实时显示在此卡片,不再占用全局底栏</span>
|
||
</div>
|
||
<!-- 执行中 -->
|
||
<div class="st st-running">
|
||
<div class="prog-row">
|
||
<span class="pct">62%</span>
|
||
<div class="track"><div class="fill"></div></div>
|
||
<span class="live-b">● LIVE</span>
|
||
<span class="chip">run_8f3a</span>
|
||
</div>
|
||
<div class="logs">
|
||
<div class="lg"><span class="t">14:02:01</span><span class="lv i">INFO</span><span class="m">启动 Chrome 会话,加载 OA 首页</span></div>
|
||
<div class="lg"><span class="t">14:02:07</span><span class="lv i">INFO</span><span class="m">登录态校验通过(cookie 有效)</span></div>
|
||
<div class="lg"><span class="t">14:02:09</span><span class="lv i">INFO</span><span class="m">进入 考勤月报 → 2025-11,开始抓取表格</span></div>
|
||
<div class="lg"><span class="t">14:02:24</span><span class="lv w">WARN</span><span class="m">抓取到 2 行异常打卡,已标记待人工复核</span></div>
|
||
<div class="lg"><span class="t">14:02:31</span><span class="lv i">INFO</span><span class="m">正在生成封存 ZIP 并回传中心机…</span></div>
|
||
</div>
|
||
</div>
|
||
<!-- 已完成 -->
|
||
<div class="st st-done">
|
||
<div class="done-banner">
|
||
<span class="ic">✓</span>
|
||
<div class="db">
|
||
<b>执行完成 · 耗时 31s</b>
|
||
<span>报表已封存并回传中心机 · 2 行异常打卡待人工复核</span>
|
||
</div>
|
||
<button class="again">↻ 再次执行</button>
|
||
</div>
|
||
<div class="logs">
|
||
<div class="lg"><span class="t">14:02:31</span><span class="lv i">INFO</span><span class="m">报表封存完成,已生成 ZIP 并回传中心机</span></div>
|
||
<div class="lg"><span class="t">14:02:32</span><span class="lv i">INFO</span><span class="m">===== 执行完成 =====(耗时 31s)</span></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- 该场景绑定的定时(schedule 数据本来就是 per-plugin 的) -->
|
||
<div class="card">
|
||
<div class="card-h">
|
||
<h3>定时触发</h3>
|
||
<button class="mini-btn">+ 新建定时</button>
|
||
</div>
|
||
<div class="card-b">
|
||
<div class="sched-inline">
|
||
<span class="si"><b>每个工作日 08:00</b><span>下次 明天 08:00 · 上次 今天 08:00 成功</span><span class="cron-chip">0 8 * * 1-5</span></span>
|
||
<span class="switch on"></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ▍总览:原首页溶解为 KPI 行 + 队列条 + 场景网格 -->
|
||
<section class="view" id="view-overview">
|
||
<div class="ov-head">
|
||
<div>
|
||
<h2>早上好,张三</h2>
|
||
<p class="sub">2025年12月11日 星期四 · 昨日自动执行 12 次,全部成功</p>
|
||
</div>
|
||
<div class="kpis">
|
||
<div class="kpi"><b>6</b><span>场景</span></div>
|
||
<div class="kpi"><b>3</b><span>计划</span></div>
|
||
<div class="kpi"><b>2<em>/2</em></b><span>平台在线</span></div>
|
||
<div class="kpi ok"><b>✓ 14:02</b><span>上次执行</span></div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="sec-h" style="font-size:12.5px;font-weight:700;margin-bottom:9px">接下来自动执行</div>
|
||
<div class="queue">
|
||
<div class="card q-item">
|
||
<span class="q-when"><b>08:00</b><span>明天</span></span>
|
||
<span class="q-m"><b>考勤月报封存检查</b><span>0 8 * * 1-5 · 工作日</span></span>
|
||
<span class="chip ok">OA ✓</span>
|
||
</div>
|
||
<div class="card q-item">
|
||
<span class="q-when"><b>18:00</b><span>周五</span></span>
|
||
<span class="q-m"><b>周报数据汇总</b><span>0 18 * * 5 · 每周五</span></span>
|
||
<span class="chip ok">OA ✓</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="sec-h" style="font-size:12.5px;font-weight:700;margin:0 0 9px">全部场景</div>
|
||
<div class="ov-grid">
|
||
<button class="ov-sc" onclick="switchView('run')">
|
||
<span class="tile t-sky">考</span>
|
||
<span class="m"><b>考勤月报封存检查</b><span>抓取当月考勤原始表并封存</span>
|
||
<span class="meta"><i>v1.4.0</i><span class="st2 ok">OA 已登录</span><span class="st2" style="color:var(--text-faint)">· 定时 1</span></span></span>
|
||
<span class="go">执行</span>
|
||
</button>
|
||
<button class="ov-sc" onclick="switchView('run')">
|
||
<span class="tile t-honey">假</span>
|
||
<span class="m"><b>请假单批量补录</b><span>按名单批量补录历史请假单</span>
|
||
<span class="meta"><i>v0.9.2</i><span class="st2 warn">HR 未登录</span></span></span>
|
||
<span class="go">执行</span>
|
||
</button>
|
||
<button class="ov-sc" onclick="switchView('run')">
|
||
<span class="tile t-mint">周</span>
|
||
<span class="m"><b>周报数据汇总</b><span>拉取各部门周报生成汇总快照</span>
|
||
<span class="meta"><i>v2.1.0</i><span class="st2 ok">OA 已登录</span><span class="st2" style="color:var(--text-faint)">· 定时 1</span></span></span>
|
||
<span class="go">执行</span>
|
||
</button>
|
||
<button class="ov-sc" onclick="switchView('run')">
|
||
<span class="tile t-blush">邮</span>
|
||
<span class="m"><b>邮件定时巡检</b><span>巡检公共邮箱未读工单</span>
|
||
<span class="meta"><i>v1.0.3</i><span class="st2 ok">MAIL 已登录</span></span></span>
|
||
<span class="go">执行</span>
|
||
</button>
|
||
<button class="ov-sc" onclick="switchView('run')">
|
||
<span class="tile t-sky">薪</span>
|
||
<span class="m"><b>薪酬条分发</b><span>按月生成薪酬条并站内分发</span>
|
||
<span class="meta"><i>v1.2.7</i><span class="st2 warn">HR 未登录</span></span></span>
|
||
<span class="go">执行</span>
|
||
</button>
|
||
<button class="ov-sc" onclick="switchView('run')">
|
||
<span class="tile t-mint">档</span>
|
||
<span class="m"><b>档案归档巡检</b><span>巡检档案库完整性并归档</span>
|
||
<span class="meta"><i>v0.6.1</i><span class="st2 ok">OA 已登录</span></span></span>
|
||
<span class="go">执行</span>
|
||
</button>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- ▍计划:schedules 从 CRUD 表格变成时间队列 -->
|
||
<section class="view" id="view-sched">
|
||
<div class="ov-head">
|
||
<div>
|
||
<h2>计划</h2>
|
||
<p class="sub">按下次执行时间排序 · 配置自动备份到中心机</p>
|
||
</div>
|
||
<button class="mini-btn" style="height:32px;padding:0 15px">+ 新建任务</button>
|
||
</div>
|
||
<div class="card sched-list">
|
||
<div class="sched-row">
|
||
<span class="sr-when"><b>明天 08:00</b><span>12-12 周五</span></span>
|
||
<span class="sr-m"><b>考勤月报封存检查</b><span>工作日触发 · 参数:2025-11 · 重试 2 次</span></span>
|
||
<span class="cron-chip">0 8 * * 1-5</span>
|
||
<span class="sr-last">上次 今天 08:00<br>✓ 成功 31s</span>
|
||
<span class="sr-acts"><span class="switch on"></span><button class="link-btn">编辑</button><button class="link-btn danger">删除</button></span>
|
||
</div>
|
||
<div class="sched-row">
|
||
<span class="sr-when"><b>周五 18:00</b><span>12-12 周五</span></span>
|
||
<span class="sr-m"><b>周报数据汇总</b><span>每周触发 · 全部默认参数</span></span>
|
||
<span class="cron-chip">0 18 * * 5</span>
|
||
<span class="sr-last">上次 12-05 18:00<br>✓ 成功 12s</span>
|
||
<span class="sr-acts"><span class="switch on"></span><button class="link-btn">编辑</button><button class="link-btn danger">删除</button></span>
|
||
</div>
|
||
<div class="sched-row">
|
||
<span class="sr-when"><b>12-01 09:00</b><span>已过期</span></span>
|
||
<span class="sr-m"><b>档案归档巡检</b><span>每月 1 日触发 · 已停用</span></span>
|
||
<span class="cron-chip">0 9 1 * *</span>
|
||
<span class="sr-last">上次 12-01 09:00<br>✓ 成功 8s</span>
|
||
<span class="sr-acts"><span class="switch"></span><button class="link-btn">编辑</button><button class="link-btn danger">删除</button></span>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</main>
|
||
|
||
<!-- ============ 右轨:活动轨(三处散落数据合并成一条流) ============ -->
|
||
<aside class="activity">
|
||
<div class="act-sec">
|
||
<div class="act-h"><h4>接下来自动执行</h4><a onclick="switchView('sched')">全部</a></div>
|
||
<div class="act-item" onclick="switchView('sched')">
|
||
<span class="st3 plan">⏰</span>
|
||
<span class="am"><b>考勤月报封存检查</b><span>明天 08:00 · 工作日</span></span>
|
||
</div>
|
||
<div class="act-item" onclick="switchView('sched')">
|
||
<span class="st3 plan">⏰</span>
|
||
<span class="am"><b>周报数据汇总</b><span>周五 18:00 · 每周</span></span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="act-sec">
|
||
<div class="act-h"><h4>最近运行</h4></div>
|
||
<div class="act-item" onclick="switchView('run')">
|
||
<span class="st3 ok">✓</span>
|
||
<span class="am"><b>考勤月报封存检查</b><span>14:02 · 31s · 手动</span></span>
|
||
</div>
|
||
<div class="act-item" onclick="switchView('run')">
|
||
<span class="st3 ok">✓</span>
|
||
<span class="am"><b>周报数据汇总</b><span>09:31 · 12s · 定时</span></span>
|
||
</div>
|
||
<div class="act-item" onclick="switchView('run')">
|
||
<span class="st3 err">✕</span>
|
||
<span class="am"><b>请假单批量补录</b><span class="err">09:12 · HR 会话过期</span></span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="act-sec">
|
||
<div class="act-h"><h4>平台会话</h4><a>配置账号</a></div>
|
||
<div class="plat-row">
|
||
<span class="pd on"></span>
|
||
<span class="pm"><b>OA 办公系统</b><span class="ok2">已登录 · zhangsan</span></span>
|
||
<button class="mini-btn">登出</button>
|
||
</div>
|
||
<div class="plat-row">
|
||
<span class="pd off"></span>
|
||
<span class="pm"><b>HR 人事系统</b><span>未登录 · 未配置个人账号</span></span>
|
||
<button class="mini-btn">登录</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="act-sec" style="margin-top:auto">
|
||
<div class="ticket-card">
|
||
<b>⚠ 授权票据剩余 5 天</b>
|
||
<p>最长允许离线 7 天,到期前联网刷新即可,不影响本地已装场景。</p>
|
||
<button class="mini-btn">立即刷新</button>
|
||
</div>
|
||
</div>
|
||
</aside>
|
||
</div>
|
||
|
||
<div class="statusbar">
|
||
<span class="si"><i class="on"></i>服务已连接</span>
|
||
<span class="si"><i class="on"></i>Chrome 131</span>
|
||
<span class="si"><i class="mid"></i>插件同步 2 分钟前</span>
|
||
<span class="sp"></span>
|
||
<span class="mono">127.0.0.1:8765</span>
|
||
<span class="mono">WS 正常</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- ---------- 数据 → 界面 归属对照 ---------- -->
|
||
<div class="mapping">
|
||
<h2>数据 → 界面归属对照(重排了什么,为什么)</h2>
|
||
<table class="map-table">
|
||
<tr><th>数据(接口字段)</th><th>现在的位置</th><th>新家</th><th>理由</th></tr>
|
||
<tr>
|
||
<td>run / progress / logs</td>
|
||
<td>topbar 进度条 + 执行按钮环 + 全局底栏日志(三处)</td>
|
||
<td class="moved">执行台·运行卡(日志内联,三态一体)</td>
|
||
<td>日志是「这次运行」的属性,跟着运行走;完成后同卡片展示结果与摘要</td>
|
||
</tr>
|
||
<tr>
|
||
<td>schedules + next_run_at</td>
|
||
<td>独立的定时任务页(CRUD 表格)</td>
|
||
<td class="moved">计划视图(按时间排序的队列)+ 场景执行台内联「定时触发」</td>
|
||
<td>next_run_at 本来就有,但现状没有「接下来发生什么」的时间感;同时定时数据绑定插件,就地可见</td>
|
||
</tr>
|
||
<tr>
|
||
<td>platforms + online</td>
|
||
<td>首页卡片区 + 个人中心抽屉(两处重复)</td>
|
||
<td class="moved">右轨·平台会话(唯一入口)+ 场景头的依赖芯片</td>
|
||
<td>它是运行的前置条件,应该常驻可见、一键登录,而不是藏在两个地方</td>
|
||
</tr>
|
||
<tr>
|
||
<td>recents(最近 8 次)</td>
|
||
<td>首页底部摘要条</td>
|
||
<td class="moved">右轨·最近运行(点击回放 → 执行台)</td>
|
||
<td>run_id 与 getRun 都在,点击可回放日志,把摘要升级成入口</td>
|
||
</tr>
|
||
<tr>
|
||
<td>fields[](插件参数)</td>
|
||
<td>插件页平铺表单,每次进入重置默认值</td>
|
||
<td class="moved">执行台·参数卡 + 「恢复上次参数」</td>
|
||
<td>新增可负担性:上次值本地持久化,重复执行不再逐项重填</td>
|
||
</tr>
|
||
<tr>
|
||
<td>首页(问候/统计卡)</td>
|
||
<td>独立 home 视图</td>
|
||
<td class="cut">溶解:KPI 行并入总览头部</td>
|
||
<td>统计数字全部可由其余视图直接得出,独立页面信息密度过低</td>
|
||
</tr>
|
||
<tr>
|
||
<td>WS/Chrome/更新/授权状态</td>
|
||
<td>topbar 芯片堆 + 全局提示条(3-4 处)</td>
|
||
<td class="cut">收敛:状态栏 + 右轨票据卡 + 更新横幅(低频事件)</td>
|
||
<td>常驻态进状态栏,异常态才升级为横幅/卡片,topbar 不再堆芯片</td>
|
||
</tr>
|
||
<tr>
|
||
<td>authExpired / 票据</td>
|
||
<td>顶部橙色横幅(挤占布局)</td>
|
||
<td class="moved">右轨·授权票据卡(剩余天数 + 刷新)</td>
|
||
<td>7 天倒计时是持续性状态,横幅只该在临期/过期时出现</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
|
||
<script>
|
||
function switchView(v) {
|
||
document.querySelectorAll('.view').forEach(el => el.classList.toggle('on', el.id === 'view-' + v))
|
||
document.querySelectorAll('.nv').forEach(el => el.classList.toggle('active', el.dataset.view === v))
|
||
document.querySelectorAll('.sc-rail').forEach(el => el.classList.toggle('active', v === 'run'))
|
||
document.querySelector('.center').scrollTop = 0
|
||
}
|
||
function setRun(s) {
|
||
const card = document.getElementById('run-card')
|
||
card.dataset.state = s
|
||
card.classList.toggle('live', s === 'running')
|
||
document.querySelectorAll('.state-pill').forEach(el => el.classList.toggle('on', el.dataset.s === s))
|
||
}
|
||
</script>
|
||
</body>
|
||
</html>
|