1 |
- import{d as G,L,r as t,f as M,x as h,Q as F,o as l,c as b,i as o,w as s,B as A,a as n,j as f,F as D,A as J,m as P,t as Q,l as U,I as Y,aj as H,q as z,J as O,K as V}from"./index-df709923.js";import{_ as W}from"./ContentWrap.vue_vue_type_script_setup_true_lang-e908c5dd.js";import{_ as X}from"./DictTag.vue_vue_type_script_lang-6753827b.js";import{a as Z,D as T}from"./dict-017bf708.js";import{_ as $,g as aa}from"./TaskAssignRuleForm.vue_vue_type_script_setup_true_lang-2b6bda24.js";import{g as ea}from"./index-78fb78a0.js";import{g as ra}from"./index-82ac6934.js";import{g as ta}from"./index-a3e03a3f.js";import{g as oa}from"./index-3b083ee0.js";import{g as sa}from"./index-d0aa1bf0.js";import"./el-card-91c2276d.js";import"./color-6e929987.js";import"./Dialog-2f8bd685.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./el-tree-select-880d8b15.js";import"./tree-fd3a041e.js";import"./useMessage-89e9d1aa.js";const ia=G({name:"BpmTaskAssignRule",__name:"index",setup(la){const{query:d}=L(),m=t(!0),c=t([]),u=M({modelId:d.modelId,processDefinitionId:d.processDefinitionId}),_=t([]),v=t([]),y=t([]),g=t([]),w=t([]),B=Z(T.BPM_TASK_ASSIGN_SCRIPT),k=async()=>{m.value=!0;try{c.value=await aa(u)}finally{m.value=!1}},R=(r,e)=>{if(r===10){for(const a of _.value)if(a.id===e)return a.name}else if(r===20||r===21){for(const a of v.value)if(a.id===e)return a.name}else if(r===22){for(const a of y.value)if(a.id===e)return a.name}else if(r===30||r===31||r===32){for(const a of g.value)if(a.id===e)return a.nickname}else if(r===40){for(const a of w.value)if(a.id===e)return a.name}else if(r===50){e+="";for(const a of B)if(a.value===e)return a.label}return"\u672A\u77E5("+e+")"},I=t();return h(async()=>{await k(),_.value=await ea(),v.value=await ra(),y.value=await ta(),g.value=await oa(),w.value=await sa()}),(r,e)=>{const a=Y,x=X,K=H,C=z,E=O,N=W,j=F("hasPermi"),q=V;return l(),b(D,null,[o(N,null,{default:s(()=>[A((l(),f(E,{data:n(c)},{default:s(()=>[o(a,{label:"\u4EFB\u52A1\u540D",align:"center",prop:"taskDefinitionName"}),o(a,{label:"\u4EFB\u52A1\u6807\u8BC6",align:"center",prop:"taskDefinitionKey"}),o(a,{label:"\u89C4\u5219\u7C7B\u578B",align:"center",prop:"type"},{default:s(i=>[o(x,{type:n(T).BPM_TASK_ASSIGN_RULE_TYPE,value:i.row.type},null,8,["type","value"])]),_:1}),o(a,{label:"\u89C4\u5219\u8303\u56F4",align:"center",prop:"options"},{default:s(i=>[(l(!0),b(D,null,J(i.row.options,p=>(l(),f(K,{class:"mr-5px",key:p},{default:s(()=>[P(Q(R(i.row.type,p)),1)]),_:2},1024))),128))]),_:1}),n(u).modelId?(l(),f(a,{key:0,label:"\u64CD\u4F5C",align:"center"},{default:s(i=>[A((l(),f(C,{link:"",type:"primary",onClick:p=>{return S=i.row,void I.value.open(u.modelId,S);var S}},{default:s(()=>e[0]||(e[0]=[P(" \u4FEE\u6539 ")])),_:2},1032,["onClick"])),[[j,["bpm:task-assign-rule:update"]]])]),_:1})):U("",!0)]),_:1},8,["data"])),[[q,n(m)]])]),_:1}),o($,{ref_key:"formRef",ref:I,onSuccess:k},null,512)],64)}}});export{ia as default};
|