(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6628c4e0"],{3879:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"d",(function(){return n})),r.d(e,"c",(function(){return s})),r.d(e,"e",(function(){return i})),r.d(e,"b",(function(){return l})),r.d(e,"h",(function(){return c})),r.d(e,"g",(function(){return p})),r.d(e,"i",(function(){return d})),r.d(e,"f",(function(){return m}));var a=r("6b2d");const o=t=>a.a.post("/report.reportCategory/add",t),n=t=>a.a.get("/report.reportCategory/list",{params:t}),s=t=>a.a.get("/report.reportCategory/detail",{params:t}),i=t=>a.a.post("/report.reportCategory/update",t),l=t=>a.a.get("/report.reportCategory/del",{params:t}),c=t=>a.a.get("/report.report/list",{params:t}),p=t=>a.a.get("/report.report/detail",{params:t}),d=t=>a.a.post("/report.report/update",t),m=t=>a.a.get("/report.report/del",{params:t})},d686:function(t,e,r){"use strict";r.r(e);var a=r("3879"),o=r("b3ad"),n=(r("b6c4"),{data:()=>({form:{name:""},id:0,categoryInfo:{name:""},categorys:[],types:[{type:"article",name:"文章"},{type:"circle",name:"圈子"},{type:"group",name:"群聊"},{type:"user",name:"用户"},{type:"shop",name:"自营商城"},{type:"twoshop",name:"闲置商城"}]}),components:{MaterialSelect:o.a},methods:{submitForm(t){this.$refs[t].validate(t=>{if(!t)return!1})},getDetail(){Object(a.g)({id:this.form.id}).then(t=>{1==t.code?(this.form=t.data,this.getCategoryInfo(this.form.category_id)):this.$message.error(t.msg)})},getCategoryList(){Object(a.d)().then(t=>{this.categorys=t.data})},getCategoryInfo(t){Object(a.c)({id:t}).then(t=>{this.categoryInfo=t.data})},updateStatus(t){Object(a.i)({id:this.form.id,status:t}).then(t=>{1==t.code?(this.$message.success("修改成功!"),this.getDetail(),this.getCategoryList(),setTimeout(()=>this.$router.go(-1),500)):this.$message.error(t.msg)})}},mounted(){this.getDetail(),this.getCategoryList()},created(){const t=this.$route.query;this.form.id=t.id}}),s=r("2877"),i=Object(s.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"ls-card"},[r("el-page-header",{attrs:{content:"举报详情"},on:{back:function(e){return t.$router.go(-1)}}})],1),r("div",{staticClass:"ls-card m-t-16"},[r("div",{staticClass:"card-title"},[t._v("举报详情")]),r("div",{staticClass:"card-content m-t-24"},[r("el-form",{ref:"form",attrs:{disabled:"",model:t.form,"label-width":"80px"}},[r("el-form-item",{attrs:{prop:"name",label:"分类名称"}},[r("el-input",{model:{value:t.categoryInfo.name,callback:function(e){t.$set(t.categoryInfo,"name",e)},expression:"categoryInfo.name"}})],1),r("el-form-item",{attrs:{prop:"content",label:"详情"}},[r("el-input",{model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1),r("el-form-item",{attrs:{prop:"created_time",label:"举报时间"}},[r("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期时间"},model:{value:t.form.created_time,callback:function(e){t.$set(t.form,"created_time",e)},expression:"form.created_time"}})],1),r("el-form-item",{attrs:{prop:"evidence",label:"证明图片"}},t._l(t.form.evidence,(function(e){return r("el-image",{key:e,staticStyle:{width:"80px",height:"80px",margin:"10px"},attrs:{src:e,"preview-src-list":t.form.evidence}})})),1),r("el-form-item",{attrs:{prop:"reported_content_id",label:"举报ID"}},[r("el-input",{model:{value:t.form.reported_content_id,callback:function(e){t.$set(t.form,"reported_content_id",e)},expression:"form.reported_content_id"}})],1),r("el-form-item",{attrs:{prop:"status",label:"举报状态"}},[r("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[r("el-radio",{attrs:{label:0}},[t._v("未处理")]),r("el-radio",{attrs:{label:1}},[t._v("同意")]),r("el-radio",{attrs:{label:2}},[t._v("拒绝")])],1)],1),r("el-form-item",{attrs:{prop:"reported_content_type",label:"举报位置"}},[r("el-select",{model:{value:t.form.reported_content_type,callback:function(e){t.$set(t.form,"reported_content_type",e)},expression:"form.reported_content_type"}},t._l(t.types,(function(t){return r("el-option",{key:t.type,attrs:{value:t.type,label:t.name}})})),1)],1),r("el-form-item",{attrs:{prop:"user_id",label:"举报用户"}},[r("el-input",{model:{value:t.form.user.nickname,callback:function(e){t.$set(t.form.user,"nickname",e)},expression:"form.user.nickname"}}),r("router-link",{staticClass:"muted",staticStyle:{"margin-left":"10px"},attrs:{to:"/user/user_details?id="+t.form.user.id,target:"_blank"}},[t._v("用户id详情")])],1)],1)],1)]),r("div",{staticClass:"bg-white ls-fixed-footer"},[r("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[r("el-button",{attrs:{size:"small"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("取消")]),r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.updateStatus(1)}}},[t._v("通过审核")]),r("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(e){return t.updateStatus(2)}}},[t._v("拒绝审核")])],1)])])}),[],!1,null,null,null);e.default=i.exports}}]);