From a072268a7aa57e615ea0bd654dfd07938665e66f Mon Sep 17 00:00:00 2001 From: cft0808 Date: Mon, 23 Feb 2026 22:43:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B5=81=E7=A8=8B=E7=AE=A1=E7=BA=BF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=89=E7=9C=81=E5=85=AD=E9=83=A8=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/dashboard.html | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/dashboard/dashboard.html b/dashboard/dashboard.html index fd0066c..822ee42 100644 --- a/dashboard/dashboard.html +++ b/dashboard/dashboard.html @@ -94,9 +94,11 @@ .pipe-title{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.05em;text-transform:uppercase;margin-bottom:12px} .pipe{display:flex;align-items:center;gap:0;overflow-x:auto;padding-bottom:4px} .pipe-stage{display:flex;align-items:center;flex-shrink:0} - .pn{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 16px;border-radius:10px;min-width:90px;cursor:default} + .pn{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 14px;border-radius:10px;min-width:80px;cursor:default} .pn.has-tasks{background:#1a2040;border:1px solid var(--acc)} .pn-icon{font-size:20px} + .pn-dept{font-size:11px;font-weight:700;color:var(--text);margin-bottom:1px} + .pn.has-tasks .pn-dept{color:var(--acc)} .pn-label{font-size:10px;color:var(--muted)} .pn.has-tasks .pn-label{color:var(--acc)} .pn-count{font-size:11px;font-weight:700;color:var(--acc)} @@ -395,13 +397,13 @@ const ORG_COLOR = {'中书省':'var(--r0)','门下省':'var(--r1)','尚书省':' const STATE_LABEL = {Inbox:'收件箱',Zhongshu:'中书规划',Menxia:'门下审议',Assigned:'已派发',Doing:'执行中',Review:'待审查',Done:'已完成',Blocked:'阻塞',Next:'待执行'}; const STATE_ORDER = ['Inbox','Zhongshu','Menxia','Assigned','Doing','Review','Done','Blocked','Next']; const PIPE_STAGES = [ - {key:'Inbox', label:'收件', icon:'📥'}, - {key:'Zhongshu', label:'规划', icon:'📜'}, - {key:'Menxia', label:'审议', icon:'🔍'}, - {key:'Assigned', label:'派发', icon:'📮'}, - {key:'Doing', label:'执行', icon:'⚙️'}, - {key:'Review', label:'审查', icon:'🔎'}, - {key:'Done', label:'完成', icon:'✅'}, + {key:'Inbox', label:'收件', icon:'📥', dept:'皇上'}, + {key:'Zhongshu', label:'规划', icon:'📜', dept:'中书省'}, + {key:'Menxia', label:'审议', icon:'🔍', dept:'门下省'}, + {key:'Assigned', label:'派发', icon:'📮', dept:'尚书省'}, + {key:'Doing', label:'执行', icon:'⚙️', dept:'六部'}, + {key:'Review', label:'审查', icon:'🔎', dept:'尚书省'}, + {key:'Done', label:'完成', icon:'✅', dept:'回奏'}, ]; /* ════════════════════════════ @@ -458,8 +460,9 @@ function renderPipeline(tasks){ return `
${st.icon}
+
${st.dept}
${st.label}
- ${n>0?`
${n}
`:''} + ${n>0?`
${n} 件
`:''}
${i
`:''} `