(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5b54"],{"6ClW":function(e,t,i){"use strict";i.r(t);var l=i("gDS+"),n=i.n(l),s=i("D6yg"),a=i("Mz3J"),o=i("ZySA"),r={name:"TopicList",components:{Pagination:a.a},filters:{isOnlineFilter:function(e){return{1:"success",0:"info"}[e]},genderFilter:function(e){return{"男":"success","女":"info","全部":"danger"}[e]}},directives:{waves:o.a},data:function(){return{list:null,total:0,pageSize:[10,30,50,100,250],listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{value:"",key:"",is_online:"",complaints__isnull:"",user__is_puppet:"",content_level:""},sort:["-id"]},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],ReBooleanTypeOptions:[{key:"0",display_name:"是"},{key:"1",display_name:"否"}],SearchTypeOptions:[{key:"id",display_name:"帖子ID"},{key:"content",display_name:"帖子内容"},{key:"group__name",display_name:"小组"}],ContentLevelTypeOptions:[{key:0,display_name:"未审核"},{key:1,display_name:"星级一"},{key:2,display_name:"星级二"},{key:3,display_name:"星级三"},{key:4,display_name:"星级四"},{key:5,display_name:"星级五"}],dialogFormVisible:!1,is_click:!1,dialogStatus:"",select_start_time:"",select_end_time:""}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,this.listQuery.user_id=this.$route.query.user_id||"",this.listQuery.group_id=this.$route.query.group_id||"",Object(s.e)(this.listQuery).then(function(t){e.list=t.data.data.data,e.total=t.data.data.total,e.listLoading=!1})},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.listQuery.limit=e,this.getList()},handleCurrentChange:function(e){this.listQuery.page=e,this.getList()},handleOfflineOrOnline:function(e){var t=this,i=this.multipleSelection.length,l=[],a={};this.del_list=this.del_list.concat(this.multipleSelection);for(var o=0;othis.select_end_time?(this.$message.error("起始时间不能小于结束时间....."),!1):(a.start_time=this.select_start_time,a.end_time=this.select_end_time,void Object(s.b)({updates:n()(l),ids:n()(i),extra:n()(a)}).then(function(t){e.multipleSelection=[],e.$message.success(t.data.data.message),e.$router.go(0),e.dialogFormVisible=!1})):(this.$message.error("起始时间或者结束时间不能为空....."),!1):(this.$message.error("请先勾选帖子ID,再进行后续操作....."),!1)},reset:function(){this.select_start_time="",this.select_end_time=""}}},c=(i("Xvlk"),i("KHd+")),u=Object(c.a)(r,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"160px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.listQuery.filter.value,callback:function(t){e.$set(e.listQuery.filter,"value",t)},expression:"listQuery.filter.value"}}),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:e.listQuery.filter.key,callback:function(t){e.$set(e.listQuery.filter,"key",t)},expression:"listQuery.filter.key"}},e._l(e.SearchTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"上线",clearable:""},model:{value:e.listQuery.filter.is_online,callback:function(t){e.$set(e.listQuery.filter,"is_online",t)},expression:"listQuery.filter.is_online"}},e._l(e.BooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"举报",clearable:""},model:{value:e.listQuery.filter.complaints__isnull,callback:function(t){e.$set(e.listQuery.filter,"complaints__isnull",t)},expression:"listQuery.filter.complaints__isnull"}},e._l(e.ReBooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"马甲",clearable:""},model:{value:e.listQuery.filter.is_puppet,callback:function(t){e.$set(e.listQuery.filter,"is_puppet",t)},expression:"listQuery.filter.is_puppet"}},e._l(e.BooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"帖子星级",clearable:""},model:{value:e.listQuery.filter.content_level,callback:function(t){e.$set(e.listQuery.filter,"content_level",t)},expression:"listQuery.filter.content_level"}},e._l(e.ContentLevelTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("offline")}}},[e._v("下线")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("online")}}},[e._v("上线")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.batchUpdate}},[e._v("批量上线")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.sortChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"帖子ID ",sortable:"custom","min-width":"85px",prop:"id"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/topic/edit/"+t.row.id}},[i("span",[e._v(e._s(t.row.id))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.user.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"帖子详情","min-width":"300px;"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.content))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"最新回复"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.newly_reply))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"小组"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.group.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"更新时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.update_time))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"举报时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.reported_time?t.row.reported_time:"无"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"帖子星级"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.content_level))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:e._f("isOnlineFilter")(t.row.is_online)}},[e._v(e._s(1===t.row.is_online?"是":"否"))])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticStyle:{"margin-left":"150px"},attrs:{total:e.total,page:e.listQuery.page,pageSizes:e.pageSize,limit:e.listQuery.limit},on:{"update:page":function(t){e.$set(e.listQuery,"page",t)},"update:limit":function(t){e.$set(e.listQuery,"limit",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("label",[e._v("发帖时间:  ")]),e._v(" "),i("el-date-picker",{staticStyle:{width:"230px"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"起始时间"},model:{value:e.select_start_time,callback:function(t){e.select_start_time=t},expression:"select_start_time "}}),e._v("  ----  \n "),i("el-date-picker",{staticStyle:{width:"230px"},attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"结束时间"},model:{value:e.select_end_time,callback:function(t){e.select_end_time=t},expression:"select_end_time "}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:this.is_click},on:{click:function(t){e.updateData()}}},[e._v("确认")])],1)],1)],1)},[],!1,null,"0aaea6c6",null);u.options.__file="list.vue";t.default=u.exports},D6yg:function(e,t,i){"use strict";i.d(t,"e",function(){return n}),i.d(t,"b",function(){return s}),i.d(t,"c",function(){return a}),i.d(t,"g",function(){return o}),i.d(t,"d",function(){return r}),i.d(t,"f",function(){return c}),i.d(t,"a",function(){return u});var l=i("t3Un");function n(e){return Object(l.a)({url:"/api/topic/list",method:"get",params:e})}function s(e){return Object(l.a)({url:"/api/topic/batch_update",method:"post",data:e})}function a(e){return Object(l.a)({url:"/api/topic/reply/create",method:"post",data:e})}function o(e){return Object(l.a)({url:"/api/topic/detail",method:"get",params:{id:e}})}function r(e){return Object(l.a)({url:"/api/topic/create",method:"post",data:e})}function c(e){return Object(l.a)({url:"/api/topic/reply/list",method:"get",params:e})}function u(e){return Object(l.a)({url:"/api/topic/reply/batch_delete",method:"post",data:e})}},PKUU:function(e,t,i){},Xvlk:function(e,t,i){"use strict";var l=i("PKUU");i.n(l).a},Y5bG:function(e,t,i){"use strict";i.d(t,"a",function(){return n}),Math.easeInOutQuad=function(e,t,i,l){return(e/=l/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t};var l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function n(e,t,i){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,s=e-n,a=0;t=void 0===t?500:t;!function e(){a+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(a,n,s,t)),a