index-d352e2e1.js 3.5 KB

1
  1. import{d as M,$ as Y,r as e,x as q,b as F,a4 as U,o as n,c as b,f as l,A as s,k as D,a as o,C as i,F as S,R as X,D as x,E as Z,a3 as $,X as j,aw as J,J as L,Y as H,Z as O,_ as Q,__tla as V}from"./index-54aa57d8.js";import{_ as W,__tla as aa}from"./ContentWrap-260746ab.js";import{_ as ta,__tla as ra}from"./DictTag-638f5ebc.js";import{a as ea,D as A,__tla as la}from"./dict-573b3b04.js";import{g as sa,T as _a,__tla as na}from"./TaskAssignRuleForm-f09ff188.js";import{g as oa,__tla as ia}from"./index-81a68108.js";import{g as ua,__tla as fa}from"./index-8a08f9c9.js";import{g as ca,__tla as ma}from"./index-77732494.js";import{g as pa,__tla as da}from"./index-050fcf20.js";import{g as ya,__tla as va}from"./index-067a18ff.js";import{__tla as ha}from"./el-card-e7d6628c.js";import"./color-6e929987.js";import{__tla as ga}from"./Dialog-7bb778a5.js";import{__tla as wa}from"./el-tree-select-20b2a9f3.js";import"./tree-0af4953a.js";import{__tla as ka}from"./useMessage-f56cafbb.js";let P,Ia=Promise.all([(()=>{try{return V}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 da}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ka}catch{}})()]).then(async()=>{P=Q(M({name:"BpmTaskAssignRule",__name:"index",setup(ba){const{query:m}=Y(),u=e(!0),p=e([]),f=q({modelId:m.modelId,processDefinitionId:m.processDefinitionId}),d=e([]),y=e([]),v=e([]),h=e([]),g=e([]),T=ea(A.BPM_TASK_ASSIGN_SCRIPT),w=async()=>{u.value=!0;try{p.value=await sa(f)}finally{u.value=!1}},R=(t,r)=>{if(t===10){for(const a of d.value)if(a.id===r)return a.name}else if(t===20||t===21){for(const a of y.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 T)if(a.value===r)return a.label}return"\u672A\u77E5("+r+")"},k=e();return F(async()=>{await w(),d.value=await oa(),y.value=await ua(),v.value=await ca(),h.value=await pa(),g.value=await ya()}),(t,r)=>{const a=j,C=ta,B=J,E=L,G=H,K=W,N=U("hasPermi"),z=O;return n(),b(S,null,[l(K,null,{default:s(()=>[D((n(),i(G,{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(C,{type:o(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(_=>[(n(!0),b(S,null,X(_.row.options,c=>(n(),i(B,{class:"mr-5px",key:c},{default:s(()=>[x(Z(R(_.row.type,c)),1)]),_:2},1024))),128))]),_:1}),o(f).modelId?(n(),i(a,{key:0,label:"\u64CD\u4F5C",align:"center"},{default:s(_=>[D((n(),i(E,{link:"",type:"primary",onClick:c=>{return I=_.row,void k.value.open(f.modelId,I);var I}},{default:s(()=>[x(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[N,["bpm:task-assign-rule:update"]]])]),_:1})):$("",!0)]),_:1},8,["data"])),[[z,o(u)]])]),_:1}),l(_a,{ref_key:"formRef",ref:k,onSuccess:w},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/taskAssignRule/index.vue"]])});export{Ia as __tla,P as default};