(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-492de752"],{"391e":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},n=[],r=a("9ee1"),o=r["a"],c=a("9ca4"),i=Object(c["a"])(o,s,n,!1,null,null,null);t["a"]=i.exports},"894e":function(e,t,a){},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),s=a.get()[0]||0,n=window.innerHeight-s.offsetTop-t.advalue;t.frameHeight=n,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))},c397:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var s=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:s-120,metaName:"channel_data_statistic",packageName:"aggregation",modelName:"datastatistic",isMulti:"",savebefore:e.savebefore,editbefore:e.beforedit,addbefore:e.beforeadd},on:{formevent:e.onformevent,onexec:e.onexec}}),a("Drawer",{ref:"advsearchform",attrs:{placement:"right",closable:!1,"mask-closable":!1,width:"50"},model:{value:e.showsearchform,callback:function(t){e.showsearchform=t},expression:"showsearchform"}},[a("Card",{ref:"formcard",staticStyle:{"border-radius":"0px","padding-bottom":"60px",border:"none"},attrs:{"dis-hover":"",bordered:!1}},[a("p",{attrs:{slot:"title"},slot:"title"},[a("Icon",{attrs:{type:"ios-paper-outline"}}),e._v("高级查询 ")],1),a("Form",{ref:"advSearchForm",attrs:{model:e.searchModel,"label-position":"right"}},[a("FormItem",{attrs:{label:"渠道名称"}},[a("i-select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择渠道"},model:{value:e.searchModel.channel_code,callback:function(t){e.$set(e.searchModel,"channel_code",t)},expression:"searchModel.channel_code"}},e._l(e.channelList,(function(t){return a("Option",{key:t.code,attrs:{value:t.code}},[e._v(e._s(t.name))])})),1)],1),a("FormItem",{attrs:{label:"日期"}},[a("DatePicker",{staticStyle:{width:"200px"},attrs:{type:"daterange",placeholder:"请选择提交日期"},model:{value:e.searchModel.statistic_date,callback:function(t){e.$set(e.searchModel,"statistic_date",t)},expression:"searchModel.statistic_date"}})],1)],1),a("div",{staticClass:"form-footer",staticStyle:{width:"30%"}},[a("Button",{attrs:{type:"text"},on:{click:e.advsearch}},[e._v("搜索")]),a("Button",{attrs:{type:"text"},on:{click:e.advchildcancle}},[e._v("取消")])],1)],1)],1)]}}])})},n=[],r=a("06d3"),o=a("391e"),c=a("7e1e"),i={name:"channeldatastatistic_page",data:function(){return{channelList:[],showsearchform:!1,searchModel:{statistic_date:[]}}},components:{BizTable:r["a"],PageSpace:o["a"]},mounted:function(){this.getChannelList()},methods:{getChannelList:function(){var e=this;Object(c["h"])("/web/configmag/launchchannelCtl/gatAllChannelList").then((function(t){if(0==t.status){var a=t.data;e.channelList=a}}))},onformevent:function(e,t){},savebefore:function(e,t,a){return a(t)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){"auth"==e&&this.$router.push({name:"role_auth",query:{roleid:t.id,rolecode:t.code}}),"advsearch"==e&&(this.showsearchform=!0)},formatCol:function(e,t,a){if("statistic_date"==t&&e[t]){var s=e[t].slice(0,4)+"-"+e[t].slice(4,6)+"-"+e[t].slice(6);return"<span>"+s+"</span>"}return("sub_count"!=t||e[t])&&("push_count"!=t||e[t])?"customer_count"==t?e[t]?"<span>"+e[t]+"</span>":"<span>0</span>":e[t]:"<span>0</span>"},advsearch:function(){this.$refs.bt.$refs.searchform.formModel.channel_name=this.searchModel.channel_name,this.$refs.bt.$refs.searchform.formModel.channel_code=this.searchModel.channel_code,this.$refs.bt.$refs.searchform.formModel.statistic_date=this.searchModel.statistic_date,this.showsearchform=!1,this.$refs.bt.fetchData()},advchildcancle:function(){this.showsearchform=!1,this.searchModel={statistic_date:[]},this.$refs.bt.fetchData()}}},l=i,h=(a("e706"),a("9ca4")),d=Object(h["a"])(l,s,n,!1,null,null,null);t["default"]=d.exports},e706:function(e,t,a){"use strict";var s=a("894e"),n=a.n(s);n.a}}]);