/* empty css                  *//* empty css                        *//* empty css                    *//* empty css                  *//* empty css               */import{d as g,r as x,c as h,a as r,b as t,u as k,w as a,i as v,ad as C,o as w,e as i,af as B,t as E,A as y,a0 as p,ab as T,H as z,_ as $}from"./index-hZHbf6Qq.js";import{P as N}from"./index-C__Mp2q5.js";/* empty css                                                              *//* empty css                        *//* empty css                  *//* empty css                             *//* empty css                 *//* empty css                      */const V={class:"approval-flow-container"},A={class:"page-header"},D=g({__name:"index",setup(F){const d=z(),c=x([{id:1,name:"物资采购审批",status:"生效"},{id:2,name:"流程名称",status:"生效"},{id:3,name:"测试流程",status:"生效"}]),m=()=>{d.push("/organization/approvalFlow/create")},u=s=>{p.info(`编辑流程：${s.name}`)},_=s=>{T.confirm(`确定要禁用"${s.name}"吗？`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{s.status="禁用",p.success("已禁用")}).catch(()=>{})};return(s,e)=>{const l=v,n=B,f=C;return w(),h("div",V,[r("div",A,[t(k(N),{title:"审批流程"}),t(l,{type:"danger",onClick:m},{default:a(()=>[...e[0]||(e[0]=[i("新增流程",-1)])]),_:1})]),t(f,{data:c.value,border:""},{default:a(()=>[t(n,{prop:"id",label:"序号",width:"100",align:"center"}),t(n,{prop:"name",label:"流程名称","min-width":"200"}),t(n,{prop:"status",label:"流程状态","min-width":"150"},{default:a(({row:o})=>[r("span",{class:y(["status-text",o.status==="生效"?"active":""])},E(o.status),3)]),_:1}),t(n,{label:"操作",width:"150",align:"center"},{default:a(({row:o})=>[t(l,{type:"primary",link:"",size:"small",onClick:b=>u(o)},{default:a(()=>[...e[1]||(e[1]=[i("编辑",-1)])]),_:1},8,["onClick"]),t(l,{type:"danger",link:"",size:"small",onClick:b=>_(o)},{default:a(()=>[...e[2]||(e[2]=[i("禁用",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])])}}}),Q=$(D,[["__scopeId","data-v-2f78257e"]]);export{Q as default};
