text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc659ac6"],{"1d50":function(t,e,a){"use strict";var n=a("9e76"),i=a.n(n);i.a},"333d":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},i=[];a("c5f6");Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,a){var n=s(),i=t-n,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var s=Math.easeInOutQuad(c,n,i,e);r(s),c<e?o(t):a&&"function"===typeof a&&a()};u()}var c={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&l(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},u=c,p=(a("e498"),a("2877")),d=Object(p["a"])(u,n,i,!1,null,"6af373ef",null);e["a"]=d.exports},6724:function(t,e,a){"use strict";a("8d41");var n="@@wavesContext";function i(t,e){function a(a){var n=Object.assign({},e.value),i=Object.assign({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),o=i.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var r=o.getBoundingClientRect(),s=o.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":(s=document.createElement("span"),s.className="waves-ripple",s.style.height=s.style.width=Math.max(r.width,r.height)+"px",o.appendChild(s)),i.type){case"center":s.style.top=r.height/2-s.offsetHeight/2+"px",s.style.left=r.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(a.pageY-r.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(a.pageX-r.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=i.color,s.className="waves-ripple z-active",!1}}return t[n]?t[n].removeHandle=a:t[n]={removeHandle:a},a}var o={bind:function(t,e){t.addEventListener("click",i(t,e),!1)},update:function(t,e){t.removeEventListener("click",t[n].removeHandle,!1),t.addEventListener("click",i(t,e),!1)},unbind:function(t){t.removeEventListener("click",t[n].removeHandle,!1),t[n]=null,delete t[n]}},r=function(t){t.directive("waves",o)};window.Vue&&(window.waves=o,Vue.use(r)),o.install=r;e["a"]=o},"71ff":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.param,"label-width":"120px"}},[a("el-form-item",[a("span",{staticClass:"el-input-group__append formLabel"},[t._v("举报状态")]),t._v(" "),a("el-select",{staticClass:"filter-item bottom-space",staticStyle:{width:"120px"},attrs:{placeholder:"举报状态",clearable:""},model:{value:t.param.status,callback:function(e){t.$set(t.param,"status",e)},expression:"param.status"}},[a("el-option",{attrs:{value:""}},[t._v("请选择")]),t._v(" "),t._l(t.reportStatus,function(t,e){return a("el-option",{key:e,attrs:{label:t,value:e}})})],2)],1),t._v(" "),a("el-input",{staticClass:"filter-item bottom-space",staticStyle:{width:"200px"},attrs:{placeholder:"商品编号"},model:{value:t.param.skuId,callback:function(e){t.$set(t.param,"skuId",e)},expression:"param.skuId"}},[a("template",{slot:"prepend"},[t._v("商品编号:")])],2),t._v(" "),a("el-input",{staticClass:"filter-item bottom-space",staticStyle:{width:"200px"},attrs:{placeholder:"举报人"},model:{value:t.param.pin,callback:function(e){t.$set(t.param,"pin",e)},expression:"param.pin"}},[a("template",{slot:"prepend"},[t._v("举报人:")])],2),t._v(" "),a("el-input",{staticClass:"filter-item bottom-space",staticStyle:{width:"300px"},attrs:{placeholder:"举报内容"},model:{value:t.param.content,callback:function(e){t.$set(t.param,"content",e)},expression:"param.content"}},[a("template",{slot:"prepend"},[t._v("举报内容:")])],2),t._v(" "),a("el-form-item",[a("span",{staticClass:"el-input-group__append formLabel"},[t._v("举报时间")]),t._v(" "),a("date-time-picker",{attrs:{dateValue:t.timeRange},on:{"update:dateValue":function(e){t.timeRange=e},"update:date-value":function(e){t.timeRange=e}}})],1),t._v(" "),a("br"),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item bottom-space",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v("\n        查询\n      ")]),t._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item bottom-space",attrs:{type:"danger",icon:"el-icon-refresh"},on:{click:t.resetSearch}},[t._v("\n        重置\n      ")])],1)],1),t._v(" "),a("el-divider"),t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.totalCount>=0,expression:"totalCount>=0"}],staticStyle:{padding:"20px 0 5px"},attrs:{total:t.totalCount,page:t.param.pageIndex,limit:t.param.pageSize},on:{"update:page":function(e){return t.$set(t.param,"pageIndex",e)},"update:limit":function(e){return t.$set(t.param,"pageSize",e)},pagination:t.getList}}),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,"row-class-name":t.tableRowClassName,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"商品",align:"center","min-width":"60px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[n.skuId?a("span",[t._v(t._s(n.skuId))]):a("span",[t._v("0")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品名称","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-link",{attrs:{icon:"el-icon-link",underline:!1,type:"info",href:"https://item.jd.com/"+n.skuId+".html",target:"_blank"}},[t._v("\n          "+t._s(t._f("contentFilter")(n.skuName))+"\n        ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"评价人","min-width":"85px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",{ref:"reportInfoList"},[t._v(t._s(n.pin))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"举报次数","min-width":"45px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.openReportInfoList(n)}}},[t._v(t._s(n.reportInfoList.length))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"评价内容","min-width":"265px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(t._s(n.content))]),a("br"),t._v(" "),t._l(n.imageList,function(e){return a("span",[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[a("img",{attrs:{src:e}}),t._v(" "),a("img",{staticStyle:{width:"96px",height:"128px","margin-right":"5px"},attrs:{slot:"reference",src:e},slot:"reference"})])],1)})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"评分",width:"92px"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(+e.row.score,function(t){return a("svg-icon",{key:t,staticClass:"meta-item__icon",attrs:{"icon-class":"star"}})})}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态","class-name":"status-col","min-width":"55px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-tag",{attrs:{type:String(n.status)}},[t._v("\n          "+t._s(t.auditStatus[n.status])+"\n        ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"沉底置顶","class-name":"status-col","min-width":"50px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-tag",{attrs:{type:String(n.topStatus),effect:"plain"}},[a("i",{class:t._f("topStatusIconFilter")(n.topStatus)}),t._v("\n          "+t._s(t.topStatus[n.topStatus])+"\n        ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"评价时间","min-width":"100px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("i",{staticClass:"el-icon-time"}),t._v(" "),a("span",[t._v(t._s(e.row.display_time))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"45px","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(e){return t.deleteComment(n,-1)}}},[t._v("\n          删除\n        ")])]}}])})],1),t._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.totalCount>0,expression:"totalCount>0"}],staticStyle:{padding:"20px 0 5px"},attrs:{total:t.totalCount,page:t.param.pageIndex,limit:t.param.pageSize},on:{"update:page":function(e){return t.$set(t.param,"pageIndex",e)},"update:limit":function(e){return t.$set(t.param,"pageSize",e)},pagination:t.getList}}),t._v(" "),a("el-dialog",{attrs:{title:"举报详情列表",visible:t.reportInfoDialog,width:"70%"},on:{"update:visible":function(e){t.reportInfoDialog=e}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.reportInfoList,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"举报人","min-width":"60px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(t._s(n.pin))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"原因","min-width":"30px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(t._s(t.reasonMap[n.reasonId]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"内容","min-width":"200px"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(t._s(n.content))]),a("br"),t._v(" "),t._l(n.pictureList,function(e){return a("span",[a("el-popover",{attrs:{placement:"right",title:"",trigger:"hover"}},[a("img",{attrs:{src:e}}),t._v(" "),a("img",{staticStyle:{width:"96px",height:"128px","margin-right":"5px"},attrs:{slot:"reference",src:e},slot:"reference"})])],1)})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"类型","min-width":"30px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-tag",{attrs:{type:n.type}},[0==n.type?a("span",[t._v("用户")]):t._e(),t._v(" "),1==n.type?a("span",[t._v("商家")]):t._e()])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"状态","class-name":"status-col","min-width":"50px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(" "+t._s(t.reportStatus[n.status])+" ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"举报时间",width:"180px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("i",{staticClass:"el-icon-time"}),t._v(" "),a("span",[t._v(t._s(n.reportTime))])]}}])})],1)],1)],1)},i=[],o=a("b775");function r(t){return Object(o["a"])({url:"/report/list",method:"post",params:t})}function s(){return Object(o["a"])({url:"/report/reasonList",method:"post"})}function l(t){return Object(o["a"])({url:"/report/deleteComment",method:"post",params:t})}var c=a("6724"),u=a("333d"),p=a("f9210"),d=a("bea6"),m=a("ed08"),f={name:"ComplexTable",components:{ElFormItem:d["a"],Pagination:u["a"],DateTimePicker:p["a"]},directives:{waves:c["a"]},filters:{contentFilter:function(t){return t.length>20?t.substr(0,20)+"...":t},topStatusIconFilter:function(t){var e={1:"el-icon-top",0:"el-icon-minus","-1":"el-icon-bottom"};return e[t]}},data:function(){return{showAll:!1,multipleSelection:[],tableKey:0,list:null,reportInfoList:[],reasonMap:{},totalCount:0,listLoading:!0,timeRange:[Object(m["b"])(new Date-864e5,"{y}-{m}-{d} {h}:{i}:{s}"),Object(m["b"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}")],param:{pageIndex:1,pageSize:20,status:"",sku:"",pin:"",content:"",reportTimeStart:"",reportTimeEnd:""},scoreOptions:[1,2,3],auditStatus:{1:"审核通过","-1":"已删除",0:"待审核"},topStatus:{0:"其他",1:"置顶","-1":"沉底","-2":"折叠"},reportStatus:{1:"待审核",2:"审核中",3:"审核被拒绝",4:"审核被驳回",5:"审核已取消",6:"审核已完成",7:"审核未通过",8:"审核已通过"},reportInfoDialog:!1,pvData:[],downloadLoading:!1}},created:function(){this.getReasonList(),this.getList()},methods:{getReasonList:function(){var t=this;s().then(function(e){0===e.code?t.reasonMap=e.reasonMap:t.$notify({title:"错误",message:"查询出错，错误码："+e.code,type:"error",duration:2e3})})},getList:function(){var t=this;this.listLoading=!0,r(this.param).then(function(e){0===e.code?(t.list=e.reportCommentList,t.totalCount=e.totalCount):t.$notify({title:"错误",message:"查询出错，错误码："+e.code,type:"error",duration:2e3}),setTimeout(function(){t.listLoading=!1},1500)})},handleFilter:function(){this.timeRange?(this.param.reportTimeStart=this.timeRange[0],this.param.reportTimeEnd=this.timeRange[1]):(this.param.reportTimeStart="",this.param.reportTimeEnd=""),this.getList()},resetSearch:function(){this.param.status="",this.param.pin="",this.param.sku="",this.param.content="",this.param.reportTimeStart=Object(m["b"])(new Date-864e5,"{y}-{m}-{d} {h}:{i}:{s}"),this.param.reportTimeEnd=Object(m["b"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}"),this.timeRange=[Object(m["b"])(new Date-864e5,"{y}-{m}-{d} {h}:{i}:{s}"),Object(m["b"])(new Date,"{y}-{m}-{d} {h}:{i}:{s}")],this.getList()},tableRowClassName:function(t){var e=t.row;t.rowIndex;return 1===e.score?"danger-row":e.score<4?"warning-row":""},deleteComment:function(t,e){var a=this,n={id:t.id,skuId:t.skuId,orderId:t.orderId,clientCode:t.clientCode};l(n).then(function(t){0===t.code?(a.$notify({title:"成功",message:"删除成功",type:"success",duration:2e3}),a.getList()):a.$notify({title:"错误",message:"删除出错，错误码："+t.code,type:"error",duration:2e3})})},handleSelectionChange:function(t){this.multipleSelection=t},openReportInfoList:function(t){this.reportInfoDialog=!0,this.reportInfoList=t.reportInfoList}}},g=f,v=(a("1d50"),a("2877")),h=Object(v["a"])(g,n,i,!1,null,"28db2ba6",null);e["default"]=h.exports},7456:function(t,e,a){},"8d41":function(t,e,a){},"9e76":function(t,e,a){},e498:function(t,e,a){"use strict";var n=a("7456"),i=a.n(n);i.a},f9210:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-date-picker",{staticStyle:{width:"435px"},attrs:{type:"datetimerange","picker-options":t.pickerOptions,"range-separator":"-","start-placeholder":"起始时间","end-placeholder":"结束时间",align:"right","value-format":"yyyy-MM-dd HH:mm:ss"},on:{change:t.handleChange},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})},i=[],o={props:["dateValue"],data:function(){return{pickerOptions:{shortcuts:[{text:"昨天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-864e5),t.$emit("pick",[a,e])}},{text:"近一周",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"近一月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"近三月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}},{text:"近半年",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-15552e6),t.$emit("pick",[a,e])}},{text:"近一年",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-31536e6),t.$emit("pick",[a,e])}}]},value:[new Date(new Date-864e5),new Date]}},watch:{value:function(t){this.$emit("update:dateValue",t)},dateValue:function(){this.dateValue&&(this.value=this.dateValue)}},methods:{handleChange:function(t){this.$emit("time-change",t),console.log("time-change val = "+t)}}},r=o,s=a("2877"),l=Object(s["a"])(r,n,i,!1,null,null,null);e["a"]=l.exports}}]);