企微助手 ,仓库名 短剧

91.f8c2f5c4c3dc43a6c304.js 6.1KB

1
  1. webpackJsonp([91],{"LX/g":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("gzej"),n=a("FsX6"),o=a("pdUL"),r={components:{selfChannelV2:n.a,datePicker:i.a,selfInputV2:o.a},data:function(){return{loading:!1,default_time:[this.$getDay(-8,!1),this.$getDay(-1,!1)],pickerOptions:{disabledDate:function(t){return t>Date.now()-864e5}},height:"",keyword:"",plat_type:"",time:[],dataInfoArrs:[{prop:"cost",label:"消耗金额",icon:a("s0AP")},{prop:"first_day_charge",label:"充值金额",icon:a("Wk2b")},{prop:"first_roi",label:"首日roi",icon:a("Vu/q")}],dataInfo:{},desCol:[{prop:"populariz_title",label:"推广标题",fixed:"left",min_width:"160"},{prop:"pid",label:"推广ID",min_width:"160"},{prop:"ref_date",label:"日期",min_width:"160"},{prop:"plat_type",label:"平台"},{prop:"adq_account_id",label:"投放账号"},{prop:"cost",label:"消耗金额"},{prop:"first_day_charge",label:"充值金额"},{prop:"first_roi",label:"首日roi"}],page:1,pages:0,total:0,page_size:20}},computed:{isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},created:function(){this.time=this.default_time,this.height=document.documentElement.clientHeight-330>330?document.documentElement.clientHeight-330:330,this.init(1)},methods:{changeTime:function(t){!t||t&&0==t.length?this.time=[]:this.time=t,this.init(1)},init:function(t,e){var a=this;if("export"!=e)this.page=t||this.page;else if(0==this.total)return void this.$message({message:"暂无数据可导出",type:"warning"});this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.dataBoard_promotionData,{params:{send_time_start:this.time[0],send_time_end:this.time[1],keyword:this.keyword,plat_type:this.plat_type,page:"export"==e?1:this.page,page_size:"export"==e?this.$store.state.exportNumber:this.page_size}}).then(function(t){t=t.data;a.loading=!1,t&&0==t.errno?(t.rst.extra&&(a.dataInfo=t.rst.extra),"export"==e?a.exportEvent(t.rst.data):(a.datas=t.rst.data,a.$refs.plxTable&&a.$refs.plxTable.reloadData(a.datas),a.total=t.rst.pageInfo.total,a.pages=t.rst.pageInfo.pages)):4002!=t.errno&&a.$message({message:t.err,type:"warning"})}).catch(function(t){a.loading=!1})},handleCurrentChange:function(t){this.init(t)},handleSizeChange:function(t){this.page_size=t,this.init(1)},exportEvent:function(t){var e=t,a=[{tHeader:this.desCol.map(function(t){return t.label}),filterVal:this.desCol.map(function(t){return t.prop}),tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:a,name:"平台推广数据(导出时间:"+this.$getDay(0)+")"})},onChangeKeyword:function(t){this.keyword=t,this.init(1)},onChangePlatType:function(t){this.plat_type=t||"",this.init(1)}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"screenBox flex-align-center"},[a("div",{staticClass:"flex-align-center",staticStyle:{flex:"1"}},[a("datePicker",{attrs:{title:"自定义",is_include_today:!1,pickerOptions:t.pickerOptions,quickFlag:!0,afferent_time:t.default_time,clearFlag:!1},on:{changeTime:t.changeTime}}),t._v(" "),a("selfInputV2",{attrs:{label_name:"推广标题",placeholder:"请输入关键字",labelWidth:""},on:{change:t.onChangeKeyword},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t._v(" "),a("selfChannelV2",{attrs:{type:"promotionData",title:"平台",labelWidth:""},on:{change:t.onChangePlatType},model:{value:t.plat_type,callback:function(e){t.plat_type=e},expression:"plat_type"}})],1),t._v(" "),a("div",{staticClass:"right"},[t.isCanExport?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.init(1,"export")}}},[t._v("导出Excel")]):t._e()],1)]),t._v(" "),a("div",{staticClass:"dataInfoBox"},t._l(t.dataInfoArrs,function(e,i){return a("div",{key:i,staticClass:"dataInfoItem"},[a("div",{staticClass:"dataItemTitle"},[a("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:e.icon}}),t._v(" "),a("span",[t._v(t._s(e.label))])]),t._v(" "),a("div",{staticClass:"dataItem-data"},[t._v("\n "+t._s(t.dataInfo&&(t.dataInfo[e.prop]||0==t.dataInfo[e.prop])?t.$formatNum(t.dataInfo[e.prop]):"-")+"\n "),a("span",{staticClass:"f15"},[t._v(t._s(e.brackets_prop?"("+(t.dataInfo&&(t.dataInfo[e.brackets_prop]||0==t.dataInfo[e.brackets_prop])?t.$formatNum(t.dataInfo[e.brackets_prop]):"-")+")":""))])])])}),0),t._v(" "),a("div",[a("ux-grid",{ref:"plxTable",attrs:{border:!1,"header-cell-style":function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}},height:t.height,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},t._l(t.desCol,function(e){return e.excelShow?t._e():a("ux-table-column",{key:e.prop,attrs:{resizable:!0,field:e.prop,title:e.label,"min-width":e.min_width?e.min_width:120,fixed:e.fixed?e.fixed:"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[a("div",{class:["flex-align-jus-center"]},[t._v(t._s(e.label)+t._s(e.brackets_label?"("+e.brackets_label+")":"")+"\n "),e.notes?a("el-tooltip",{attrs:{content:e.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):t._e()],1)]},proxy:!0},{key:"default",fn:function(i){var n=i.row;return["pid"===e.prop||"adq_account_id"===e.prop?a("span",[t._v(t._s(n[e.prop]))]):"plat_type"===e.prop?a("span",[t._v(t._s(10==n[e.prop]?"番茄":8==n[e.prop]?"映客":""))]):a("span",[t._v(t._s(""===n[e.prop]||!n[e.prop]&&0!==n[e.prop]&&"0"!==n[e.prop]?"-":t.$formatNum(n[e.prop])))]),t._v(" "),e.brackets_label?a("span",[t._v("("+t._s(""==n[e.brackets_prop]||!n[e.brackets_prop]&&0!=n[e.brackets_prop]?"-":t.$formatNum(n[e.brackets_prop]))+")")]):t._e()]}}],null,!0)})}),1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next, sizes, jumper","page-sizes":[20,50,100],"page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(r,s,!1,function(t){a("jumh")},"data-v-38ca3f0d",null);e.default=l.exports},jumh:function(t,e){}});