(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4fb74e7a"],{"07a3":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:product:reply:list"],expression:"['platform:product:reply:list']"}],staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{inline:!0}},[a("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.dateLimit)}},model:{value:t.tableFrom.dateLimit,callback:function(e){t.$set(t.tableFrom,"dateLimit",e)},expression:"tableFrom.dateLimit"}},t._l(t.fromList.fromTxt,(function(e,i){return a("el-radio-button",{key:i,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"220px"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"审核状态"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.auditStatus,callback:function(e){t.$set(t.tableFrom,"auditStatus",e)},expression:"tableFrom.auditStatus"}},t._l(t.statusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{staticClass:"mr10",attrs:{label:"内容标题:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入文章标题",size:"small",clearable:""},model:{value:t.title,callback:function(e){t.title="string"===typeof e?e.trim():e},expression:"title"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.seachList},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"用户名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户名称",size:"small",clearable:""},model:{value:t.tableFrom.userName,callback:function(e){t.$set(t.tableFrom,"userName","string"===typeof e?e.trim():e)},expression:"tableFrom.userName"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.seachList},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"评论内容:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入评论内容",size:"small",clearable:""},model:{value:t.keywords,callback:function(e){t.keywords="string"===typeof e?e.trim():e},expression:"keywords"}},[a("el-button",{attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:t.seachList},slot:"append"})],1)],1)],1)],1)]),t._v(" "),a("el-table",{attrs:{data:t.tableData.data,size:"mini","header-cell-style":{fontWeight:"bold"}}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户名/ID","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.userNickname+" / "+i.uid))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"noteTitle",label:"文章标题","min-width":"120","show-overflow-tooltip":!0}}),t._v(" "),a("el-table-column",{attrs:{prop:"content",label:"评论内容","min-width":"150","show-overflow-tooltip":!0}}),t._v(" "),a("el-table-column",{attrs:{prop:"countReply",label:"评论数","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"countStart",label:"点赞数","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"评论时间","min-width":"150",prop:"createTime"}}),t._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("communityStatusFilter")(e.row.auditStatus)))]),t._v(" "),2==e.row.status?a("span",{staticStyle:{display:"block","font-size":"12px",color:"red"}},[t._v("原因 "+t._s(e.row.refusal))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.auditStatus&&t.checkPermi(["platform:community:reply:audit"])?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onAudit(e.row)}}},[t._v("审核")]):t._e(),t._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:community:reply:delete"],expression:"['platform:community:reply:delete']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("el-drawer",{attrs:{"custom-class":"demo-drawer",direction:"rtl",visible:t.dialogVisible,size:"1000px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.onClose()}}},[a("div",{staticClass:"demo-drawer_title",attrs:{slot:"title"},slot:"title"},[t._v("评论审核")]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"demo-drawer__content"},[a("div",{staticClass:"description"},[a("div",{staticClass:"acea-row"},[a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("标题:")]),t._v(t._s(t.commentsInfo.noteTitle))]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("内容:")]),t._v(t._s(t.commentsInfo.content))]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("审核结果:")]),t._v(t._s(t._f("communityStatusFilter")(t.commentsInfo.auditStatus))+"\n ")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:2===t.commentsInfo.auditStatus,expression:"commentsInfo.auditStatus === 2"}],staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("审核失败原因:")]),t._v(t._s(t.commentsInfo.refusal)+"\n ")]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("用户昵称:")]),t._v(t._s(t.commentsInfo.userNickname)+"\n ")]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("用户ID:")]),t._v(t._s(t.commentsInfo.uid))]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("评论类型:")]),t._v(t._s(1===t.commentsInfo.type?"评论":"回复")+"\n ")]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("评论数:")]),t._v(t._s(t.commentsInfo.countReply))]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("点赞数:")]),t._v(t._s(t.commentsInfo.countStart))])])])]),t._v(" "),a("div",{staticClass:"demo-drawer__footer"},[a("div",{staticClass:"from-foot-btn drawer_fix"},[a("div",{staticClass:"acea-row justify-content"},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:seckill:product:audit"],expression:"['platform:seckill:product:audit']"},{name:"debounceClick",rawName:"v-debounceClick",value:function(){t.onAuditStatus(2)},expression:"\n () => {\n onAuditStatus(2);\n }\n "}],staticStyle:{"margin-left":"0"}},[t._v(t._s(t.loadingBtn?"提交中 ...":"审核拒绝"))]),t._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:seckill:product:audit"],expression:"['platform:seckill:product:audit']"},{name:"debounceClick",rawName:"v-debounceClick",value:function(){t.onAuditStatus(1)},expression:"\n () => {\n onAuditStatus(1);\n }\n "}],attrs:{type:"primary"}},[t._v(t._s(t.loadingBtnSuccess?"提交中 ...":"审核通过"))])],1)])])])],1)},n=[],o=a("7998"),s=a("ed08"),l=(a("c24f"),a("e350")),r={name:"StoreComment",filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(s["c"])(e,"yyyy-MM-dd hh:mm")}}},data:function(){return{loadingBtn:!1,dialogVisible:!1,statusList:[{label:"待审核",value:0},{label:"已通过",value:1},{label:"已拒绝",value:2}],props:{children:"child",label:"name",value:"id",emitPath:!1},fromList:this.$constants.fromList,tableData:{data:[],total:0},listLoading:!1,tableFrom:{page:1,limit:20,auditStatus:"",dateLimit:"",keywords:"",userName:"",title:""},keywords:"",title:"",timeVal:[],loading:!1,uids:[],options:[],timer:"",commentsInfo:{},auditStatusFrom:{auditStatus:1,id:0,refusalReason:""},id:0,loadingBtnSuccess:!1}},watch:{$route:function(t,e){this.getList()}},mounted:function(){Object(l["a"])(["platform:community:reply:page:list"])&&this.getList()},methods:{checkPermi:l["a"],onClose:function(){this.dialogVisible=!1},cancelForm:function(){var t=this;this.$modalPrompt("textarea","拒绝原因").then((function(e){t.auditStatusFrom.refusalReason=e,t.onAuditSubmit()}))},onAuditStatus:function(t){var e=this;this.auditStatusFrom.auditStatus=t,1===t?this.$modalSure("审核通过该内容吗?").then((function(){e.onAuditSubmit()})):this.cancelForm()},onAuditSubmit:function(){var t=this;this.auditStatusFrom.id=this.id,1===this.auditStatusFrom.auditStatus?this.loadingBtnSuccess=!0:this.loadingBtn=!0,Object(o["o"])(this.auditStatusFrom).then((function(e){t.$message.success("操作成功"),t.dialogVisible=!1,1===t.auditStatusFrom.auditStatus?t.loadingBtnSuccess=!1:t.loadingBtn=!1,t.getList()})).catch((function(e){1===t.auditStatusFrom.auditStatus?t.loadingBtnSuccess=!1:t.loadingBtn=!1}))},seachList:function(){this.tableFrom.page=1,this.getList()},selectChange:function(t){this.timeVal=[],this.tableFrom.page=1,this.getList()},onchangeTime:function(t){this.timeVal=t,this.tableFrom.dateLimit=t?this.timeVal.join(","):"",this.tableFrom.page=1,this.getList()},handleDelete:function(t,e){var a=this;this.$modalSure("删除该评论吗?").then((function(){Object(o["p"])(t).then((function(){a.$message.success("删除成功"),1===a.tableData.data.length&&a.tableFrom.page>1&&(a.tableFrom.page=a.tableFrom.page-1),a.getList()}))}))},getList:function(){var t=this;this.listLoading=!0,this.tableFrom.title=encodeURIComponent(this.title),this.tableFrom.keywords=encodeURIComponent(this.keywords),Object(o["q"])(this.tableFrom).then((function(e){t.tableData.data=e.list,t.tableData.total=e.total,t.listLoading=!1})).catch((function(){t.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},onAudit:function(t){this.commentsInfo=t,this.id=t.id,this.dialogVisible=!0}}},c=r,u=(a("3589"),a("2877")),m=Object(u["a"])(c,i,n,!1,null,"66c1746f",null);e["default"]=m.exports},"256b":function(t,e,a){},3589:function(t,e,a){"use strict";a("256b")},7998:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"e",(function(){return s})),a.d(e,"d",(function(){return l})),a.d(e,"f",(function(){return r})),a.d(e,"i",(function(){return c})),a.d(e,"j",(function(){return u})),a.d(e,"k",(function(){return m})),a.d(e,"l",(function(){return d})),a.d(e,"n",(function(){return p})),a.d(e,"m",(function(){return f})),a.d(e,"g",(function(){return h})),a.d(e,"h",(function(){return b})),a.d(e,"o",(function(){return v})),a.d(e,"p",(function(){return g})),a.d(e,"r",(function(){return y})),a.d(e,"q",(function(){return _})),a.d(e,"t",(function(){return w})),a.d(e,"u",(function(){return S})),a.d(e,"v",(function(){return C})),a.d(e,"w",(function(){return k})),a.d(e,"x",(function(){return F})),a.d(e,"s",(function(){return O})),a.d(e,"y",(function(){return j}));var i=a("b775");function n(t){return Object(i["a"])({url:"/admin/platform/community/category/add",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/admin/platform/community/category/delete/".concat(t),method:"post"})}function s(t){return Object(i["a"])({url:"/admin/platform/community/category/show/".concat(t),method:"post"})}function l(t){return Object(i["a"])({url:"/admin/platform/community/category/page/list",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/admin/platform/community/category/update",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/admin/platform/community/note/audit",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/admin/platform/community/note/delete/".concat(t),method:"post"})}function m(t){return Object(i["a"])({url:"/admin/platform/community/note/detail/".concat(t),method:"GET"})}function d(t){return Object(i["a"])({url:"/admin/platform/community/note/forced/down/".concat(t.id),method:"POST",data:t})}function p(t){return Object(i["a"])({url:"/admin/platform/community/note/reply/force/off/".concat(t),method:"POST"})}function f(t){return Object(i["a"])({url:"/admin/platform/community/note/page/list",method:"GET",params:t})}function h(){return Object(i["a"])({url:"/admin/platform/community/category/get/config",method:"GET"})}function b(t){return Object(i["a"])({url:"/admin/platform/community/category/update/config",method:"post",data:t})}function v(t){return Object(i["a"])({url:"/admin/platform/community/reply/audit",method:"post",data:t})}function g(t){return Object(i["a"])({url:"/admin/platform/community/reply/delete/".concat(t),method:"post"})}function y(t){return Object(i["a"])({url:"/admin/platform/community/reply/note/page/list/".concat(t.nid),method:"get",params:t})}function _(t){return Object(i["a"])({url:"/admin/platform/community/reply/page/list",method:"get",params:t})}function w(t){return Object(i["a"])({url:"/admin/platform/community/topic/add",method:"post",data:t})}function S(t){return Object(i["a"])({url:"/admin/platform/community/topic/delete/".concat(t),method:"post"})}function C(t){return Object(i["a"])({url:"/admin/platform/community/topic/page/list",method:"get",params:t})}function k(t){return Object(i["a"])({url:"/admin/platform/community/topic/recommend/".concat(t),method:"POST"})}function F(t){return Object(i["a"])({url:"/admin/platform/community/topic/update",method:"POST",data:t})}function O(t){return Object(i["a"])({url:"/admin/platform/community/note/star/update",method:"POST",data:t})}function j(t){return Object(i["a"])({url:"/admin/platform/community/note/category/batch/update",method:"POST",data:t})}}}]);