1 |
- import{d as M,I as F,r as e,e as H,k as L,P as O,o,c as b,f as l,w as _,v as P,a as n,q as i,F as S,n as U,m as A,t as j,O as Q,D as V,ak as Y,B as z,G as J,H as W,__tla as X}from"./index-2eab2d23.js";import{_ as Z,__tla as $}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{_ as aa,__tla as ta}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{a as ra,D as B,__tla as ea}from"./dict-1ad71b6f.js";import{_ as la,g as _a,__tla as sa}from"./TaskAssignRuleForm.vue_vue_type_script_setup_true_lang-2e3df081.js";import{g as oa,__tla as na}from"./index-7a06606e.js";import{g as ia,__tla as ua}from"./index-06f833f4.js";import{g as fa,__tla as ca}from"./index-2402488f.js";import{g as ma,__tla as pa}from"./index-e191a423.js";import{g as ya,__tla as da}from"./index-ac0857aa.js";import{__tla as va}from"./el-card-c558f0ec.js";import"./color-6e929987.js";import{__tla as ha}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ga}from"./el-tree-select-4ae7c290.js";import"./tree-fd3a041e.js";import{__tla as ka}from"./useMessage-171aa63e.js";let D,wa=Promise.all([(()=>{try{return X}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return sa}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()=>{D=M({name:"BpmTaskAssignRule",__name:"index",setup(Ia){const{query:m}=F(),u=e(!0),p=e([]),f=H({modelId:m.modelId,processDefinitionId:m.processDefinitionId}),y=e([]),d=e([]),v=e([]),h=e([]),g=e([]),R=ra(B.BPM_TASK_ASSIGN_SCRIPT),k=async()=>{u.value=!0;try{p.value=await _a(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 L(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=V,K=aa,x=Y,C=z,G=J,N=Z,q=O("hasPermi"),E=W;return o(),b(S,null,[l(N,null,{default:_(()=>[P((o(),i(G,{data:n(p)},{default:_(()=>[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(K,{type:n(B).BPM_TASK_ASSIGN_RULE_TYPE,value:s.row.type},null,8,["type","value"])]),_:1}),l(a,{label:"\u89C4\u5219\u8303\u56F4",align:"center",prop:"options"},{default:_(s=>[(o(!0),b(S,null,U(s.row.options,c=>(o(),i(x,{class:"mr-5px",key:c},{default:_(()=>[A(j(T(s.row.type,c)),1)]),_:2},1024))),128))]),_:1}),n(f).modelId?(o(),i(a,{key:0,label:"\u64CD\u4F5C",align:"center"},{default:_(s=>[P((o(),i(C,{link:"",type:"primary",onClick:c=>{return I=s.row,void w.value.open(f.modelId,I);var I}},{default:_(()=>[A(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[q,["bpm:task-assign-rule:update"]]])]),_:1})):Q("",!0)]),_:1},8,["data"])),[[E,n(u)]])]),_:1}),l(la,{ref_key:"formRef",ref:w,onSuccess:k},null,512)],64)}}})});export{wa as __tla,D as default};
|