1 |
- import{d as O,u as G,M as I,r as i,g as J,y as K,h as Q,S as Y,o as _,c as H,i as l,w as t,C as q,a as e,k as s,j as C,t as w,l as m,R as z,Q as b,ak as W,F as X,J as Z,q as $,al as aa,K as ta,L as ea,__tla as la}from"./index-abaca7e8.js";import{_ as ra,__tla as oa}from"./Dialog-a2f7c92a.js";import{_ as _a,__tla as na}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9818245e.js";import{_ as ia,__tla as sa}from"./index.vue_vue_type_script_setup_true_lang-f7ebf07b.js";import{_ as ua,__tla as pa}from"./DictTag.vue_vue_type_script_lang-c84a7172.js";import{D as ma,__tla as ca}from"./dict-885a7988.js";import{d as da,__tla as fa}from"./formatTime-0c1ba065.js";import{j as ya,__tla as ha}from"./bpmn-embedded-bcf60ce7.js";import{g as wa,a as ga,__tla as ka}from"./index-577c0316.js";import{b as va}from"./formCreate-a3356cdc.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ca}from"./el-card-ff5a526a.js";import{__tla as ba}from"./index-e37a1056.js";import"./color-6e929987.js";import{__tla as Va}from"./XTextButton-3e2fefac.js";import{__tla as xa}from"./XTextButton.vue_vue_type_style_index_0_scoped_7561ab3f_lang-1ce97350.js";import{__tla as Pa}from"./XButton-6035d2d9.js";import{__tla as Sa}from"./el-collapse-item-7f56b196.js";import{__tla as Ta}from"./el-link-4b1b248f.js";import{__tla as Na}from"./useMessage-7c79d01b.js";import{__tla as Ua}from"./el-drawer-ab5e3d00.js";let D,qa=Promise.all([(()=>{try{return la}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ua}catch{}})()]).then(async()=>{D=O({name:"BpmProcessDefinition",__name:"index",setup(za){const{push:V}=G(),{query:L}=I(),g=i(!0),x=i(0),P=i([]),u=J({pageNo:1,pageSize:10,key:L.key}),S=async()=>{g.value=!0;try{const n=await wa(u);P.value=n.list,x.value=n.total}finally{g.value=!1}},c=i(!1),k=i({rule:[],option:{}}),T=async n=>{n.formType==10?(va(k,n.formConf,n.formFields),c.value=!0):await V({path:n.formCustomCreatePath})},d=i(!1),p=i(null),N=i({prefix:"flowable"});return K(()=>{S()}),(n,r)=>{const o=Z,f=$,R=ua,y=aa,B=ta,M=ia,j=_a,A=Q("form-create"),U=ra,E=Y("hasPermi"),F=ea;return _(),H(X,null,[l(j,null,{default:t(()=>[q((_(),s(B,{data:e(P)},{default:t(()=>[l(o,{label:"\u5B9A\u4E49\u7F16\u53F7",align:"center",prop:"id",width:"400"}),l(o,{label:"\u6D41\u7A0B\u540D\u79F0",align:"center",prop:"name",width:"200"},{default:t(a=>[l(f,{type:"primary",link:"",onClick:v=>(async h=>{p.value=await ga(h.id),d.value=!0})(a.row)},{default:t(()=>[C("span",null,w(a.row.name),1)]),_:2},1032,["onClick"])]),_:1}),l(o,{label:"\u5B9A\u4E49\u5206\u7C7B",align:"center",prop:"category",width:"100"},{default:t(a=>[l(R,{type:e(ma).BPM_MODEL_CATEGORY,value:a.row.category},null,8,["type","value"])]),_:1}),l(o,{label:"\u8868\u5355\u4FE1\u606F",align:"center",prop:"formType",width:"200"},{default:t(a=>[a.row.formType===10?(_(),s(f,{key:0,type:"primary",link:"",onClick:v=>T(a.row)},{default:t(()=>[C("span",null,w(a.row.formName),1)]),_:2},1032,["onClick"])):(_(),s(f,{key:1,type:"primary",link:"",onClick:v=>T(a.row)},{default:t(()=>[C("span",null,w(a.row.formCustomCreatePath),1)]),_:2},1032,["onClick"]))]),_:1}),l(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}),l(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})):z("",!0),a.row.suspensionState===2?(_(),s(y,{key:1,type:"warning"},{default:t(()=>[m("\u6302\u8D77")]),_:1})):z("",!0)]),_:1}),l(o,{label:"\u90E8\u7F72\u65F6\u95F4",align:"center",prop:"deploymentTime",width:"180",formatter:e(da)},null,8,["formatter"]),l(o,{label:"\u5B9A\u4E49\u63CF\u8FF0",align:"center",prop:"description",width:"300","show-overflow-tooltip":""}),l(o,{label:"\u64CD\u4F5C",align:"center",width:"150",fixed:"right"},{default:t(a=>[q((_(),s(f,{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"])),[[F,e(g)]]),l(M,{total:e(x),page:e(u).pageNo,"onUpdate:page":r[0]||(r[0]=a=>e(u).pageNo=a),limit:e(u).pageSize,"onUpdate:limit":r[1]||(r[1]=a=>e(u).pageSize=a),onPagination:S},null,8,["total","page","limit"])]),_:1}),l(U,{title:"\u8868\u5355\u8BE6\u60C5",modelValue:e(c),"onUpdate:modelValue":r[2]||(r[2]=a=>b(c)?c.value=a:null),width:"800"},{default:t(()=>[l(A,{rule:e(k).rule,option:e(k).option},null,8,["rule","option"])]),_:1},8,["modelValue"]),l(U,{title:"\u6D41\u7A0B\u56FE",modelValue:e(d),"onUpdate:modelValue":r[4]||(r[4]=a=>b(d)?d.value=a:null),width:"800"},{default:t(()=>[l(e(ya),W({key:"designer",modelValue:e(p),"onUpdate:modelValue":r[3]||(r[3]=a=>b(p)?p.value=a:null),value:e(p)},e(N),{prefix:e(N).prefix}),null,16,["modelValue","value","prefix"])]),_:1},8,["modelValue"])],64)}}})});export{qa as __tla,D as default};
|