import{C as h}from"./client-803b3680.js";import{H as m,_ as w,i as C,ah as p,o as D,c as v,V as t,P as n,a as z,T as x}from"./@vue-6dabbe94.js";import"./index-a6ee13d3.js";import"./pinia-b6f74250.js";import"./vue-router-c1461dfc.js";import"./vue-i18n-b3581196.js";import"./@intlify-ea47d1db.js";import"./source-map-7d7e1c08.js";import"./vue-b1ba6f14.js";import"./js-cookie-edb2da2a.js";import"./@element-plus-64e6e14a.js";import"./nprogress-08a53ce8.js";import"./axios-4a70c6fc.js";import"./qs-c5b6dbf2.js";import"./side-channel-394f276c.js";import"./get-intrinsic-bd2830fd.js";import"./has-symbols-e8f3ca0e.js";import"./has-proto-f7d0b240.js";import"./function-bind-22e7ee79.js";import"./has-26d28e02.js";import"./call-bind-e5c1c8b0.js";import"./object-inspect-8fd4bade.js";import"./element-plus-91d6d961.js";import"./lodash-es-9851428c.js";import"./@vueuse-e129c873.js";import"./@popperjs-c75af06c.js";import"./@ctrl-f8748455.js";import"./dayjs-f6fdf7b4.js";import"./async-validator-dee29e8b.js";import"./memoize-one-297ddbcb.js";import"./escape-html-b8998962.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-880a26aa.js";import"./mitt-f7ef348c.js";import"./vue-grid-layout-ec2a62c3.js";const N={class:"mb15"},S=m({name:"articleCommentManager"}),mt=m({...S,setup(y){const s=h(),a=w({tableData:{data:[],total:0,loading:!1,param:{pageNum:1,pageSize:10}}}),r=()=>{s.getArticleCommentList(a.tableData.param).then(e=>{a.tableData.data=e.data.records,a.tableData.total=e.data.total}).catch(()=>{})},c=e=>{a.tableData.param.pageSize=e,r()},d=e=>{a.tableData.param.pageNum=e,r()};return C(()=>{r()}),(e,l)=>{const u=p("el-input"),_=p("el-button"),o=p("el-table-column"),b=p("el-table"),g=p("el-pagination"),f=p("el-card");return D(),v("div",null,[t(f,{shadow:"hover"},{default:n(()=>[z("div",N,[t(u,{placeholder:"请输入评论内容",size:"default","prefix-icon":"el-icon-search",style:{"max-width":"180px"},class:"ml10"}),t(_,{type:"primary",class:"ml10",size:"default"},{default:n(()=>[x("查询")]),_:1})]),t(b,{data:a.tableData.data,stripe:"",style:{width:"100%"}},{default:n(()=>[t(o,{prop:"id",label:"ID","show-overflow-tooltip":""}),t(o,{prop:"content",label:"评论内容","show-overflow-tooltip":""}),t(o,{prop:"parentComment",label:"回复评论","show-overflow-tooltip":""}),t(o,{prop:"author",label:"评论人","show-overflow-tooltip":""}),t(o,{prop:"articleTitle",label:"评论文章","show-overflow-tooltip":""}),t(o,{prop:"status",label:"状态","show-overflow-tooltip":""}),t(o,{prop:"created",label:"创建时间","show-overflow-tooltip":""})]),_:1},8,["data"]),t(g,{onSizeChange:c,onCurrentChange:d,class:"mt15","pager-count":5,"page-sizes":[10,20,30],"current-page":a.tableData.param.pageNum,"onUpdate:currentPage":l[0]||(l[0]=i=>a.tableData.param.pageNum=i),background:"","page-size":a.tableData.param.pageSize,"onUpdate:pageSize":l[1]||(l[1]=i=>a.tableData.param.pageSize=i),layout:"total, sizes, prev, pager, next, jumper",total:a.tableData.total},null,8,["current-page","page-size","total"])]),_:1})])}}});export{mt as default};
