1 |
- import{d as Y,Z as F,r as e,x as J,b as Q,a3 as U,o,c as b,f as l,A as s,k as S,a as n,C as i,F as D,Q as W,D as P,E as X,a2 as Z,W as j,av as q,J as L,X as z,Y as H,__tla as O}from"./index-1f518666.js";import{_ as V,__tla as $}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{_ as aa,__tla as ta}from"./DictTag.vue_vue_type_script_lang-8a012661.js";import{a as ra,D as A,__tla as ea}from"./dict-167d9193.js";import{_ as la,g as sa,__tla as _a}from"./TaskAssignRuleForm.vue_vue_type_script_setup_true_lang-32dd6b32.js";import{g as oa,__tla as na}from"./index-21ceb335.js";import{g as ia,__tla as ua}from"./index-9dec7912.js";import{g as fa,__tla as ca}from"./index-66e923b3.js";import{g as ma,__tla as pa}from"./index-73c4e631.js";import{g as ya,__tla as da}from"./index-3242d6a4.js";import{__tla as va}from"./el-card-955661ed.js";import"./color-6e929987.js";import{__tla as ha}from"./Dialog-4c960d8c.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ga}from"./el-tree-select-fc145135.js";import"./tree-0af4953a.js";import{__tla as ka}from"./useMessage-633c11d2.js";let T,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()=>{T=Y({name:"BpmTaskAssignRule",__name:"index",setup(Ia){const{query:m}=F(),u=e(!0),p=e([]),f=J({modelId:m.modelId,processDefinitionId:m.processDefinitionId}),y=e([]),d=e([]),v=e([]),h=e([]),g=e([]),C=ra(A.BPM_TASK_ASSIGN_SCRIPT),k=async()=>{u.value=!0;try{p.value=await sa(f)}finally{u.value=!1}},R=(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 C)if(a.value===r)return a.label}return"\u672A\u77E5("+r+")"},w=e();return Q(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=q,E=L,K=z,N=V,G=U("hasPermi"),M=H;return o(),b(D,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(A).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),b(D,null,W(_.row.options,c=>(o(),i(B,{class:"mr-5px",key:c},{default:s(()=>[P(X(R(_.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 I=_.row,void w.value.open(f.modelId,I);var I}},{default:s(()=>[P(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[G,["bpm:task-assign-rule:update"]]])]),_:1})):Z("",!0)]),_:1},8,["data"])),[[M,n(u)]])]),_:1}),l(la,{ref_key:"formRef",ref:w,onSuccess:k},null,512)],64)}}})});export{wa as __tla,T as default};
|