(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3a3149d7"],{"2c9f":function(t,e,a){"use strict";a.r(e);var n=a("0a6d"),i=a("7d98"),l={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null,aid:0}}),components:{LsDialog:n.a},methods:{handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t},getData(t,e){Object(i.c)({page_no:e,page_size:t,aid:this.table.aid}).then(t=>{this.table.currentPage=e,this.table.total=t.count,this.table.data=t.lists})},onArticleCommentDel(t){this.$confirm("此操作将永久删除该评论, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(i.b)({id:t.id}).then(t=>{this.getData(this.table.pageSizes[0],this.table.currentPage)}).catch(t=>{})})}},mounted(){this.getData(this.table.pageSizes[0],1)},created(){const t=this.$route.query;this.table.aid=t.id}},r=a("2877"),c=Object(r.a)(l,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:null==t.table.data?[]:t.table.data}},[a("el-table-column",{attrs:{prop:"id",label:"评论id",width:"180"}}),a("el-table-column",{attrs:{prop:"pid",label:"父评论id",width:"180"}}),a("el-table-column",{attrs:{prop:"reply_user_id",label:"评论用户",width:"180"}}),a("el-table-column",{attrs:{prop:"nickname",label:"用户名",width:"180"}}),a("el-table-column",{attrs:{prop:"ip_address",label:"IP地址",width:"180"}}),a("el-table-column",{attrs:{prop:"comment",label:"评论内容"}}),a("el-table-column",{attrs:{width:"180",label:"编辑"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onArticleCommentDel(e.row)}}},[t._v("删除")])]}}])})],1),a("el-pagination",{attrs:{"current-page":t.table.currentPage,"page-sizes":t.table.pageSizes,"page-size":10,layout:"total, sizes, prev, pager, next, jumper",total:t.table.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)}),[],!1,null,null,null);e.default=c.exports},"7d98":function(t,e,a){"use strict";a.d(e,"g",(function(){return l})),a.d(e,"d",(function(){return r})),a.d(e,"e",(function(){return c})),a.d(e,"f",(function(){return o})),a.d(e,"a",(function(){return s})),a.d(e,"h",(function(){return u})),a.d(e,"c",(function(){return d})),a.d(e,"b",(function(){return p})),a.d(e,"n",(function(){return b})),a.d(e,"k",(function(){return h})),a.d(e,"l",(function(){return g})),a.d(e,"m",(function(){return m})),a.d(e,"j",(function(){return f})),a.d(e,"i",(function(){return _}));var n=a("f175"),i=a("6b2d");const l=t=>n.a.get("/article/lists",{params:t}),r=t=>n.a.post("/article/delete",t),c=t=>n.a.get("/article/detail",{params:t}),o=t=>n.a.post("/article/edit",t),s=t=>n.a.post("/article/add",t),u=t=>n.a.post("/article/status",t),d=t=>n.a.get("/article/comment_lists",{params:t}),p=t=>n.a.post("/article/comment_delete",t),b=t=>n.a.get("/article/topic_lists",{params:t}),h=t=>n.a.post("/article/topic_delete",t),g=t=>n.a.get("/article/topic_detail",{params:t}),m=t=>n.a.post("/article/topic_edit",t),f=t=>n.a.post("/article/topic_add",t),_=t=>i.a.get("/article/pendingProcessing",{params:t})}}]);