index-f82622db.js 9.9 KB

1
  1. import{d as ce,h as me,u as de,r as c,e as fe,k as ye,aj as ke,P as we,o as n,c as S,f as a,w as l,a as t,Q,F as W,n as he,q as i,m as u,v as f,g as q,t as g,O as X,N as B,ai as ve,U as ge,z as be,x as Ce,y as Ve,_ as xe,B as De,C as Ue,D as Se,ak as Te,d2 as Pe,G as qe,H as Be,__tla as Me}from"./index-2eab2d23.js";import{_ as Ne,__tla as Re}from"./Dialog-c2716df6.js";import{_ as Ee,__tla as Oe}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as ze,__tla as Fe}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as Ge,__tla as je}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as Ae,D as $,__tla as Ie}from"./dict-1ad71b6f.js";import{d as Le,f as Ke,__tla as Ye}from"./formatTime-41155543.js";import{j as He,__tla as Qe}from"./bpmn-embedded-7a47b8f8.js";import{a as We,d as Xe,b as $e,e as Je,g as Ze,__tla as ea}from"./index-762c49bf.js";import{g as aa,__tla as la}from"./index-33fac884.js";import{_ as ta,__tla as ra}from"./ModelForm.vue_vue_type_script_setup_true_lang-cb37572e.js";import{_ as oa,__tla as na}from"./ModelImportForm.vue_vue_type_script_setup_true_lang-3630e683.js";import{b as ia}from"./formCreate-a3356cdc.js";import{u as sa,__tla as pa}from"./useMessage-171aa63e.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ua}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as _a}from"./el-card-c558f0ec.js";import{__tla as ca}from"./XTextButton-caeba438.js";import{__tla as ma}from"./XTextButton.vue_vue_type_style_index_0_scoped_7561ab3f_lang-e264c7bf.js";import{__tla as da}from"./XButton-f05c5131.js";import{__tla as fa}from"./el-collapse-item-5ecf4321.js";import{__tla as ya}from"./el-link-f0d278a2.js";import{__tla as ka}from"./el-drawer-7ad3d607.js";let J,wa=Promise.all([(()=>{try{return Me}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ka}catch{}})()]).then(async()=>{let M,N;M={key:2},N={key:0},J=ce({name:"BpmModel",__name:"index",setup(ha){const w=sa(),{t:R}=me(),{push:b}=de(),T=c(!0),E=c(0),O=c([]),s=fe({pageNo:1,pageSize:10,key:void 0,name:void 0,category:void 0}),z=c(),y=async()=>{T.value=!0;try{const d=await We(s);O.value=d.list,E.value=d.total}finally{T.value=!1}},C=()=>{s.pageNo=1,y()},Z=()=>{z.value.resetFields(),C()},F=c(),G=(d,r)=>{F.value.open(d,r)},j=c(),ee=()=>{j.value.open()},V=c(!1),P=c({rule:[],option:{}}),A=async d=>{if(d.formType==10){const r=await aa(d.formId);ia(P,r.conf,r.fields),V.value=!0}else await b({path:d.formCustomCreatePath})},x=c(!1),h=c(null),I=c({prefix:"flowable"});return ye(()=>{y()}),(d,r)=>{const L=ge,D=be,ae=Ce,le=Ve,U=xe,p=De,te=Ue,K=Ge,m=Se,re=ze,Y=Te,oe=Pe,ne=qe,ie=Ee,se=ke("form-create"),H=Ne,k=we("hasPermi"),pe=Be;return n(),S(W,null,[a(K,null,{default:l(()=>[a(te,{class:"-mb-15px",model:t(s),ref_key:"queryFormRef",ref:z,inline:!0,"label-width":"68px"},{default:l(()=>[a(D,{label:"\u6D41\u7A0B\u6807\u8BC6",prop:"key"},{default:l(()=>[a(L,{modelValue:t(s).key,"onUpdate:modelValue":r[0]||(r[0]=e=>t(s).key=e),placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u6807\u8BC6",clearable:"",onKeyup:Q(C,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(D,{label:"\u6D41\u7A0B\u540D\u79F0",prop:"name"},{default:l(()=>[a(L,{modelValue:t(s).name,"onUpdate:modelValue":r[1]||(r[1]=e=>t(s).name=e),placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",clearable:"",onKeyup:Q(C,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(D,{label:"\u6D41\u7A0B\u5206\u7C7B",prop:"category"},{default:l(()=>[a(le,{modelValue:t(s).category,"onUpdate:modelValue":r[2]||(r[2]=e=>t(s).category=e),placeholder:"\u8BF7\u9009\u62E9\u6D41\u7A0B\u5206\u7C7B",clearable:"",class:"!w-240px"},{default:l(()=>[(n(!0),S(W,null,he(t(Ae)(t($).BPM_MODEL_CATEGORY),e=>(n(),i(ae,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(D,null,{default:l(()=>[a(p,{onClick:C},{default:l(()=>[a(U,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),a(p,{onClick:Z},{default:l(()=>[a(U,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),f((n(),i(p,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>G("create"))},{default:l(()=>[a(U,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u5EFA\u6D41\u7A0B ")]),_:1})),[[k,["bpm:model:create"]]]),f((n(),i(p,{type:"success",plain:"",onClick:ee},{default:l(()=>[a(U,{icon:"ep:upload",class:"mr-5px"}),u(" \u5BFC\u5165\u6D41\u7A0B ")]),_:1})),[[k,["bpm:model:import"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(K,null,{default:l(()=>[f((n(),i(ne,{data:t(O)},{default:l(()=>[a(m,{label:"\u6D41\u7A0B\u6807\u8BC6",align:"center",prop:"key",width:"200"}),a(m,{label:"\u6D41\u7A0B\u540D\u79F0",align:"center",prop:"name",width:"200"},{default:l(e=>[a(p,{type:"primary",link:"",onClick:_=>(async o=>{const v=await Ze(o.id);h.value=v.bpmnXml||"",x.value=!0})(e.row)},{default:l(()=>[q("span",null,g(e.row.name),1)]),_:2},1032,["onClick"])]),_:1}),a(m,{label:"\u6D41\u7A0B\u5206\u7C7B",align:"center",prop:"category",width:"100"},{default:l(e=>[a(re,{type:t($).BPM_MODEL_CATEGORY,value:e.row.category},null,8,["type","value"])]),_:1}),a(m,{label:"\u8868\u5355\u4FE1\u606F",align:"center",prop:"formType",width:"200"},{default:l(e=>[e.row.formType===10?(n(),i(p,{key:0,type:"primary",link:"",onClick:_=>A(e.row)},{default:l(()=>[q("span",null,g(e.row.formName),1)]),_:2},1032,["onClick"])):e.row.formType===20?(n(),i(p,{key:1,type:"primary",link:"",onClick:_=>A(e.row)},{default:l(()=>[q("span",null,g(e.row.formCustomCreatePath),1)]),_:2},1032,["onClick"])):(n(),S("label",M,"\u6682\u65E0\u8868\u5355"))]),_:1}),a(m,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(Le)},null,8,["formatter"]),a(m,{label:"\u6700\u65B0\u90E8\u7F72\u7684\u6D41\u7A0B\u5B9A\u4E49",align:"center"},{default:l(()=>[a(m,{label:"\u6D41\u7A0B\u7248\u672C",align:"center",prop:"processDefinition.version",width:"100"},{default:l(e=>[e.row.processDefinition?(n(),i(Y,{key:0},{default:l(()=>[u(" v"+g(e.row.processDefinition.version),1)]),_:2},1024)):(n(),i(Y,{key:1,type:"warning"},{default:l(()=>[u("\u672A\u90E8\u7F72")]),_:1}))]),_:1}),a(m,{label:"\u6FC0\u6D3B\u72B6\u6001",align:"center",prop:"processDefinition.version",width:"85"},{default:l(e=>[e.row.processDefinition?(n(),i(oe,{key:0,modelValue:e.row.processDefinition.suspensionState,"onUpdate:modelValue":_=>e.row.processDefinition.suspensionState=_,"active-value":1,"inactive-value":2,onChange:_=>(async o=>{const v=o.processDefinition.suspensionState;try{const ue=o.id,_e="\u662F\u5426\u786E\u8BA4"+(v===1?"\u6FC0\u6D3B":"\u6302\u8D77")+'\u6D41\u7A0B\u540D\u5B57\u4E3A"'+o.name+'"\u7684\u6570\u636E\u9879?';await w.confirm(_e),await $e(ue,v),await y()}catch{o.processDefinition.suspensionState=v===1?2:1}})(e.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])):X("",!0)]),_:1}),a(m,{label:"\u90E8\u7F72\u65F6\u95F4",align:"center",prop:"deploymentTime",width:"180"},{default:l(e=>[e.row.processDefinition?(n(),S("span",N,g(t(Ke)(e.row.processDefinition.deploymentTime)),1)):X("",!0)]),_:1})]),_:1}),a(m,{label:"\u64CD\u4F5C",align:"center",width:"240",fixed:"right"},{default:l(e=>[f((n(),i(p,{link:"",type:"primary",onClick:_=>G("update",e.row.id)},{default:l(()=>[u(" \u4FEE\u6539\u6D41\u7A0B ")]),_:2},1032,["onClick"])),[[k,["bpm:model:update"]]]),f((n(),i(p,{link:"",type:"primary",onClick:_=>{return o=e.row,void b({name:"BpmModelEditor",query:{modelId:o.id}});var o}},{default:l(()=>[u(" \u8BBE\u8BA1\u6D41\u7A0B ")]),_:2},1032,["onClick"])),[[k,["bpm:model:update"]]]),f((n(),i(p,{link:"",type:"primary",onClick:_=>{return o=e.row,void b({name:"BpmTaskAssignRuleList",query:{modelId:o.id}});var o}},{default:l(()=>[u(" \u5206\u914D\u89C4\u5219 ")]),_:2},1032,["onClick"])),[[k,["bpm:task-assign-rule:query"]]]),f((n(),i(p,{link:"",type:"primary",onClick:_=>(async o=>{try{await w.confirm("\u662F\u5426\u90E8\u7F72\u8BE5\u6D41\u7A0B\uFF01\uFF01"),await Je(o.id),w.success(R("\u90E8\u7F72\u6210\u529F")),await y()}catch{}})(e.row)},{default:l(()=>[u(" \u53D1\u5E03\u6D41\u7A0B ")]),_:2},1032,["onClick"])),[[k,["bpm:model:deploy"]]]),f((n(),i(p,{link:"",type:"primary",onClick:_=>{return o=e.row,void b({name:"BpmProcessDefinition",query:{key:o.key}});var o}},{default:l(()=>[u(" \u6D41\u7A0B\u5B9A\u4E49 ")]),_:2},1032,["onClick"])),[[k,["bpm:process-definition:query"]]]),f((n(),i(p,{link:"",type:"danger",onClick:_=>(async o=>{try{await w.delConfirm(),await Xe(o),w.success(R("common.delSuccess")),await y()}catch{}})(e.row.id)},{default:l(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[k,["bpm:model:delete"]]])]),_:1})]),_:1},8,["data"])),[[pe,t(T)]]),a(ie,{total:t(E),page:t(s).pageNo,"onUpdate:page":r[4]||(r[4]=e=>t(s).pageNo=e),limit:t(s).pageSize,"onUpdate:limit":r[5]||(r[5]=e=>t(s).pageSize=e),onPagination:y},null,8,["total","page","limit"])]),_:1}),a(ta,{ref_key:"formRef",ref:F,onSuccess:y},null,512),a(oa,{ref_key:"importFormRef",ref:j,onSuccess:y},null,512),a(H,{title:"\u8868\u5355\u8BE6\u60C5",modelValue:t(V),"onUpdate:modelValue":r[6]||(r[6]=e=>B(V)?V.value=e:null),width:"800"},{default:l(()=>[a(se,{rule:t(P).rule,option:t(P).option},null,8,["rule","option"])]),_:1},8,["modelValue"]),a(H,{title:"\u6D41\u7A0B\u56FE",modelValue:t(x),"onUpdate:modelValue":r[8]||(r[8]=e=>B(x)?x.value=e:null),width:"800"},{default:l(()=>[a(t(He),ve({key:"designer",modelValue:t(h),"onUpdate:modelValue":r[7]||(r[7]=e=>B(h)?h.value=e:null),value:t(h)},t(I),{prefix:t(I).prefix}),null,16,["modelValue","value","prefix"])]),_:1},8,["modelValue"])],64)}}})});export{wa as __tla,J as default};