| 1 |
- var _=(g,l,t)=>new Promise((u,s)=>{var n=e=>{try{r(t.next(e))}catch(a){s(a)}},p=e=>{try{r(t.throw(e))}catch(a){s(a)}},r=e=>e.done?u(e.value):Promise.resolve(e.value).then(n,p);r((t=t.apply(g,l)).next())});import{a as C,B as x}from"./index-c98ef572.js";import{h as b}from"./contractJobApi-11a3c677.js";import{d as L,e as F,r as i,k as w,o as m,q as D,y as h,af as I,g as T,m as z,F as N,D as O,z as P,f,j as R}from"./index-610a1d46.js";const V={class:"!pl-4"},$=L({__name:"formDrawer",emits:["success","register"],setup(g,{emit:l}){const t=F(()=>`任务日志 (${n.value})`),u="800px",s=i(),n=i(),p=i(0),r=i([]),[e,{setDrawerProps:a,closeDrawer:y}]=C(c=>_(this,null,function*(){a({confirmLoading:!1}),s.value=c.record.id,n.value=c.record.numbering;const v=yield b(s.value);r.value=v.map(o=>({title:o.title,description:o.createTime+" "+o.content}))}));function k(){return _(this,null,function*(){try{l("success",{values:{id:s.value}})}finally{a({confirmLoading:!1}),y()}})}return(c,v)=>{const o=w("a-step"),B=w("a-steps");return m(),D(f(x),P(c.$attrs,{destroyOnClose:"",onRegister:f(e),title:f(t),width:u,onOk:k,okText:"关闭",showCancelBtn:!1,showFooter:!0}),{default:h(()=>[I("div",V,[T(B,{"progress-dot":"",current:p.value,direction:"vertical"},{default:h(()=>[(m(!0),z(N,null,O(r.value,d=>(m(),D(o,{key:d.title,title:d.title,description:d.description,status:"process"},null,8,["title","description"]))),128))]),_:1},8,["current"])])]),_:1},16,["onRegister","title"])}}});const S=R($,[["__scopeId","data-v-1f636e24"]]);export{S as default};
|