index-7270919d.js 9.8 KB

1
  1. import{d as ce,B as me,u as de,r as c,g as fe,z as ye,h as we,T as ke,o as n,c as T,i as a,w as l,a as t,U as J,F as X,C as he,k as i,l as u,D as f,j as M,t as g,S as Z,R as P,al as ve,Y as ge,I as be,G as Ce,H as Ve,n as xe,s as De,J as Se,K as Te,am as Ue,d2 as Be,L as Me,M as Pe,_ as Re,__tla as ze}from"./index-2f799233.js";import{_ as qe,__tla as Ee}from"./Dialog-6fd39e06.js";import{_ as Ne,__tla as Fe}from"./index-e6cd813f.js";import{_ as Ie,__tla as Ke}from"./DictTag-ea4c6cc2.js";import{_ as Le,__tla as Oe}from"./ContentWrap-9da801df.js";import{a as je,D as Q,__tla as Ae}from"./dict-20c916e2.js";import{d as Ge,f as Ye,__tla as He}from"./formatTime-2157894c.js";import{j as Je,__tla as Xe}from"./bpmn-embedded-81368235.js";import{a as Ze,d as Qe,b as We,e as $e,g as ea,__tla as aa}from"./index-f3a60ce9.js";import{g as la,__tla as ta}from"./index-32f3f77c.js";import ra,{__tla as oa}from"./ModelForm-989636b4.js";import na,{__tla as ia}from"./ModelImportForm-fb9d8d0f.js";import{b as sa}from"./formCreate-a3356cdc.js";import{u as pa,__tla as ua}from"./useMessage-e567ad40.js";import{__tla as _a}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as ca}from"./el-card-c64c83d1.js";import{__tla as ma}from"./XTextButton-ca69ef35.js";import{__tla as da}from"./XTextButton.vue_vue_type_style_index_0_scoped_bd4a9e34_lang-82a9ef41.js";import{__tla as fa}from"./XButton-12871131.js";import{__tla as ya}from"./el-collapse-item-086c9c49.js";import{__tla as wa}from"./el-link-23decf79.js";import{__tla as ka}from"./el-drawer-a8e04406.js";let W,ha=Promise.all([(()=>{try{return ze}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ia}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 wa}catch{}})(),(()=>{try{return ka}catch{}})()]).then(async()=>{let R,z;R={key:2},z={key:0},W=Re(ce({name:"BpmModel",__name:"index",setup(va){const k=pa(),{t:q}=me(),{push:b}=de(),U=c(!0),E=c(0),N=c([]),s=fe({pageNo:1,pageSize:10,key:void 0,name:void 0,category:void 0}),F=c(),y=async()=>{U.value=!0;try{const d=await Ze(s);N.value=d.list,E.value=d.total}finally{U.value=!1}},C=()=>{s.pageNo=1,y()},$=()=>{F.value.resetFields(),C()},I=c(),K=(d,r)=>{I.value.open(d,r)},L=c(),ee=()=>{L.value.open()},V=c(!1),B=c({rule:[],option:{}}),O=async d=>{if(d.formType==10){const r=await la(d.formId);sa(B,r.conf,r.fields),V.value=!0}else await b({path:d.formCustomCreatePath})},x=c(!1),h=c(null),j=c({prefix:"flowable"});return ye(()=>{y()}),(d,r)=>{const A=ge,D=be,ae=Ce,le=Ve,S=xe,p=De,te=Se,G=Le,m=Te,re=Ie,Y=Ue,oe=Be,ne=Me,ie=Ne,se=we("form-create"),H=qe,w=ke("hasPermi"),pe=Pe;return n(),T(X,null,[a(G,null,{default:l(()=>[a(te,{class:"-mb-15px",model:t(s),ref_key:"queryFormRef",ref:F,inline:!0,"label-width":"68px"},{default:l(()=>[a(D,{label:"\u6D41\u7A0B\u6807\u8BC6",prop:"key"},{default:l(()=>[a(A,{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:J(C,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(D,{label:"\u6D41\u7A0B\u540D\u79F0",prop:"name"},{default:l(()=>[a(A,{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:J(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),T(X,null,he(t(je)(t(Q).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(S,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),a(p,{onClick:$},{default:l(()=>[a(S,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),f((n(),i(p,{type:"primary",plain:"",onClick:r[3]||(r[3]=e=>K("create"))},{default:l(()=>[a(S,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u5EFA\u6D41\u7A0B ")]),_:1})),[[w,["bpm:model:create"]]]),f((n(),i(p,{type:"success",plain:"",onClick:ee},{default:l(()=>[a(S,{icon:"ep:upload",class:"mr-5px"}),u(" \u5BFC\u5165\u6D41\u7A0B ")]),_:1})),[[w,["bpm:model:import"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(G,null,{default:l(()=>[f((n(),i(ne,{data:t(N)},{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 ea(o.id);h.value=v.bpmnXml||"",x.value=!0})(e.row)},{default:l(()=>[M("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(Q).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:_=>O(e.row)},{default:l(()=>[M("span",null,g(e.row.formName),1)]),_:2},1032,["onClick"])):e.row.formType===20?(n(),i(p,{key:1,type:"primary",link:"",onClick:_=>O(e.row)},{default:l(()=>[M("span",null,g(e.row.formCustomCreatePath),1)]),_:2},1032,["onClick"])):(n(),T("label",R,"\u6682\u65E0\u8868\u5355"))]),_:1}),a(m,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(Ge)},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 k.confirm(_e),await We(ue,v),await y()}catch{o.processDefinition.suspensionState=v===1?2:1}})(e.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])):Z("",!0)]),_:1}),a(m,{label:"\u90E8\u7F72\u65F6\u95F4",align:"center",prop:"deploymentTime",width:"180"},{default:l(e=>[e.row.processDefinition?(n(),T("span",z,g(t(Ye)(e.row.processDefinition.deploymentTime)),1)):Z("",!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:_=>K("update",e.row.id)},{default:l(()=>[u(" \u4FEE\u6539\u6D41\u7A0B ")]),_:2},1032,["onClick"])),[[w,["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"])),[[w,["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"])),[[w,["bpm:task-assign-rule:query"]]]),f((n(),i(p,{link:"",type:"primary",onClick:_=>(async o=>{try{await k.confirm("\u662F\u5426\u90E8\u7F72\u8BE5\u6D41\u7A0B\uFF01\uFF01"),await $e(o.id),k.success(q("\u90E8\u7F72\u6210\u529F")),await y()}catch{}})(e.row)},{default:l(()=>[u(" \u53D1\u5E03\u6D41\u7A0B ")]),_:2},1032,["onClick"])),[[w,["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"])),[[w,["bpm:process-definition:query"]]]),f((n(),i(p,{link:"",type:"danger",onClick:_=>(async o=>{try{await k.delConfirm(),await Qe(o),k.success(q("common.delSuccess")),await y()}catch{}})(e.row.id)},{default:l(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["bpm:model:delete"]]])]),_:1})]),_:1},8,["data"])),[[pe,t(U)]]),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(ra,{ref_key:"formRef",ref:I,onSuccess:y},null,512),a(na,{ref_key:"importFormRef",ref:L,onSuccess:y},null,512),a(H,{title:"\u8868\u5355\u8BE6\u60C5",modelValue:t(V),"onUpdate:modelValue":r[6]||(r[6]=e=>P(V)?V.value=e:null),width:"800"},{default:l(()=>[a(se,{rule:t(B).rule,option:t(B).option},null,8,["rule","option"])]),_:1},8,["modelValue"]),a(H,{title:"\u6D41\u7A0B\u56FE",modelValue:t(x),"onUpdate:modelValue":r[8]||(r[8]=e=>P(x)?x.value=e:null),width:"800"},{default:l(()=>[a(t(Je),ve({key:"designer",modelValue:t(h),"onUpdate:modelValue":r[7]||(r[7]=e=>P(h)?h.value=e:null),value:t(h)},t(j),{prefix:t(j).prefix}),null,16,["modelValue","value","prefix"])]),_:1},8,["modelValue"])],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/bpm/model/index.vue"]])});export{ha as __tla,W as default};