import{u as H}from"./useTable-cf8e962b-1782729249161v=1.0.0.js";import{b as N,u as E,a as Z,_ as M}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{r as m,y as b,m as L,al as s,z as O,I as V,J as o,R as p,u as e,M as _,O as Y}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import{c as R}from"./noticeApi-b0dbfbdc-1782729249161v=1.0.0.js";import"./notData-926f7286-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";const J=()=>{N(),m([]),(async()=>{})();const c=m([{prop:"name",label:"\u516C\u544A\u6807\u9898",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u516C\u544A\u6807\u9898"}},{prop:"createTime",label:"\u53D1\u5E03\u65F6\u95F4",search:{el:"datePicker",width:500,props:{type:"daterange",rangeSeparator:"\u81F3",valueFormat:"YYYY-MM-DD"},placeholder:"\u8BF7\u9009\u62E9"}}]),u=m([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u516C\u544A\u6807\u9898",prop:"name"},{label:"\u53D1\u5E03\u4EBA",prop:"updater"},{label:"\u53D1\u5E03\u65F6\u95F4",prop:"publishTime"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:c,tableColumns:u,dataCallBack:a=>(a.listData.forEach(n=>{var i;((i=n.coverImage)==null?void 0:i.length)>0?n.coverImage=JSON.parse(n.coverImage||"[]"):n.coverImage=[]}),a),paramCallBack:a=>(a.createTime&&a.createTime.length>0&&(a.startPublishTime=a.createTime[0]+" 00:00:00",a.endPublishTime=a.createTime[1]+" 23:59:59"),a)}},U=J,$=b({name:"noticeIndex"}),q=b({...$,setup(k){const c=E(),u=Z(),{tableColumns:d,columns:g,dataCallBack:a,paramCallBack:n}=U(),{tableData:i,pageable:l,baseParam:C,searchParam:f,totalParam:A,pageParam:j,handleSizeChange:y,handleCurrentChange:v,getTableList:x,search:T,reset:w,loading:S}=H(R,a,n);L(async()=>{C.value.status=1,await x()});const P=h=>{c.push({name:"noticeMgmtDetail",query:{id:h.noticeId}})};return(h,t)=>{const z=s("HZSearchForm"),B=s("el-link"),I=s("HZProTable"),D=s("el-pagination"),F=s("HZPageLayout");return O(),V(F,{title:e(u).meta.title},{searchForm:o(()=>[p(z,{"search-param":e(f),columns:e(g),search:e(T),reset:e(w)},null,8,["search-param","columns","search","reset"])]),pagination:o(()=>[p(D,{"current-page":e(l).page,"onUpdate:currentPage":t[0]||(t[0]=r=>e(l).page=r),"page-size":e(l).size,"onUpdate:pageSize":t[1]||(t[1]=r=>e(l).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(l).count,onSizeChange:e(y),onCurrentChange:e(v)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:o(()=>t[4]||(t[4]=[])),default:o(()=>[p(I,{columns:e(d),data:e(i),isFlex:!1,loading:e(S)},{tableHeader:o(()=>t[2]||(t[2]=[])),toolButton:o(()=>[_(' <el-button type="primary" @click="handleAdd"> \u65B0\u589E </el-button> ')]),operation:o(r=>[p(B,{type:"primary",onClick:G=>P(r.row)},{default:o(()=>t[3]||(t[3]=[Y(" \u67E5\u770B ",-1)])),_:2,__:[3]},1032,["onClick"]),_(` <el-link v-if="scope.row.status == 1" @click="handleChangeStatus(scope.row, 0)" type="danger"> \u505C\u7528 </el-link>
				<template v-if="scope.row.status == 0">
					<el-link @click="handleChangeStatus(scope.row, 1)" type="primary">\u53D1\u5E03</el-link>
					<el-link type="primary" @click="handleEdit(scope.row)"> \u7F16\u8F91 </el-link>
					<el-link type="danger" @click="handleDel(scope.row)"> \u5220\u9664 </el-link>
				</template> `)]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const te=M(q,[["__scopeId","data-v-bc422442"]]);export{te as default};
