index-93271266.js 5.3 KB

1
  1. import{d as F,u as G,O as H,r as _,f as I,B as J,aj as X,P as Y,o as i,c as K,i as l,w as t,C as O,a as e,l as s,g as C,t as w,j as m,a2 as S,y as b,ai as Q,F as W,L as Z,J as $,ak as aa,M as ta,N as ea,_ as la,__tla as ra}from"./index-af173888.js";import{_ as oa,__tla as ia}from"./Dialog-987c90a1.js";import{_ as na,__tla as _a}from"./ContentWrap-b959c1be.js";import{_ as sa,__tla as ua}from"./index-a33d7937.js";import{_ as pa,__tla as ma}from"./DictTag-4a35e2b7.js";import{D as ca,__tla as fa}from"./dict-093d1dfa.js";import{d as da,__tla as ya}from"./formatTime-8a6f6c49.js";import{j as ha,__tla as wa}from"./bpmn-embedded-6e9156b8.js";import{g as ga,a as ka,__tla as va}from"./index-caf5919d.js";import{b as Ca}from"./formCreate-a3356cdc.js";import{__tla as ba}from"./el-card-178b9654.js";import{__tla as Va}from"./index-54b8f773.js";import"./color-6e929987.js";import{__tla as xa}from"./XTextButton-5dd30649.js";import{__tla as Pa}from"./XButton-9933c2d2.js";import{__tla as Ta}from"./el-collapse-item-c60eb47f.js";import{__tla as Ua}from"./el-link-3e92dcd8.js";import{__tla as Da}from"./useMessage-170c1b43.js";import{__tla as Na}from"./el-drawer-3ec81ec6.js";let z,Oa=Promise.all([(()=>{try{return ra}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Na}catch{}})()]).then(async()=>{z=la(F({name:"BpmProcessDefinition",__name:"index",setup(Sa){const{push:V}=G(),{query:B}=H(),g=_(!0),x=_(0),P=_([]),u=I({pageNo:1,pageSize:10,key:B.key}),T=async()=>{g.value=!0;try{const n=await ga(u);P.value=n.list,x.value=n.total}finally{g.value=!1}},c=_(!1),k=_({rule:[],option:{}}),U=async n=>{n.formType==10?(Ca(k,n.formConf,n.formFields),c.value=!0):await V({path:n.formCustomCreatePath})},f=_(!1),p=_(null),D=_({prefix:"flowable"});return J(()=>{T()}),(n,r)=>{const o=Z,d=$,L=pa,y=aa,M=ta,j=sa,q=na,R=X("form-create"),N=oa,A=Y("hasPermi"),E=ea;return i(),K(W,null,[l(q,null,{default:t(()=>[O((i(),s(M,{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(d,{type:"primary",link:"",onClick:v=>(async h=>{p.value=await ka(h.id),f.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(L,{type:e(ca).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?(i(),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"])):(i(),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}),l(o,{label:"\u6D41\u7A0B\u7248\u672C",align:"center",prop:"processDefinition.version",width:"80"},{default:t(a=>[a.row?(i(),s(y,{key:0},{default:t(()=>[m("v"+w(a.row.version),1)]),_:2},1024)):(i(),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?(i(),s(y,{key:0,type:"success"},{default:t(()=>[m("\u6FC0\u6D3B")]),_:1})):S("",!0),a.row.suspensionState===2?(i(),s(y,{key:1,type:"warning"},{default:t(()=>[m("\u6302\u8D77")]),_:1})):S("",!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=>[O((i(),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"])),[[A,["bpm:task-assign-rule:query"]]])]),_:1})]),_:1},8,["data"])),[[E,e(g)]]),l(j,{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:T},null,8,["total","page","limit"])]),_:1}),l(N,{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(R,{rule:e(k).rule,option:e(k).option},null,8,["rule","option"])]),_:1},8,["modelValue"]),l(N,{title:"\u6D41\u7A0B\u56FE",modelValue:e(f),"onUpdate:modelValue":r[4]||(r[4]=a=>b(f)?f.value=a:null),width:"800"},{default:t(()=>[l(e(ha),Q({key:"designer",modelValue:e(p),"onUpdate:modelValue":r[3]||(r[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)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/definition/index.vue"]])});export{Oa as __tla,z as default};