import{d as P,b7 as U,b as I,r as _,p as M,c as u,e as h,f as O,g as i,h as e,i as o,u as a,C as T,t as y,aO as j,k as q,q as R,A as S,F as $,m as g,y as D,E as K,N as L,_ as W}from"./index.0308b213.js";import{_ as G,l as H,d as J}from"./EditProcess.vue_vue_type_script_setup_true_lang.3c90e195.js";const Q={class:"filter-form"},X=g("\u7B5B\u9009"),Y={class:"data"},Z={class:"operation-btn"},ee=g("\u6DFB\u52A0\u6D41\u7A0B"),te={class:"table"},oe={class:"ellipsis"},le=g("\u7F16\u8F91"),ae=g("\u5220\u9664"),se={class:"bottom"},ne={class:"pagination"},ue=P({setup(ie){U();const s=I({page:1,page_size:20,title:""}),b=_([]),B=_(0),r=()=>{H(s).then(n=>{b.value=n.lists,B.value=n.count})};r();let d=_(!1),p=_(!1),v=_(0);const C=()=>{p.value=!0,D(()=>{d.value=!0})},E=n=>{v.value=n,p.value=!0,D(()=>{d.value=!0})},k=()=>{v.value=0,d.value=!1,D(()=>{p.value=!1}),r()};M(()=>[s.page,s.page_size],()=>{r()});const A=n=>{window.confirm("\u786E\u8BA4\u5220\u9664\u8BE5\u6D41\u7A0B\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D")&&J(n).then(m=>{m.code==1?(K({message:"\u5220\u9664\u6210\u529F",type:"success"}),r()):L.alert(m.msg,"\u5220\u9664\u5931\u8D25",{confirmButtonText:"OK"})})};return(n,l)=>{const m=u("el-input"),F=u("el-form-item"),f=u("el-button"),w=u("el-form"),c=u("el-table-column"),V=u("el-tooltip"),x=u("el-table"),z=u("el-pagination");return h(),O($,null,[i("div",Q,[e(w,{model:a(s),onSubmit:l[1]||(l[1]=T(()=>{},["prevent"]))},{default:o(()=>[e(F,{class:"tn-el-form-item",label:"\u6D41\u7A0B\u6807\u9898"},{default:o(()=>[e(m,{modelValue:a(s).title,"onUpdate:modelValue":l[0]||(l[0]=t=>a(s).title=t),placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u6807\u9898",style:{width:"auto"}},null,8,["modelValue"])]),_:1}),e(F,null,{default:o(()=>[e(f,{type:"primary",onClick:r},{default:o(()=>[X]),_:1})]),_:1})]),_:1},8,["model"])]),i("div",Y,[i("div",Z,[e(f,{type:"primary",onClick:C},{default:o(()=>[ee]),_:1})]),i("div",te,[e(x,{data:b.value},{default:o(()=>[e(c,{type:"selection",width:"55"}),e(c,{label:"\u6D41\u7A0BID",prop:"id"}),e(c,{label:"\u6807\u9898",prop:"title"}),e(c,{label:"\u8BF4\u660E"},{default:o(({row:t})=>[e(V,{class:"item",effect:"dark",content:t.desc,placement:"top"},{default:o(()=>[i("div",oe,y(t.desc),1)]),_:2},1032,["content"])]),_:1}),e(c,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time",sortable:"custom"},{default:o(({row:t})=>[i("div",null,y(a(j)(t.create_time)),1)]),_:1}),e(c,{label:"\u64CD\u4F5C",align:"center",width:"400"},{default:o(t=>[e(f,{type:"primary",onClick:N=>E(t.row.id)},{default:o(()=>[le]),_:2},1032,["onClick"]),e(f,{type:"danger",icon:n.Delete,onClick:N=>A(t.row.id)},{default:o(()=>[ae]),_:2},1032,["icon","onClick"])]),_:1})]),_:1},8,["data"])])]),i("div",se,[i("div",ne,[e(z,{currentPage:a(s).page,"onUpdate:currentPage":l[2]||(l[2]=t=>a(s).page=t),"page-size":a(s).limit,"onUpdate:page-size":l[3]||(l[3]=t=>a(s).limit=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:B.value},null,8,["currentPage","page-size","total"])])]),a(p)?(h(),q(G,{key:0,modelValue:a(d),"onUpdate:modelValue":l[4]||(l[4]=t=>R(d)?d.value=t:d=t),id:a(v),onOnClose:k},null,8,["modelValue","id"])):S("",!0)],64)}}});const re=W(ue,[["__scopeId","data-v-ad486f58"]]);export{re as default};
