| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5280"],{"+h1d":function(t,e,a){"use strict";var s={components:{video_course:a("bmyc").a},props:{defaultActive:{type:String,default:""},slideName:{type:String,default:""},slideBottomName:{type:String,default:""},top_style:{type:String,default:""}},data:function(){return{search:{}}},mounted:function(){},methods:{}},i=(a("sxda"),a("KHd+")),n=Object(i.a)(s,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"all"},[a("video_course",{attrs:{defaultActive:t.defaultActive}}),t._v(" "),a("div",{staticStyle:{width:"calc(100% - 150px)"},attrs:{id:"app"}},[t._t("top-other"),t._v(" "),a("div",{staticClass:"top-pane",style:t.top_style},[a("div",{staticClass:"vue-main-title"},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content"},[t._v(t._s(t.slideName))]),t._v(" "),t._t("top")],2),t._v(" "),a("div",{staticClass:"vue-search"},[t._t("content")],2)]),t._v(" "),t.slideBottomName?a("div",{staticClass:"table-pane"},[a("div",{staticClass:"vue-main-title"},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content"},[t._v(t._s(t.slideBottomName))])]),t._v(" "),a("div",{staticClass:"vue-search"},[t._t("content-bottom")],2)]):t._e(),t._v(" "),t.slideBottomName?a("div",{staticClass:"vue-page"},[t._t("vue-page")],2):t._e(),t._v(" "),t._t("bottom-other")],2)],1)},[],!1,null,"121101e6",null);n.options.__file="slide_cpm.vue";e.a=n.exports},"3Cd8":function(t,e,a){"use strict";a.r(e);var s=a("14Xm"),i=a.n(s),n=a("QbLZ"),c=a.n(n),r=a("D3Ub"),o=a.n(r),l=a("+h1d"),v=a("O7Sl"),u={components:{slide_cpm:l.a,time_card:v.a},data:function(){return{search:{},roleOptions:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"},{value:"选项3",label:"蚵仔煎"},{value:"选项4",label:"龙须面"},{value:"选项5",label:"北京烤鸭"}],tableData:[],current_page:1,total:0,per_page:1,topData:{}}},mounted:function(){this.statistics(1),this.getTopData()},methods:{statistics:function(t){var e=this;return o()(i.a.mark(function a(){var s,n,r,o;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,$http.pc_post("plugin/wechatVideoCourses/statistics",{search:c()({},e.search,{date:[e.$refs.time_card.times?parseInt(e.$refs.time_card.times[0]/1e3):"",e.$refs.time_card.times?parseInt(e.$refs.time_card.times[1]/1e3):""]}),page:t});case 2:s=a.sent,n=s.data,r=s.result,o=s.msg,r?(e.tableData=n.group_statistics.data,e.total=n.group_statistics.total,e.current_page=n.group_statistics.current_page,e.per_page=n.group_statistics.per_page):e.$message.error(o);case 7:case"end":return a.stop()}},a,e)}))()},getTopData:function(){var t=this;return o()(i.a.mark(function e(){var a,s,n,c;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$http.pc_post("plugin/wechatVideoCourses/topData",{});case 2:a=e.sent,s=a.data,n=a.result,c=a.msg,n?t.topData=s:t.$message.error(c);case 7:case"end":return e.stop()}},e,t)}))()}}},_=(a("oS6w"),a("KHd+")),p=Object(_.a)(u,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"video-course"},[a("slide_cpm",{attrs:{defaultActive:"videoDataStatistics",slideName:"搜索筛选",slideBottomName:"统计列表"}},[a("template",{slot:"top-other"},[a("div",{staticClass:"top-pane",staticStyle:{"margin-bottom":"10px"}},[a("div",{staticClass:"vue-main-title"},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content"},[t._v("数据统计")]),t._v(" "),t._t("top")],2),t._v(" "),a("div",{staticClass:"vue-search"},[a("div",{staticClass:"top-num"},[a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.group_count))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("累计客户群总数量")])]),t._v(" "),a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.yesterday_group_count))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("昨日新增群数量")])]),t._v(" "),a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.watch_count))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("累计观看总人数")])]),t._v(" "),a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.yesterday_watch_count))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("昨天观看总人数")])]),t._v(" "),a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.reward_sum))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("累计红包发放金额")])]),t._v(" "),a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.yesterday_reward_sum))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("昨日红包发放金额")])]),t._v(" "),a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.reply_count))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("累计答题总次数")])]),t._v(" "),a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.yesterday_reply_count))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("昨日答题次数")])]),t._v(" "),a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.group_member_count))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("会员总数量")])]),t._v(" "),a("div",{staticClass:"top-num-box"},[a("div",[t._v(t._s(t.topData.yesterday_group_member_count))]),t._v(" "),a("div",{staticClass:"line-space"},[t._v("昨日新增会员人数")])])])])])]),t._v(" "),a("template",{slot:"content"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"群名称"},model:{value:t.search.name,callback:function(e){t.$set(t.search,"name",e)},expression:"search.name"}})],1),t._v(" "),a("time_card",{ref:"time_card",attrs:{days_of_last_year:"365"}}),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{staticClass:"width-btn",attrs:{type:"primary"},on:{click:function(e){t.statistics(1)}}},[t._v("搜索")])],1)],1)],1),t._v(" "),a("template",{slot:"content-bottom"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"id",label:"ID",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"建群时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"group_name",label:"群名称",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"has_one_owner.name",label:"群主",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"exist_member_count",label:"在群人数",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"member_count",label:"加群人数",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_member_count",label:"退群人数",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{align:"center"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("div",[t._v("累计观看视频次数")]),t._v(" "),a("div",[t._v("昨日观看视频次数")])]}},{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.watch_count))]),t._v(" "),a("div",[t._v(t._s(e.row.yesterday_watch_count))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("div",[t._v("累计发放红包金额")]),t._v(" "),a("div",[t._v("昨日发放红包金额")])]}},{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.reward_sum))]),t._v(" "),a("div",[t._v(t._s(e.row.yesterday_reward_sum))])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("div",[t._v("累计答题次数")]),t._v(" "),a("div",[t._v("昨日答题次数")])]}},{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.reply_count))]),t._v(" "),a("div",[t._v(t._s(e.row.yesterday_reply_count))])]}}])})],1)],1),t._v(" "),a("template",{slot:"vue-page"},[a("el-row",[a("el-col",{attrs:{align:"right"}},[a("el-pagination",{attrs:{layout:"prev, pager, next,jumper",total:t.total,"page-size":t.per_page,"current-page":t.current_page,background:""},on:{"current-change":t.statistics}})],1)],1)],1)],2)],1)},[],!1,null,"77ad3879",null);p.options.__file="data_statistics.vue";e.default=p.exports},"3M4J":function(t,e,a){"use strict";function s(){for(var t=new Date,e=[],a=1;a<13;a++)for(var s=new Date(t.getFullYear(),a,0).getDate(),i=1;i<s+1;i++){var n=[];n[0]=i+"日",n[1]=a+"月",n[2]=0,e.push(n)}return e.length}function i(t){var e={};return t.reduce(function(t,a){return!e[a.id]&&(e[a.id]=t.push(a)),t},[])}a.d(e,"b",function(){return s}),a.d(e,"a",function(){return i})},E4ZW:function(t,e,a){},EzgT:function(t,e,a){},O7Sl:function(t,e,a){"use strict";var s=a("3M4J"),i={data:function(){return{times:[],timeType:0,days_of_last_year:365}},mounted:function(){this.days_of_last_year=Object(s.b)(),console.log(this.days_of_last_year,"days_of_last_year",Object(s.b)()),this.switchSearchTime(5)},methods:{pickerChangeFn:function(t){console.log(t,"eventevent"),t||(this.timeType=0)},getStartEndTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=864e5*t,a=new Date((new Date).setHours(0,0,0,0)).getTime(),s=new Date((new Date).setHours(23,59,59,999)).getTime(),i=s-e;return[parseInt(a-e),parseInt(t>1?s:i)]},switchSearchTime:function(t){var e=void 0;switch(t){case 1:e=this.getStartEndTime(0);break;case 2:e=this.getStartEndTime(1);break;case 3:e=this.getStartEndTime(7);break;case 4:e=this.getStartEndTime(30);break;case 5:e=this.getStartEndTime(this.days_of_last_year)}this.times=e,this.timeType==t?(this.timeType=0,this.times=[]):this.timeType=t}}},n=(a("aZbm"),a("KHd+")),c=Object(n.a)(i,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Header",{staticClass:"time-list"},[a("el-date-picker",{attrs:{"value-format":"timestamp",type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.pickerChangeFn},model:{value:t.times,callback:function(e){t.times=e},expression:"times"}}),t._v(" "),a("el-button",{class:1==t.timeType?"button-color left-gap":"active-colors left-gap",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(1)}}},[t._v("今")]),t._v(" "),a("el-button",{class:2==t.timeType?"button-color":"active-colors",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(2)}}},[t._v("昨")]),t._v(" "),a("el-button",{class:3==t.timeType?"button-color":"active-colors",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(3)}}},[t._v("近7天")]),t._v(" "),a("el-button",{class:4==t.timeType?"button-color":"active-colors",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(4)}}},[t._v("近30天")]),t._v(" "),a("el-button",{class:5==t.timeType?"button-color":"active-colors",attrs:{type:"success",plain:""},on:{click:function(e){t.switchSearchTime(5)}}},[t._v("近1年")])],1)},[],!1,null,"40c25990",null);c.options.__file="time_card.vue";e.a=c.exports},aZbm:function(t,e,a){"use strict";var s=a("EzgT");a.n(s).a},c0l6:function(t,e,a){},oS6w:function(t,e,a){"use strict";var s=a("c0l6");a.n(s).a},sxda:function(t,e,a){"use strict";var s=a("E4ZW");a.n(s).a}}]);
|