(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-18720991"],{3879:function(t,e,r){"use strict";r.d(e,"a",(function(){return n})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return s})),r.d(e,"e",(function(){return l})),r.d(e,"b",(function(){return c})),r.d(e,"h",(function(){return i})),r.d(e,"g",(function(){return u})),r.d(e,"i",(function(){return p})),r.d(e,"f",(function(){return d}));var a=r("6b2d");const n=t=>a.a.post("/report.reportCategory/add",t),o=t=>a.a.get("/report.reportCategory/list",{params:t}),s=t=>a.a.get("/report.reportCategory/detail",{params:t}),l=t=>a.a.post("/report.reportCategory/update",t),c=t=>a.a.get("/report.reportCategory/del",{params:t}),i=t=>a.a.get("/report.report/list",{params:t}),u=t=>a.a.get("/report.report/detail",{params:t}),p=t=>a.a.post("/report.report/update",t),d=t=>a.a.get("/report.report/del",{params:t})},"6b2d":function(t,e,r){"use strict";var a=r("0613"),n=r("bc3a"),o=r.n(n),s=r("d70b"),l=r("afbc"),c=r("5c96"),i=r("6ddb");const u={baseURL:s.a.baseURL+"/adminapi",headers:{"content-type":"application/json"}},p=(Object(i.g)(()=>(a.a.commit("setToken",""),a.a.commit("setUserInfo",{}),a.a.commit("setPermission",{}),l.b.push("/account/login"),Promise.reject())),o.a.create(u));p.interceptors.request.use(t=>{const e=a.a.getters.token;return e&&(t.headers.token=e),t.headers.version=s.a.version,t},t=>Promise.reject(t)),p.interceptors.response.use(t=>t.data,t=>(Object(c.Message)({type:"error",message:"系统错误，请稍候再试"}),Promise.reject(t))),e.a=p},ba49:function(t,e,r){"use strict";r.r(e);var a=r("3879"),n={data:()=>({table:{currentPage:1,pageSizes:[10],total:0,data:null}}),methods:{delItem(t){this.$confirm("此操作将永久删除该举报, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(a.f)({id:t}).then(t=>{1==t.code?(this.$message.success("删除成功!"),this.getData(10,this.table.currentPage)):this.$message.error(t.msg)})}).catch(()=>{})},jumpDetail(t){this.$router.push({path:"/report/detail",query:{id:t}})},handleSizeChange(t){},handleCurrentChange(t){this.table.currentPage=t},getData(t,e){Object(a.h)({page:e}).then(t=>{this.table.currentPage=e,this.table.total=t.data.total,this.table.data=t.data.data})},updateStatus(t,e){Object(a.i)({id:t,status:e}).then(t=>{1==t.code?(this.$message.success("修改成功!"),this.getData(10,this.table.currentPage)):this.$message.error(t.msg)})}},mounted(){this.getData(10,1)}},o=r("2877"),s=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-table",{staticStyle:{width:"100%"},attrs:{data:null==t.table.data?[]:t.table.data}},[r("el-table-column",{attrs:{prop:"id",label:"ID",width:"80"}}),r("el-table-column",{attrs:{prop:"category_id",label:"分类ID",width:"80"}}),r("el-table-column",{attrs:{prop:"user.nickname",label:"用户",width:"100"}}),r("el-table-column",{attrs:{prop:"reported_content_id",label:"举报对象ID",width:"100"}}),r("el-table-column",{attrs:{width:"100",label:"举报位置"},scopedSlots:t._u([{key:"default",fn:function(e){return["article"==e.row.reported_content_type?r("span",[t._v("文章")]):t._e(),"circle"==e.row.reported_content_type?r("span",[t._v("圈子")]):t._e(),"group"==e.row.reported_content_type?r("span",[t._v("群聊")]):t._e(),"user"==e.row.reported_content_type?r("span",[t._v("用户")]):t._e(),"shop"==e.row.reported_content_type?r("span",[t._v("闲置商城")]):t._e(),"twoshop"==e.row.reported_content_type?r("span",[t._v("二手商城")]):t._e()]}}])}),r("el-table-column",{attrs:{prop:"content",label:"举报内容"}}),r("el-table-column",{attrs:{label:"证明图片"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.evidence,(function(t,a){return r("el-image",{key:"scope.row.evidence"+a,staticStyle:{width:"80px",height:"80px",margin:"0 2px"},attrs:{src:t,"preview-src-list":e.row.evidence}})}))}}])}),r("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?r("span",[t._v("未处理")]):t._e(),1==e.row.status?r("span",{staticStyle:{color:"green"}},[t._v("同意")]):t._e(),2==e.row.status?r("span",{staticStyle:{color:"red"}},[t._v("拒绝")]):t._e()]}}])}),r("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.jumpDetail(e.row.id)}}},[t._v("详情")]),r("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(r){return t.delItem(e.row.id)}}},[t._v("删除")]),r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.updateStatus(e.row.id,1)}}},[t._v("同意")]),r("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(r){return t.updateStatus(e.row.id,2)}}},[t._v("拒绝")])]}}])})],1),r("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=s.exports}}]);