index-ad313e9e.js 5.6 KB

1
  1. import{d as I,u as M,J as R,r as i,e as H,l as J,ak as Q,Q as X,o as n,c as Y,f as l,w as t,x as U,a as e,v as s,g as C,t as w,n as m,P as L,O as b,aj as K,F as W,G as Z,C as $,al as aa,H as ta,I as ea,_ as la,__tla as ra}from"./index-bd9277a1.js";import{_ as oa,__tla as na}from"./Dialog-eba103da.js";import{_ as _a,__tla as ia}from"./ContentWrap-7c73ab26.js";import{_ as sa,__tla as ua}from"./index-3118d255.js";import{_ as pa,__tla as ma}from"./DictTag-d6503fab.js";import{D as ca,__tla as fa}from"./dict-4b2e9fd3.js";import{d as da,__tla as ya}from"./formatTime-8639ba1a.js";import{j as ha,__tla as wa}from"./bpmn-embedded-68a169a0.js";import{g as ga,a as ka,__tla as va}from"./index-7ddc8beb.js";import{b as Ca}from"./formCreate-a3356cdc.js";import{__tla as ba}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5f6a2d0d.js";import{__tla as xa}from"./el-card-bc8cec83.js";import{__tla as Va}from"./index-49ecf2ef.js";import"./color-6e929987.js";import{__tla as Pa}from"./XTextButton-af1003d4.js";import{__tla as Ta}from"./XTextButton.vue_vue_type_style_index_0_scoped_bd4a9e34_lang-2b7e68b4.js";import{__tla as za}from"./XButton-210d16b4.js";import{__tla as Da}from"./el-collapse-item-dc93cff8.js";import{__tla as Sa}from"./el-link-2a94053d.js";import{__tla as Ua}from"./useMessage-274788d4.js";import{__tla as La}from"./el-drawer-109b4b8c.js";let N,Na=Promise.all([(()=>{try{return ra}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ia}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 xa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return La}catch{}})()]).then(async()=>{N=la(I({name:"BpmProcessDefinition",__name:"index",setup(qa){const{push:x}=M(),{query:q}=R(),g=i(!0),V=i(0),P=i([]),u=H({pageNo:1,pageSize:10,key:q.key}),T=async()=>{g.value=!0;try{const _=await ga(u);P.value=_.list,V.value=_.total}finally{g.value=!1}},c=i(!1),k=i({rule:[],option:{}}),z=async _=>{_.formType==10?(Ca(k,_.formConf,_.formFields),c.value=!0):await x({path:_.formCustomCreatePath})},f=i(!1),p=i(null),D=i({prefix:"flowable"});return J(()=>{T()}),(_,r)=>{const o=Z,d=$,B=pa,y=aa,G=ta,O=sa,j=_a,A=Q("form-create"),S=oa,E=X("hasPermi"),F=ea;return n(),Y(W,null,[l(j,null,{default:t(()=>[U((n(),s(G,{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(B,{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?(n(),s(d,{key:0,type:"primary",link:"",onClick:v=>z(a.row)},{default:t(()=>[C("span",null,w(a.row.formName),1)]),_:2},1032,["onClick"])):(n(),s(d,{key:1,type:"primary",link:"",onClick:v=>z(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?(n(),s(y,{key:0},{default:t(()=>[m("v"+w(a.row.version),1)]),_:2},1024)):(n(),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?(n(),s(y,{key:0,type:"success"},{default:t(()=>[m("\u6FC0\u6D3B")]),_:1})):L("",!0),a.row.suspensionState===2?(n(),s(y,{key:1,type:"warning"},{default:t(()=>[m("\u6302\u8D77")]),_:1})):L("",!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=>[U((n(),s(d,{link:"",type:"primary",onClick:v=>{return h=a.row,void x({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(O,{total:e(V),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(S,{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(S,{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),K({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","D:/zhongxing/mall-newfeifan-zx-admin/src/views/bpm/definition/index.vue"]])});export{Na as __tla,N as default};