index-1b55ba7c.js 3.5 KB

1
  1. import{d as G,N as L,r as e,f as j,z,S as F,o,c as I,i as l,w as s,D as b,a as n,j as i,F as D,C as U,m as P,t as H,l as V,K as W,al as Y,q as J,L as O,M as Q,__tla as X}from"./index-1e808f2e.js";import{_ as Z,__tla as $}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{_ as aa,__tla as ta}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{a as ra,D as T,__tla as ea}from"./dict-a31cb4ba.js";import{_ as la,g as sa,__tla as _a}from"./TaskAssignRuleForm.vue_vue_type_script_setup_true_lang-e30a737c.js";import{g as oa,__tla as na}from"./index-89118e79.js";import{g as ia,__tla as ua}from"./index-dd547c8f.js";import{g as fa,__tla as ca}from"./index-ebe7d7c2.js";import{g as ma,__tla as pa}from"./index-684d98da.js";import{g as ya,__tla as da}from"./index-ecbbc58a.js";import{__tla as va}from"./el-card-03b3588b.js";import"./color-6e929987.js";import{__tla as ha}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ga}from"./el-tree-select-e8e05888.js";import"./tree-fd3a041e.js";import{__tla as wa}from"./useMessage-5f9e8917.js";let A,ka=Promise.all([(()=>{try{return X}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 wa}catch{}})()]).then(async()=>{A=G({name:"BpmTaskAssignRule",__name:"index",setup(Sa){const{query:m}=L(),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(T.BPM_TASK_ASSIGN_SCRIPT),w=async()=>{u.value=!0;try{p.value=await sa(f)}finally{u.value=!1}},K=(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 z(async()=>{await w(),y.value=await oa(),d.value=await ia(),v.value=await fa(),h.value=await ma(),g.value=await ya()}),(t,r)=>{const a=W,N=aa,R=Y,x=J,B=O,M=Z,q=F("hasPermi"),E=Q;return o(),I(D,null,[l(M,null,{default:s(()=>[b((o(),i(B,{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(N,{type:n(T).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),I(D,null,U(_.row.options,c=>(o(),i(R,{class:"mr-5px",key:c},{default:s(()=>[P(H(K(_.row.type,c)),1)]),_:2},1024))),128))]),_:1}),n(f).modelId?(o(),i(a,{key:0,label:"\u64CD\u4F5C",align:"center"},{default:s(_=>[b((o(),i(x,{link:"",type:"primary",onClick:c=>{return S=_.row,void k.value.open(f.modelId,S);var S}},{default:s(()=>[P(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[q,["bpm:task-assign-rule:update"]]])]),_:1})):V("",!0)]),_:1},8,["data"])),[[E,n(u)]])]),_:1}),l(la,{ref_key:"formRef",ref:k,onSuccess:w},null,512)],64)}}})});export{ka as __tla,A as default};