import{u as v}from"./useTable-9e9e4bef-1778929502341v=1.0.0.js";import{r as g,g as i,e as r,y as D,d as b,u as S,b as T,o as I,f as M,w as o,h as a,l as $,_ as F}from"./index-17740f03-1778929502341v=1.0.0.js";import{g as V}from"./processReleaseApi-51d788e8-1778929502341v=1.0.0.js";const j=c=>{const{proxy:s}=D(),u=g([{prop:"title",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22"}}]),d=g([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u540D\u79F0",prop:"title",render:e=>i(r("el-link"),{type:"primary",onClick:()=>{c(e.row)},style:{whiteSpace:"normal",wordBreak:"break-all",lineHeight:"20px"}},{default:()=>[e.row.title]})},{label:"\u7C7B\u578B",prop:"administration_notice_type_id_str"},{label:"\u53D1\u5E03\u65E5\u671F",prop:"publish_time"},{label:"\u66F4\u65B0\u65E5\u671F",prop:"u_time"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:u,tableColumns:d,dataCallBack:e=>(e.list.forEach(n=>{n.build_time=n.build_time?s.$dayjs(n.build_time*1e3).format("YYYY-MM-DD"):"",n.start_time=n.start_time?s.$dayjs(n.start_time*1e3).format("YYYY-MM-DD"):""}),e),paramCallBack:e=>e}},q=j,E=b({name:"processReleaseIndex"}),H=b({...E,setup(c){const s=S(),u=p=>{s.push({name:"processReleaseDetail",query:{id:p.administration_standard_flow_id}})},{tableColumns:d,columns:m}=q(u),{tableData:_,pageable:e,baseParam:n,searchParam:f,totalParam:L,pageParam:N,handleSizeChange:C,handleCurrentChange:h,getTableList:P,search:x,reset:y}=v(V);T(async()=>{n.value.status=2,await P()});const k=p=>{s.push({name:"processReleaseDetail",query:{id:p.administration_standard_flow_id}})};return(p,t)=>{const w=r("PaSearchForm"),z=r("el-link"),B=r("PaProTable"),R=r("el-pagination"),Y=r("PaIndexPage");return I(),M(Y,null,{searchForm:o(()=>[i(w,{"search-param":a(f),columns:a(m),search:a(x),reset:a(y)},null,8,["search-param","columns","search","reset"])]),pagination:o(()=>[i(R,{"current-page":a(e).page,"onUpdate:currentPage":t[0]||(t[0]=l=>a(e).page=l),"page-size":a(e).size,"onUpdate:pageSize":t[1]||(t[1]=l=>a(e).size=l),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(e).count,onSizeChange:a(C),onCurrentChange:a(h)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:o(()=>t[5]||(t[5]=[])),default:o(()=>[i(B,{columns:a(d),data:a(_)},{tableHeader:o(()=>t[2]||(t[2]=[])),toolButton:o(()=>t[3]||(t[3]=[])),operation:o(l=>[i(z,{type:"primary",onClick:U=>k(l.row)},{default:o(()=>t[4]||(t[4]=[$(" \u67E5\u770B ")])),_:2},1032,["onClick"])]),_:1},8,["columns","data"])]),_:1})}}});const K=F(H,[["__scopeId","data-v-b15c26a7"]]);export{K as default};
