index-11be217f.js 3.5 KB

1
  1. import{d as Y,Z as q,r as e,x as F,b as J,a3 as L,o,c as I,f as l,A as s,k as S,a as n,C as i,F as A,Q,D as P,E as W,a2 as X,W as j,av as U,J as Z,X as z,Y as H,__tla as O}from"./index-f65577b8.js";import{_ as V,__tla as $}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9fbbd655.js";import{_ as aa,__tla as ta}from"./DictTag.vue_vue_type_script_lang-48f8deb5.js";import{a as ra,D,__tla as ea}from"./dict-fa3ffbd2.js";import{_ as la,g as sa,__tla as _a}from"./TaskAssignRuleForm.vue_vue_type_script_setup_true_lang-bafab933.js";import{g as oa,__tla as na}from"./index-2f34b27a.js";import{g as ia,__tla as ua}from"./index-99526205.js";import{g as fa,__tla as ca}from"./index-72bce22e.js";import{g as ma,__tla as pa}from"./index-87264ddf.js";import{g as ya,__tla as da}from"./index-fd75f20a.js";import{__tla as va}from"./el-card-ab53e6aa.js";import"./color-6e929987.js";import{__tla as ha}from"./Dialog-bd3317a7.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ga}from"./el-tree-select-27b84fc4.js";import"./tree-0af4953a.js";import{__tla as ka}from"./useMessage-4dbf0ae4.js";let C,wa=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ka}catch{}})()]).then(async()=>{C=Y({name:"BpmTaskAssignRule",__name:"index",setup(ba){const{query:m}=q(),u=e(!0),p=e([]),f=F({modelId:m.modelId,processDefinitionId:m.processDefinitionId}),y=e([]),d=e([]),v=e([]),h=e([]),g=e([]),R=ra(D.BPM_TASK_ASSIGN_SCRIPT),k=async()=>{u.value=!0;try{p.value=await sa(f)}finally{u.value=!1}},T=(t,r)=>{if(t===10){for(const a of y.value)if(a.id===r)return a.name}else if(t===20||t===21){for(const a of d.value)if(a.id===r)return a.name}else if(t===22){for(const a of v.value)if(a.id===r)return a.name}else if(t===30||t===31||t===32){for(const a of h.value)if(a.id===r)return a.nickname}else if(t===40){for(const a of g.value)if(a.id===r)return a.name}else if(t===50){r+="";for(const a of R)if(a.value===r)return a.label}return"\u672A\u77E5("+r+")"},w=e();return J(async()=>{await k(),y.value=await oa(),d.value=await ia(),v.value=await fa(),h.value=await ma(),g.value=await ya()}),(t,r)=>{const a=j,x=aa,B=U,E=Z,K=z,N=V,G=L("hasPermi"),M=H;return o(),I(A,null,[l(N,null,{default:s(()=>[S((o(),i(K,{data:n(p)},{default:s(()=>[l(a,{label:"\u4EFB\u52A1\u540D",align:"center",prop:"taskDefinitionName"}),l(a,{label:"\u4EFB\u52A1\u6807\u8BC6",align:"center",prop:"taskDefinitionKey"}),l(a,{label:"\u89C4\u5219\u7C7B\u578B",align:"center",prop:"type"},{default:s(_=>[l(x,{type:n(D).BPM_TASK_ASSIGN_RULE_TYPE,value:_.row.type},null,8,["type","value"])]),_:1}),l(a,{label:"\u89C4\u5219\u8303\u56F4",align:"center",prop:"options"},{default:s(_=>[(o(!0),I(A,null,Q(_.row.options,c=>(o(),i(B,{class:"mr-5px",key:c},{default:s(()=>[P(W(T(_.row.type,c)),1)]),_:2},1024))),128))]),_:1}),n(f).modelId?(o(),i(a,{key:0,label:"\u64CD\u4F5C",align:"center"},{default:s(_=>[S((o(),i(E,{link:"",type:"primary",onClick:c=>{return b=_.row,void w.value.open(f.modelId,b);var b}},{default:s(()=>[P(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[G,["bpm:task-assign-rule:update"]]])]),_:1})):X("",!0)]),_:1},8,["data"])),[[M,n(u)]])]),_:1}),l(la,{ref_key:"formRef",ref:w,onSuccess:k},null,512)],64)}}})});export{wa as __tla,C as default};