1 |
- import{d as G,N as L,r as e,g as q,z as F,T as U,o as n,c as S,i as l,w as s,D as I,a as o,k as i,F as A,C as Y,l as D,t as j,S as V,K as W,am as H,s as J,L as O,M as Q,_ as X,__tla as Z}from"./index-2f799233.js";import{_ as $,__tla as aa}from"./ContentWrap-9da801df.js";import{_ as ta,__tla as ra}from"./DictTag-ea4c6cc2.js";import{a as ea,D as P,__tla as la}from"./dict-20c916e2.js";import{g as sa,T as _a,__tla as na}from"./TaskAssignRuleForm-73341d07.js";import{g as oa,__tla as ia}from"./index-877a9f56.js";import{g as ua,__tla as fa}from"./index-7020a311.js";import{g as ca,__tla as ma}from"./index-230cbedd.js";import{g as pa,__tla as ya}from"./index-dd9c509d.js";import{g as da,__tla as va}from"./index-6ba7dc5e.js";import{__tla as ha}from"./el-card-c64c83d1.js";import"./color-6e929987.js";import{__tla as ga}from"./Dialog-6fd39e06.js";import{__tla as wa}from"./el-tree-select-ef4257fc.js";import"./tree-0af4953a.js";import{__tla as ka}from"./useMessage-e567ad40.js";let T,ba=Promise.all([(()=>{try{return Z}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})()]).then(async()=>{T=X(G({name:"BpmTaskAssignRule",__name:"index",setup(Sa){const{query:m}=L(),u=e(!0),p=e([]),f=q({modelId:m.modelId,processDefinitionId:m.processDefinitionId}),y=e([]),d=e([]),v=e([]),h=e([]),g=e([]),x=ea(P.BPM_TASK_ASSIGN_SCRIPT),w=async()=>{u.value=!0;try{p.value=await sa(f)}finally{u.value=!1}},C=(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 x)if(a.value===r)return a.label}return"\u672A\u77E5("+r+")"},k=e();return F(async()=>{await w(),y.value=await oa(),d.value=await ua(),v.value=await ca(),h.value=await pa(),g.value=await da()}),(t,r)=>{const a=W,R=ta,K=H,M=J,N=O,z=$,B=U("hasPermi"),E=Q;return n(),S(A,null,[l(z,null,{default:s(()=>[I((n(),i(N,{data:o(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(R,{type:o(P).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(_=>[(n(!0),S(A,null,Y(_.row.options,c=>(n(),i(K,{class:"mr-5px",key:c},{default:s(()=>[D(j(C(_.row.type,c)),1)]),_:2},1024))),128))]),_:1}),o(f).modelId?(n(),i(a,{key:0,label:"\u64CD\u4F5C",align:"center"},{default:s(_=>[I((n(),i(M,{link:"",type:"primary",onClick:c=>{return b=_.row,void k.value.open(f.modelId,b);var b}},{default:s(()=>[D(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[B,["bpm:task-assign-rule:update"]]])]),_:1})):V("",!0)]),_:1},8,["data"])),[[E,o(u)]])]),_:1}),l(_a,{ref_key:"formRef",ref:k,onSuccess:w},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/bpm/taskAssignRule/index.vue"]])});export{ba as __tla,T as default};
|