import{u as U}from"./useTable-d2309ed4-1782111760424v=1.0.0.js";import{u as I,c as D,a as N,_ as L}from"./index-996f931c-1782111760424v=1.0.0.js";import{a as h,U as i,ai as p,m as C,e as M,p as k,M as b,O as o,u as a,S as W,q}from"./vendor-7f807b9d-1782111760424v=1.0.0.js";import{g as K}from"./specialWorkStatisticsApi-d657e4d8-1782111760424v=1.0.0.js";import"./eleVendor-99a45232-1782111760424v=1.0.0.js";const O=()=>{const m=I(),c={running:["#fff","#848181","\u540E\u53F0\u6253\u5305\u4E2D"],finish:["#009d29","#fff","\u6253\u5305\u5B8C\u6210"],failed:["#848181","#fff","\u6253\u5305\u5931\u8D25"]},g=h([{prop:"name",label:"\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\u641C\u7D22"}},{prop:"packageType",label:"\u4E1A\u52A1\u7B5B\u9009",isFilterEnum:!0,enum:m.getEnumListByKey("bizPackageType"),search:{el:"select",placeholder:"\u8BF7\u8F93\u5165\u5DE5\u4F5C\u540D\u79F0"}}]),d=h([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u6253\u5305\u65F6\u95F4",prop:"createTime"},{label:"\u4E1A\u52A1\u7C7B\u578B",prop:"packageType",isFilterEnum:!0,enum:m.getEnumListByKey("bizPackageType")},{label:"\u6253\u5305\u4EFB\u52A1",prop:"name"},{label:"\u6253\u5305\u72B6\u6001",prop:"attachments",render:n=>{var e,s;return i(p("el-tag"),{style:{background:(e=c[n.row.packageStatus])==null?void 0:e[0],color:(s=c[n.row.packageStatus])==null?void 0:s[1]},type:"primary",round:!0},{default:()=>{var u;return[(u=c[n.row.packageStatus])==null?void 0:u[2]]}})}},{label:"\u6253\u5305\u4EBA",prop:"creatorName"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:g,tableColumns:d,dataCallBack:n=>(n.listData.forEach(e=>{var s;((s=e.attachments)==null?void 0:s.length)>0?e.attachments=JSON.parse(e.attachments||"[]"):e.attachments=[]}),n),paramCallBack:n=>n}},R=O,V={key:1,style:{color:"gray"}},$=C({name:"specialWorkStatisticsIndex"}),H=C({...$,setup(m){D();const c=N(),{tableColumns:g,columns:d,dataCallBack:f,paramCallBack:_}=R(),{tableData:n,pageable:e,baseParam:s,searchParam:u,totalParam:J,pageParam:j,handleSizeChange:y,handleCurrentChange:P,getTableList:S,search:x,reset:B}=U(K,f,_);M(async()=>{const r=c.query.id;u.value.bizPackageId=r,await S()});const z=r=>{r.packageUrl,r.packageUrl&&window.open(r.packageUrl)};return(r,t)=>{const E=p("PaSearchForm"),T=p("el-link"),w=p("PaProTable"),F=p("el-pagination"),v=p("PaIndexPage");return k(),b(v,null,{searchForm:o(()=>[i(E,{"search-param":a(u),columns:a(d),search:a(x),reset:a(B)},null,8,["search-param","columns","search","reset"])]),pagination:o(()=>[i(F,{"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(y),onCurrentChange:a(P)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:o(()=>t[5]||(t[5]=[])),default:o(()=>[i(w,{columns:a(g),data:a(n)},{tableHeader:o(()=>t[2]||(t[2]=[])),toolButton:o(()=>t[3]||(t[3]=[])),operation:o(l=>[l.row.packageStatus=="finish"?(k(),b(T,{key:0,type:"primary",onClick:A=>z(l.row)},{default:o(()=>t[4]||(t[4]=[W(" \u4E0B\u8F7D ")])),_:2},1032,["onClick"])):(k(),q("span",V,"\u6253\u5305\u5B8C\u6210\u5373\u53EF\u4E0B\u8F7D"))]),_:1},8,["columns","data"])]),_:1})}}});const ee=L(H,[["__scopeId","data-v-a613d5e6"]]);export{ee as default};
