index-fca421d5.js 3.6 KB

1
  1. import{d as E,J as F,r as e,e as M,l as H,Q as J,o as n,c as S,f as l,w as _,x as b,a as o,v as i,F as P,q as Q,n as T,t as U,P as j,G as L,al as W,C as Y,H as O,I as V,_ as X,__tla as Z}from"./index-8e30b17f.js";import{_ as $,__tla as aa}from"./ContentWrap-0730b42c.js";import{_ as ta,__tla as ra}from"./DictTag-ffb0f028.js";import{a as ea,D as x,__tla as la}from"./dict-500f7ec9.js";import{g as _a,T as sa,__tla as na}from"./TaskAssignRuleForm-c32f3e8f.js";import{g as oa,__tla as ia}from"./index-4c110233.js";import{g as ua,__tla as fa}from"./index-12266caf.js";import{g as ca,__tla as ma}from"./index-9b2de7c9.js";import{g as pa,__tla as ya}from"./index-ef7d0f22.js";import{g as da,__tla as va}from"./index-d7a29dfc.js";import{__tla as ha}from"./ContentWrap.vue_vue_type_script_setup_true_lang-14d08aa7.js";import{__tla as ga}from"./el-card-70b4f66a.js";import"./color-6e929987.js";import{__tla as wa}from"./Dialog-9917188a.js";import{__tla as ka}from"./el-tree-select-3cd6acef.js";import"./tree-0af4953a.js";import{__tla as Ia}from"./useMessage-ee50bd51.js";let A,Sa=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{}})(),(()=>{try{return Ia}catch{}})()]).then(async()=>{A=X(E({name:"BpmTaskAssignRule",__name:"index",setup(ba){const{query:m}=F(),u=e(!0),p=e([]),f=M({modelId:m.modelId,processDefinitionId:m.processDefinitionId}),y=e([]),d=e([]),v=e([]),h=e([]),g=e([]),C=ea(x.BPM_TASK_ASSIGN_SCRIPT),w=async()=>{u.value=!0;try{p.value=await _a(f)}finally{u.value=!1}},D=(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+")"},k=e();return H(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=L,R=ta,B=W,G=Y,K=O,N=$,q=J("hasPermi"),z=V;return n(),S(P,null,[l(N,null,{default:_(()=>[b((n(),i(K,{data:o(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(R,{type:o(x).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=>[(n(!0),S(P,null,Q(s.row.options,c=>(n(),i(B,{class:"mr-5px",key:c},{default:_(()=>[T(U(D(s.row.type,c)),1)]),_:2},1024))),128))]),_:1}),o(f).modelId?(n(),i(a,{key:0,label:"\u64CD\u4F5C",align:"center"},{default:_(s=>[b((n(),i(G,{link:"",type:"primary",onClick:c=>{return I=s.row,void k.value.open(f.modelId,I);var I}},{default:_(()=>[T(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[q,["bpm:task-assign-rule:update"]]])]),_:1})):j("",!0)]),_:1},8,["data"])),[[z,o(u)]])]),_:1}),l(sa,{ref_key:"formRef",ref:k,onSuccess:w},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/taskAssignRule/index.vue"]])});export{Sa as __tla,A as default};