1 |
- import{d as C,r as i,o,C as m,A as s,f as _,a,D as p,k as T,c as z,F as D,R,a2 as j,S as q,U as B,V as J,W as P,J as S,Z as W,_ as Z,__tla as E}from"./index-286756b9.js";import{_ as G,__tla as H}from"./Dialog-4c2de357.js";import{u as K,__tla as L}from"./index-79b3dd94.js";import{g as M,__tla as N}from"./index-c725f8b2.js";let v,O=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return N}catch{}})()]).then(async()=>{v=Z(C({name:"BpmTaskUpdateAssigneeForm",__name:"TaskUpdateAssigneeForm",emits:["success"],setup(Q,{expose:y,emit:g}){const l=i(!1),u=i(!1),t=i({id:"",assigneeUserId:void 0}),U=i({assigneeUserId:[{required:!0,message:"\u65B0\u5BA1\u6279\u4EBA\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}),n=i(),c=i([]);y({open:async d=>{l.value=!0,h(),t.value.id=d,c.value=await M()}});const k=g,b=async()=>{if(n&&await n.value.validate()){u.value=!0;try{await K(t.value),l.value=!1,k("success")}finally{u.value=!1}}},h=()=>{var d;t.value={id:"",assigneeUserId:void 0},(d=n.value)==null||d.resetFields()};return(d,r)=>{const w=q,I=B,V=J,x=P,f=S,F=G,A=W;return o(),m(F,{modelValue:a(l),"onUpdate:modelValue":r[2]||(r[2]=e=>j(l)?l.value=e:null),title:"\u8F6C\u6D3E\u5BA1\u6279\u4EBA",width:"500"},{footer:s(()=>[_(f,{disabled:a(u),type:"primary",onClick:b},{default:s(()=>[p("\u786E \u5B9A")]),_:1},8,["disabled"]),_(f,{onClick:r[1]||(r[1]=e=>l.value=!1)},{default:s(()=>[p("\u53D6 \u6D88")]),_:1})]),default:s(()=>[T((o(),m(x,{ref_key:"formRef",ref:n,model:a(t),rules:a(U),"label-width":"110px"},{default:s(()=>[_(V,{label:"\u65B0\u5BA1\u6279\u4EBA",prop:"assigneeUserId"},{default:s(()=>[_(I,{modelValue:a(t).assigneeUserId,"onUpdate:modelValue":r[0]||(r[0]=e=>a(t).assigneeUserId=e),clearable:"",style:{width:"100%"}},{default:s(()=>[(o(!0),z(D,null,R(a(c),e=>(o(),m(w,{key:e.id,label:e.nickname,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[A,a(u)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue"]])});export{O as __tla,v as default};
|