chore: 同步最新前端构建产物到 backend/static
This commit is contained in:
1 parent
0b404b4611
commit
9bf35b369c
134 files changed
+480
-2
No files matched your search
@@ -0,0 +1 @@
|
||||
import{r as l,u as Q,j as e,L as D,B as $,Q as V,V as R,X as z,t as Y,W as X,P as H}from"./index-CwVkcMR-.js";import{C as K,a as Z}from"./card-C5qBu7CR.js";import{t as _}from"./index-Dxvx0mlR.js";import{a as C}from"./approval-DOWuQTU9.js";import{P as J}from"./plus-CaJ-dB4A.js";import{S as B}from"./star-BY-sYfNe.js";import{C as ee}from"./chevron-up-DM77dvsL.js";import{P as F}from"./play-_cqG4jyc.js";import{P as se}from"./pen-BT_2xx_Z.js";import{T as G}from"./trash-2-BPpnm3Sz.js";import{A as ae,a as te}from"./arrow-up-Tz6HpGg2.js";const re={resource:"资源申请",app:"应用申请",permission:"权限审批"},L={submit:"提交阶段",audit:"审核阶段",execute:"执行阶段"},O={submit:"bg-blue-500/15 text-blue-400 border-blue-500/30",audit:"bg-purple-500/15 text-purple-400 border-purple-500/30",execute:"bg-green-500/15 text-green-400 border-green-500/30"},oe={submit:X,audit:Y,execute:F},pe=[{value:"submit",label:"提交阶段",desc:"工单提交人"},{value:"audit",label:"审核阶段",desc:"审核人员审批"},{value:"execute",label:"执行阶段",desc:"执行人员操作"}];function le({users:i,selectedIds:x,label:v,onToggle:j,onToggleAll:y,onClear:f,getUserName:W}){const[m,N]=l.useState(!1),b=l.useRef(null),[k,p]=l.useState({top:0,left:0,width:0}),h=()=>{if(b.current){const c=b.current.getBoundingClientRect();p({top:c.bottom+4,left:c.left,width:c.width})}};return e.jsxs("div",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:112:5",className:"relative",children:[e.jsxs("button",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:113:7",ref:b,type:"button",onClick:()=>{m||h(),N(!m)},className:`w-full flex items-center justify-between px-3 py-2 rounded-lg text-sm transition-colors ${x.length===0?"bg-[var(--dg-bg-tertiary)] border border-red-500/40 text-[var(--dg-text-muted)]":"bg-[var(--dg-bg-tertiary)] border border-[var(--dg-border)] text-[var(--dg-text-primary)]"}`,children:[e.jsx("span",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:123:9",className:"truncate",children:x.length===0?`${v} * 请选择`:`${v} (${x.length}人)`}),e.jsx(R,{"code-path":"src/pages/ApprovalWorkflowPage.tsx:126:9",className:`w-4 h-4 text-[var(--dg-text-muted)] transition-transform ${m?"rotate-180":""}`})]}),x.length>1&&e.jsx("div",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:130:9",className:"flex flex-wrap gap-1 mt-1.5",children:x.map(c=>e.jsxs("span",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:132:13",className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] bg-blue-500/15 text-blue-400",children:[W(c),e.jsx("button",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:134:15",onClick:()=>j(c),className:"hover:text-red-400",children:e.jsx(z,{"code-path":"src/pages/ApprovalWorkflowPage.tsx:134:84",className:"w-3 h-3"})})]},c))}),m&&e.jsxs(e.Fragment,{children:[e.jsx("div",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:142:11",className:"fixed inset-0 z-40",onClick:()=>N(!1)}),e.jsxs("div",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:143:11",className:"fixed z-50 bg-[var(--dg-bg-secondary)] border border-[var(--dg-border)] rounded-lg shadow-xl max-h-52 overflow-y-auto",style:{top:k.top,left:k.left,width:k.width},children:[e.jsxs("div",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:145:13",className:"flex items-center justify-between px-3 py-2 border-b border-[var(--dg-border)]",children:[e.jsx("button",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:146:15",onClick:y,className:"text-[11px] text-blue-400 hover:text-blue-300",children:x.length===i.length&&i.length>0?"取消全选":"全选"}),x.length>0&&e.jsx("button",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:150:17",onClick:f,className:"text-[11px] text-red-400 hover:text-red-300",children:"清空"})]}),i.map(c=>{const w=x.includes(c.id);return e.jsxs("div",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:156:17",onClick:()=>j(c.id),className:"flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:bg-[var(--dg-bg-hover)] transition-colors",children:[e.jsx("div",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:158:19",className:`w-4 h-4 rounded border flex items-center justify-center flex-shrink-0 ${w?"bg-blue-500 border-blue-500":"border-[var(--dg-border)]"}`,children:w&&e.jsx(H,{"code-path":"src/pages/ApprovalWorkflowPage.tsx:161:33",className:"w-3 h-3 text-white"})}),e.jsx("span",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:163:19",className:`text-sm flex-1 ${w?"text-[var(--dg-text-primary)]":"text-[var(--dg-text-secondary)]"}`,children:c.display_name||c.username}),e.jsx("span",{"code-path":"src/pages/ApprovalWorkflowPage.tsx:166:19",className:"text-[10px] text-[var(--dg-text-muted)] px-1.5 py-0.5 rounded bg-[var(--dg-bg-tertiary)]",children:c.role})]},c.id)})]})]})]})}function ce({workflow:i,users:x,onClose:v,onSaved:j}){const y=!!i,[f,W]=l.useState(i?.name||""),[m,N]=l.useState(i?.description||""),[b,k]=l.useState(i?.category||"resource"),[p,h]=l.useState([]),[c,w]=l.useState(!1),[E,P]=l.useState("");l.useEffect(()=>{i?.steps?.leLine truncated
|
||||
Reference in new issue
Block a user