1 |
- import{d as I,u as M,I as R,r as i,e as H,k as Y,aj as J,P as K,o as _,c as Q,f as r,w as t,v as S,a as e,q as s,g as C,t as w,m,O as q,N as b,ai as W,F as X,D as Z,B as $,ak as aa,G as ta,H as ea,__tla as ra}from"./index-2eab2d23.js";import{_ as la,__tla as oa}from"./Dialog-c2716df6.js";import{_ as _a,__tla as na}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{_ as ia,__tla as sa}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as ua,__tla as pa}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{D as ma,__tla as ca}from"./dict-1ad71b6f.js";import{d as fa,__tla as da}from"./formatTime-41155543.js";import{j as ya,__tla as ha}from"./bpmn-embedded-7a47b8f8.js";import{g as wa,a as ga,__tla as ka}from"./index-2d19ea81.js";import{b as va}from"./formCreate-a3356cdc.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ca}from"./el-card-c558f0ec.js";import{__tla as ba}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Va}from"./XTextButton-caeba438.js";import{__tla as Pa}from"./XTextButton.vue_vue_type_style_index_0_scoped_7561ab3f_lang-e264c7bf.js";import{__tla as xa}from"./XButton-f05c5131.js";import{__tla as Ta}from"./el-collapse-item-5ecf4321.js";import{__tla as Ua}from"./el-link-f0d278a2.js";import{__tla as Da}from"./useMessage-171aa63e.js";import{__tla as Na}from"./el-drawer-7ad3d607.js";let z,Sa=Promise.all([(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Na}catch{}})()]).then(async()=>{z=I({name:"BpmProcessDefinition",__name:"index",setup(qa){const{push:V}=M(),{query:B}=R(),g=i(!0),P=i(0),x=i([]),u=H({pageNo:1,pageSize:10,key:B.key}),T=async()=>{g.value=!0;try{const n=await wa(u);x.value=n.list,P.value=n.total}finally{g.value=!1}},c=i(!1),k=i({rule:[],option:{}}),U=async n=>{n.formType==10?(va(k,n.formConf,n.formFields),c.value=!0):await V({path:n.formCustomCreatePath})},f=i(!1),p=i(null),D=i({prefix:"flowable"});return Y(()=>{T()}),(n,l)=>{const o=Z,d=$,F=ua,y=aa,L=ta,O=ia,j=_a,A=J("form-create"),N=la,E=K("hasPermi"),G=ea;return _(),Q(X,null,[r(j,null,{default:t(()=>[S((_(),s(L,{data:e(x)},{default:t(()=>[r(o,{label:"\u5B9A\u4E49\u7F16\u53F7",align:"center",prop:"id",width:"400"}),r(o,{label:"\u6D41\u7A0B\u540D\u79F0",align:"center",prop:"name",width:"200"},{default:t(a=>[r(d,{type:"primary",link:"",onClick:v=>(async h=>{p.value=await ga(h.id),f.value=!0})(a.row)},{default:t(()=>[C("span",null,w(a.row.name),1)]),_:2},1032,["onClick"])]),_:1}),r(o,{label:"\u5B9A\u4E49\u5206\u7C7B",align:"center",prop:"category",width:"100"},{default:t(a=>[r(F,{type:e(ma).BPM_MODEL_CATEGORY,value:a.row.category},null,8,["type","value"])]),_:1}),r(o,{label:"\u8868\u5355\u4FE1\u606F",align:"center",prop:"formType",width:"200"},{default:t(a=>[a.row.formType===10?(_(),s(d,{key:0,type:"primary",link:"",onClick:v=>U(a.row)},{default:t(()=>[C("span",null,w(a.row.formName),1)]),_:2},1032,["onClick"])):(_(),s(d,{key:1,type:"primary",link:"",onClick:v=>U(a.row)},{default:t(()=>[C("span",null,w(a.row.formCustomCreatePath),1)]),_:2},1032,["onClick"]))]),_:1}),r(o,{label:"\u6D41\u7A0B\u7248\u672C",align:"center",prop:"processDefinition.version",width:"80"},{default:t(a=>[a.row?(_(),s(y,{key:0},{default:t(()=>[m("v"+w(a.row.version),1)]),_:2},1024)):(_(),s(y,{key:1,type:"warning"},{default:t(()=>[m("\u672A\u90E8\u7F72")]),_:1}))]),_:1}),r(o,{label:"\u72B6\u6001",align:"center",prop:"version",width:"80"},{default:t(a=>[a.row.suspensionState===1?(_(),s(y,{key:0,type:"success"},{default:t(()=>[m("\u6FC0\u6D3B")]),_:1})):q("",!0),a.row.suspensionState===2?(_(),s(y,{key:1,type:"warning"},{default:t(()=>[m("\u6302\u8D77")]),_:1})):q("",!0)]),_:1}),r(o,{label:"\u90E8\u7F72\u65F6\u95F4",align:"center",prop:"deploymentTime",width:"180",formatter:e(fa)},null,8,["formatter"]),r(o,{label:"\u5B9A\u4E49\u63CF\u8FF0",align:"center",prop:"description",width:"300","show-overflow-tooltip":""}),r(o,{label:"\u64CD\u4F5C",align:"center",width:"150",fixed:"right"},{default:t(a=>[S((_(),s(d,{link:"",type:"primary",onClick:v=>{return h=a.row,void V({name:"BpmTaskAssignRuleList",query:{modelId:h.id}});var h}},{default:t(()=>[m(" \u5206\u914D\u89C4\u5219 ")]),_:2},1032,["onClick"])),[[E,["bpm:task-assign-rule:query"]]])]),_:1})]),_:1},8,["data"])),[[G,e(g)]]),r(O,{total:e(P),page:e(u).pageNo,"onUpdate:page":l[0]||(l[0]=a=>e(u).pageNo=a),limit:e(u).pageSize,"onUpdate:limit":l[1]||(l[1]=a=>e(u).pageSize=a),onPagination:T},null,8,["total","page","limit"])]),_:1}),r(N,{title:"\u8868\u5355\u8BE6\u60C5",modelValue:e(c),"onUpdate:modelValue":l[2]||(l[2]=a=>b(c)?c.value=a:null),width:"800"},{default:t(()=>[r(A,{rule:e(k).rule,option:e(k).option},null,8,["rule","option"])]),_:1},8,["modelValue"]),r(N,{title:"\u6D41\u7A0B\u56FE",modelValue:e(f),"onUpdate:modelValue":l[4]||(l[4]=a=>b(f)?f.value=a:null),width:"800"},{default:t(()=>[r(e(ya),W({key:"designer",modelValue:e(p),"onUpdate:modelValue":l[3]||(l[3]=a=>b(p)?p.value=a:null),value:e(p)},e(D),{prefix:e(D).prefix}),null,16,["modelValue","value","prefix"])]),_:1},8,["modelValue"])],64)}}})});export{Sa as __tla,z as default};
|