直播数据中心

15.8e8fbc35c5cc1f24fa1f.js 23KB

1
  1. webpackJsonp([15],{"4+eu":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAA3lJREFUSA29V0tME1EUPW/6oaXlL9ACBWpUQEMwIVHUGBMhsBNdGt2IMVEXbnClxn+icaHRhSYuTFxo3BkXJmoaF0aEuDEQEn+RQpDKp+UTCkiZdnx3aJuZdoahBHxJO/fde94977657/aWQWNIksR6Btt2SYg1SBJKIMGsAdNXMYiMYZxB6G2qfvuZMSalgplSQYTd/paOmIQrgORR2tYus2GB4doer++JcgNJ4t7RVkd4XnzOIzy0dhL9lZz0lTPbdKzB9W6OUAJ9UaTh+eizjSKNc7Qvc0hysDJxl7/5JCdvJ8BGDuKgV0kcAkULiV1eK6E79zBqS68iy+xalQvKH+IUKHszTSSB2VBZ0AEiHZ19jWhsAQ3lD5Frq18FueQhTjNdmVWgkxCrqRh1rptwZm2RdXn2nfgxflvexA7XHfwK3cf47JskXksgTrN8T7WsGjpnVi3qSm/Aai5MWosc+1Ff5sbX0UtYWBrCtpKLyLZUYXDyMcekXV95HXEKqy0Om5wHUe++pyJNsFP0dNSR6DT6AudQ5Dggn4qJ2RMQ9ZMXJDmr1dr0WWXBCdTwSATBmm6Ma+gU6svuwmH1om/kLCymAtSU6uesIXF14Wl4Co7rEioNArPyo76A/OxGDIYeId/eqDSrZEPiYmezasF8ZBD9gU4sRWfkT3/gPEinHPRaItEppSpNNi7+vNorh81SAZPgQP+fTq5msPH7Szrl4D8OyqmmbIxIWTYR9iHbWoW/SwH+GYGdyzMLX1JQxlPjiFN8LIpjWBQnePLk8dTMRUQM8iOfTEEZTzMmLnG28vcX4oQTsFs8KM5p4UddbsyUgsiYeCD4AOHIT4ixMMKL3xGa/4iSnDZUF55Kcb3yNGPi7e5bssdvY9d52dyKivyjKzPoWDNOroQfxkw8pzPed2L52ld6C8/wa6VTEuPuJUSTRKmCmW9b1Knly1he0bWG8oci3S7xrmYJv6dfpJtIwzkF6ga1rcva4Nx7ao1WgqhssVgEwbkP/MqNYXjqqcqWmMgdaLe/dXc0JvYklNpPql7qCqaNI21M3xS3mARzE6M2pGugZSjTLsTQuy6ADe/b7KviR80k6nt1cetsIC7ilM+Pov7kb3nJnxvaaVJvvdfrOyIHSwGRQM02GdY5wKQ78h3nkDNVlTEU+X//C5PcGhdoAxv9p+0fALs5zG/uXCQAAAAASUVORK5CYII="},ESHh:function(t,e){},I9Cu:function(t,e,a){"use strict";var s={name:"plans",props:["start_time","end_time"],data:function(){return{loading:!1,infoList:[],sort_type:"stat_cost",total:0,page:1,pages:1,page_size:20}},methods:{goputDetail:function(t){var e="accountDetial"==this.$route.name?1:2,a=this.$router.resolve({path:"/putOnId/"+t+"/"+e});window.open(a.href,"_blank")},sortEvent:function(t){if(this.infoList==[]||0==this.infoList.length)return this.$message({message:"暂无数据",type:"info"}),!1;this.sort_type=t,this.init(1)},init:function(t){var e=this;this.loading=!0;var a=void 0;a=this.$route.params.platType?1==this.$route.params.platType?this.URL.kwai_campaignIndex:this.URL.dou_campaignIndex:"accountDetial"==this.$route.name?this.URL.kwai_campaignIndex:this.URL.dou_campaignIndex,this.$axios.get(this.URL.BASEURL+a,{params:{uid:"undefined"==this.$route.params.seller_id?"":this.$route.params.seller_id,advertiser_id:this.$route.params.adId,start_date:this.start_time,end_date:this.end_time,sort_column:this.sort_type,page:t,page_size:this.page_size}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.infoList=t.rst.data,e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages,e.page=t.rst.pageInfo.page):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.init(t)},goDetial:function(t){if(this.$route.params.platType){var e=1==this.$route.params.platType?"/accountDetial/":"/accountDetialDou/",a=this.$router.resolve({path:e+t});window.open(a.href,"_blank")}},exportEvent:function(t){var e=this;if(0==this.infoList.length)return this.$message({message:"数据为空,不能导出!",type:"success"}),!1;this.loading=!0;var a="accountDetial"==this.$route.name?this.URL.kwai_campaignIndex:this.URL.dou_campaignIndex;this.$axios.get(this.URL.BASEURL+a,{params:{uid:"undefined"==this.$route.params.seller_id?"":this.$route.params.seller_id,advertiser_id:this.$route.params.adId,start_date:this.start_time,end_date:this.end_time,sort_column:this.sort_type,page:1,page_size:100}}).then(function(a){var s,i,n=[];(a=a.data)&&0==a.errno?(i="关联账号,广告计划,涨粉数,消耗,展示数,点击数,点击率,转化数,转化成本,转化率,转化销售额,投放ROI\n",s=t+" - 投放计划",a.rst.data.forEach(function(t){n.push({account:t.account.name,campaign_name:t.campaign_name,fan_incr:t.fan_incr,stat_cost:t.stat_cost,show_cnt:t.show_cnt,click_cnt:t.click_cnt,ctr:t.ctr,pay_order_count:t.pay_order_count,per_order_cost:t.per_order_cost,to_order_rate:t.to_order_rate,pay_order_amount:t.pay_order_amount,roi:t.roi})}),e.$exportToExcel({th_arr:i,jsonData:n,name:s}).then(function(){e.loading=!1})):(e.loading=!1,e.$message({message:a.err,type:"warning"}))}).catch(function(t){e.loading=!1})}}},i={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"}],staticClass:"table_div"},[a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left",width:"16%"}},[a("div",{staticClass:"th_title"},[t.$route.params.platType?[t._v("关联账号")]:[t._v("广告账号")]],2)]),t._v(" "),t._m(0),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","fan_incr"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("fan_incr")}}},[t._v("\n 涨粉数\n "),t._m(1)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","stat_cost"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("stat_cost")}}},[t._v("\n 消耗\n "),t._m(2)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","show_cnt"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("show_cnt")}}},[t._v("\n 展示数\n "),t._m(3)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","click_cnt"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("click_cnt")}}},[t._v("\n 点击数\n "),t._m(4)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","ctr"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("ctr")}}},[t._v("\n 点击率\n "),t._m(5)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","pay_order_count"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("pay_order_count")}}},[t._v("\n 转化数\n "),t._m(6)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","per_order_cost"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("per_order_cost")}}},[t._v("\n 转化成本\n "),t._m(7)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","to_order_rate"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("to_order_rate")}}},[t._v("\n 转化率\n "),t._m(8)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","pay_order_amount"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("pay_order_amount")}}},[t._v("\n 转化销售额\n "),t._m(9)])]),t._v(" "),a("th",[a("div",{staticClass:"th_title",class:["common_select_td","roi"==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent("roi")}}},[t._v("\n 投放ROI\n "),a("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"投放ROI=投放产生的销售额/ 投放金额",placement:"top"}},[a("i",{staticClass:"el-icon-question"})]),t._v(" "),t._m(10)],1)])])]),t._v(" "),a("tbody",[t._l(t.infoList,function(e,s){return[a("tr",{key:e.plan_id,staticClass:"pointer"},[a("td",{staticStyle:{"text-align":"left","padding-right":"10px"}},[t.$route.params.platType?[a("div",{staticClass:"usrBox flex",on:{click:function(a){return a.stopPropagation(),t.goDetial(e.account.uid)}}},[a("img",{staticClass:"userImg",attrs:{src:e.account.head,alt:""}}),t._v(" "),a("el-tooltip",{attrs:{effect:"light",disabled:!(e.account&&e.account.name&&e.account.name.length>15),content:e.account.name,placement:"top"}},[a("div",{staticClass:"liveName liveNameACC clampOne"},[t._v(t._s(e.account.name?e.account.name:"-"))])])],1)]:[a("el-tooltip",{attrs:{effect:"light",disabled:!(e.shop_name&&e.shop_name.length>15),content:e.shop_name,placement:"top"}},[a("div",{staticClass:"liveName clampOne liveNameACC",on:{click:function(a){return t.goputDetail(e.advertiser_id)}}},[t._v(t._s(e.shop_name?e.shop_name:"-"))])])]],2),t._v(" "),a("td",{staticClass:"clampOne",staticStyle:{"text-align":"left"}},[a("el-tooltip",{attrs:{effect:"light",disabled:!(e.campaign_name&&e.campaign_name.length>9),content:e.campaign_name,placement:"top"}},[a("div",{staticClass:"liveName clampOne"},[t._v("\n "+t._s(e.campaign_name?e.campaign_name:"-"))])])],1),t._v(" "),a("td",{class:"fan_incr"==t.sort_type?"common_selected":""},[t._v(t._s(e.fan_incr?t.$formatNum(e.fan_incr):"-"))]),t._v(" "),a("td",{class:"stat_cost"==t.sort_type?"common_selected":""},[t._v(t._s(e.stat_cost?t.$formatNum(e.stat_cost):"-"))]),t._v(" "),a("td",{class:"show_cnt"==t.sort_type?"common_selected":""},[t._v(t._s(e.show_cnt?t.$formatNum(e.show_cnt):"-"))]),t._v(" "),a("td",{class:"click_cnt"==t.sort_type?"common_selected":""},[t._v(t._s(e.click_cnt||0==e.click_cnt?t.$formatNum(e.click_cnt):"-"))]),t._v(" "),a("td",{class:"ctr"==t.sort_type?"common_selected":""},[t._v(t._s(e.ctr||0==e.ctr?t.$formatNum(e.ctr):"-")+"%")]),t._v(" "),a("td",{class:"pay_order_count"==t.sort_type?"common_selected":""},[t._v(t._s(e.pay_order_count||0==e.pay_order_count?t.$formatNum(e.pay_order_count):"-"))]),t._v(" "),a("td",{class:"per_order_cost"==t.sort_type?"common_selected":""},[t._v(t._s(e.per_order_cost||0==e.per_order_cost?t.$formatNum(e.per_order_cost):"-"))]),t._v(" "),a("td",{class:"to_order_rate"==t.sort_type?"common_selected":""},[t._v(t._s(e.to_order_rate||0==e.to_order_rate?t.$formatNum(e.to_order_rate):"-")+"%")]),t._v(" "),a("td",{class:"pay_order_amount"==t.sort_type?"common_selected":""},[t._v(t._s(e.pay_order_amount||0==e.pay_order_amount?t.$formatNum(e.pay_order_amount):"-"))]),t._v(" "),a("td",{class:"roi"==t.sort_type?"common_selected":""},[t._v(t._s(e.roi))])])]})],2)]),t._v(" "),t.loading||0!=t.infoList.length?t._e():a("div",{staticClass:"noHaveDate"},[t._v("暂无数据")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"bottom"},[a("el-pagination",{attrs:{background:"","current-page":Number(t.page),layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticStyle:{"text-align":"left",width:"14%"}},[e("div",{staticClass:"th_title"},[this._v("广告计划")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-caret-bottom"})])}]};var n=a("VU/8")(s,i,!1,function(t){a("rMEI")},"data-v-3d938953",null);e.a=n.exports},YMOM:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABpdJREFUaAXlW2lsVFUU/t60tCwti4AtBSwIQl2K7GAIaONSKEICiT8UcUtMUFM1JiQmGK1oNUoCQeMPJUYTIiGiViCCEQQDSFAwAiaAgrJYSwXbAm1BljJ+39y+zsr0tfNmOlNP8t677y7nne+ee+85584dCw6p7AFvRl09irzAbF63sFkevLyALIcsYq3WAAtVZFJlAQd4reuTja1la6xLThizfnRaWOLNvdSEl70W5nm96Bm9dmJLLQvnLC8+yUjD4iUbrOpoX78m0NIZ3kwWLsJVvEAN9ojGpKPLKGcjPFhKOcvf3WhdjCRPRKDS4sWrqKAGJ0dqlKx51PCuTA/mRNJuGNDnpntHsWe+IshByQoomlwEW5nmQcmyDdYvgfWCgDZrcneqgrSBCSw1OyFQsx67UHOyebimpCZtHHpKUcIiTHZ+C1CqdlGqzUkbRKSnsAiTXeYbur4h24Qjyb662kI7fRJcY2YahmsI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p0O2kz5zLXfznUAkyLoxZLCSenGpAJjNe/QKS4bUIL7xQKOrDn/Re19Cla4HIulpolhiuEGbKW91isVYYslsHV9eey/yIIhV8qjK3BHilLQNm9VGx00DrfiDPpfhrRO/rZpaZhcWl8W7vNqHSJTfJf0Lj7H5KDw6EgU2JuWz+0NzY40gP3tAFBCywID/f+pUekWa4HtwYK4dEt5fbarDowREuH1U2HgZ8daq1al0Ptiud8BogdqZqkBqgBxurWA1hfX3chJM+3CayZNJH6mq29QCw+xLQ1MnJbNIsWV2C2A0CdsaS7fMg0LyrpJYNVrQBO85zfaeAqU/mUVZBpBnIcs0P8lwF0YPHX/BO9QFY1VEhvGAO8ubXuHW+z+ur83VFs7lHisfLK+bZK2atOjoATAxrXZzBme/A8wtAmlsoN/LxATB0zdEzwO1OynH7TY0BT8/yG+qouW/7bbqjiffASD/w460jVDLlM+asLmRmGnh3HRi+AzRsBsJRcyNJfwWmvwC/+edexv5fB0L7bvzkBuie+5P16MksySwsruA5GB2gx6RO4QaDWSwGWLab/MXQy81u1im25nmjr6Zeg1UEy2RGo+2nOMOTNSevFGh+ScSLzbzBU30X69vpL4GsvC1flKO9AAAAAElFTkSuQmCC"},eLbC:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAeCAYAAADQBxWhAAAAAXNSR0IArs4c6QAAAt1JREFUSA29l11IFFEUx393djWNksg0zMoQDfpG7KWQvqygXvIjoSLrxdcgqJeCZOuh6Lm3oA/wIajEeqmeKvChiCAkQpKwkCgJpDLLz93pnNXddWe2mSFGD8zO3HPv/H9zP865dw05rPGyXcwYe2xYjcXiHE28XQl+GRiggKdd582Qs7HUZaw5ZlfGba5g0yzASKbm/55EPI6hM2I41xkz/SmVNPRQzD4osDtyFaUqQ7sbhgV+9GHMPFLNJLTxkr0tMcUzKS8IDeQWGrei7O5qNy9MS8zOn7TptW0q3e3C9RhDf55hXXQyQavM35wD9fO1Y9LBVss2HA63P95qyrOMzRbvZuHWKi8qkqVBZTeugYrlsHMzvPsEL3vhWD2MTcCtJzD4PZBSaTRoPEYsuHhSglfualUrYOtaWDXzyc97gkGVNyMxLeT1G09ATzq8wZI3U8AfI/Dmg9fb2XU6vIHt5mOZiyMS3OmUklyR3JCh1SEOaoF7Wihpo6lOxCdhVACpS8v7a6FoYVAkBOqpAq+2Sfb/x5LT+dXr7HX4+dsfHqinpxoywIFvsqA64HUfXLidAZQsgdNNmbLXky9UQ2T7+oxE2VLYUAHXHkDr3oxfn2qqpnuc7XWXfKG7JCZn29Aw9A/KvMjGp7112o5NTo+77AstX5b90lRcFtEY6P3PeHadlsqK3T6nxxeqi2i2rSyBMy1QXwNtB2bXTD8X5Lt9To8vtO+z8xVYVAgn9rn96snV3tnSF9rZHTzbaMbS9n5mGtrtKb/8a0kGqpMFUlsN1eXS0wLQYdcsNDIKH2VhvXoP3W/lUCTp0stEKq7QLwIt82oYZp1Av+omLvvD/JnydBO/P39I2SyEZ+VZdOiBaT7AyYOZ8Kx7MTNhIhwXaI5QD/VTxpWjvGTI6FlU/j40ySlYktwcmOqKfpIj8uk41dN31FAjQ3BXl3UY6GR4iJ7qpk73qit+t831H6i/ZBPN+r3ZQaUAAAAASUVORK5CYII="},kxzi:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("LKfE"),i=a("I9Cu"),n={name:"accountAnalysis",components:{trend:s.a,plans:i.a},data:function(){return{time:[this.$getDay(-31,!1),this.$getDay(-1,!1)],timeList:[{id:1,name:"昨日",start_time:this.$getDay(-1,!1),end_time:this.$getDay(-1,!1)},{id:7,name:"近7日",start_time:this.$getDay(-8,!1),end_time:this.$getDay(-1,!1)},{id:30,name:"近30日",start_time:this.$getDay(-31,!1),end_time:this.$getDay(-1,!1)}],pickerTimes:{disabledDate:function(t){return t>Date.now()}},start_time:this.$getDay(-31,!1),end_time:this.$getDay(-1,!1),loading:!1,chart_data:{key_index:1,date:[],stat_cost:[],roi:[]},dataPreInfo:{}}},mounted:function(){var t=this;this.$nextTick(function(){t.dataPreview(),t.$refs.plansChild.init()})},methods:{changeInit:function(t){var e=this;this.start_time=t.start_time,this.end_time=t.end_time,this.time=[t.start_time,t.end_time],this.dataPreview(),this.$nextTick(function(){e.$refs.plansChild.init()})},timeChange:function(t){var e=this;t&&0!=t.length&&(this.start_time=t[0],this.end_time=t[1],this.dataPreview(),this.$nextTick(function(){e.$refs.plansChild.init()}))},dataPreview:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.put_preview,{params:{platform:this.$route.params.platType,advertiser_id:this.$route.params.adId,start_date:this.start_time,end_date:this.end_time}}).then(function(e){(e=e.data)&&0==e.errno?(t.dataPreInfo=e.rst,t.chart_data.date=[],t.chart_data.stat_cost=[],t.chart_data.roi=[],e.rst.trend.forEach(function(e){t.chart_data.date.push(e.date),t.chart_data.stat_cost.push(e.stat_cost),t.chart_data.roi.push(e.roi)}),t.chart_data.key_index+=1):t.$message({message:e.err,type:"warning"}),t.loading=!1}).catch(function(e){t.$message({message:e,type:"warning"}),t.loading=!1})}}},o={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"accountAnalysisPage"},[s("div",{staticClass:"operation_container flex",staticStyle:{padding:"0"}},[s("ul",{staticClass:"commonTimeList flex"},[t._l(t.timeList,function(e){return s("li",{key:e.id,class:t.start_time==e.start_time&&t.end_time==e.end_time?"active":"",on:{click:function(a){return t.changeInit(e)}}},[t._v(t._s(e.name))])}),t._v(" "),s("li",{staticClass:"commonTime_container"},[t._v("\n "+t._s(t.time&&0!=t.time.length?t.time[0]+"  ~  "+t.time[1]:"开始时间  -  结束时间")+"\n "),s("i",{staticClass:"iconfont icon-rili_icon"}),t._v(" "),s("el-date-picker",{staticClass:"commonTime_picker",attrs:{size:"small",clearable:!1,"value-format":"yyyy-MM-dd",type:"daterange","picker-options":t.pickerTimes,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.timeChange},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1)],2)]),t._v(" "),s("div",{staticClass:"data_block tMar10"},t._l(t.dataPreInfo.total,function(e,i){return s("div",{key:i,staticClass:"data_block_div"},[s("div",["stat_cost"==i?s("img",{attrs:{src:a("4+eu"),alt:""}}):"fans_incr"==i?s("img",{attrs:{src:a("lO48"),alt:""}}):"gmv"==i?s("img",{attrs:{src:a("eLbC"),alt:""}}):"roi"==i?s("img",{attrs:{src:a("YMOM"),alt:""}}):"show_cnt"==i?s("img",{attrs:{src:a("YmNE"),alt:""}}):t._e(),t._v(" "),s("span",{staticClass:"f14"},[t._v("\n "+t._s("stat_cost"==i?"投放金额":"fans_incr"==i?"涨粉数":"gmv"==i?"销售额":"roi"==i?"ROI":"show_cnt"==i?"曝光人数":"-")+"\n "),"roi"==i?s("span",[s("el-tooltip",{staticClass:"disinblock",attrs:{effect:"light",content:"投放ROI=投放产生的销售额/ 投放金额",placement:"top"}},[s("i",{staticClass:"el-icon-question"})])],1):t._e()])]),t._v(" "),s("div",{staticClass:"f32 fbolder tMar12"},[t._v(t._s("roi"==i?e:e?t.$NumberHandle(e):"-"))]),t._v(" "),"stat_cost"==i?s("img",{staticClass:"data_block_div_right_img",attrs:{src:a("6r4J"),alt:""}}):"fans_incr"==i?s("img",{staticClass:"data_block_div_right_img",attrs:{src:a("m+CY"),alt:""}}):"gmv"==i?s("img",{staticClass:"data_block_div_right_img",attrs:{src:a("iQ8f"),alt:""}}):"roi"==i?s("img",{staticClass:"data_block_div_right_img",attrs:{src:a("vA7j"),alt:""}}):"show_cnt"==i?s("img",{staticClass:"data_block_div_right_img",attrs:{src:a("wT1N"),alt:""}}):t._e()])}),0),t._v(" "),s("el-row",{staticClass:"tMar10",attrs:{span:24}},[s("div",{staticClass:"chartsBcg"},[s("div",{staticClass:"chartsBcg_title"},[s("div",{staticClass:"f14 fWeight600"},[s("span",{staticClass:"title_span"}),t._v(" 投放数据趋势\n ")])]),t._v(" "),s("trend",{staticStyle:{"margin-top":"0.1rem"},attrs:{key_index:"puton"+t.chart_data.key_index,trend_prop:{xArr:t.chart_data.date,lineWidth:!0,curveWidth:!0,echartsHeight:"257px",rotate:!1,legendShow:!0,lineColor:"#333333",boundaryGap:!0,edge:!0,grid_top:"23%",legendPosition:"",type:"",yAxis_count:[{name:"投放金额",position:"left"},{name:"投放ROI",position:"right"}],list:[{data:t.chart_data.stat_cost,bar_name:"投放金额",yAxisIndex:"0",type:"line",topShow:!1,unit:"元"},{data:t.chart_data.roi,bar_name:"投放ROI",yAxisIndex:"1",type:"line",topShow:!1,unit:""}]}}})],1)]),t._v(" "),s("el-row",{staticClass:"tMar10",attrs:{span:24}},[s("div",{staticClass:"chartsBcg"},[s("div",{staticClass:"chartsBcg_title"},[s("div",{staticClass:"f14 fWeight600"},[s("span",{staticClass:"title_span"}),t._v(" 计划列表\n ")])]),t._v(" "),s("plans",{ref:"plansChild",attrs:{start_time:t.start_time,end_time:t.end_time}})],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("ESHh")},"data-v-ce6a31d8",null);e.default=r.exports},lO48:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdCAYAAABWk2cPAAAAAXNSR0IArs4c6QAAAyxJREFUSA29l11Ik1EYx//HfTZrk7SgposKibLsgyQpKLGYBF0IYl900YU3dlHQVd30AVmEUQSVBF114UWj60hCMjRcmH2IF6HI0k1DnTLX5ubU03mO7GXvW3s1pzsw3vOcj//vPM+e8+4Zg6ZVNdeUYHauDuBuDuYC52s1SxY3GfvNwAcB1gKj4cXb8697UzexpFH7qtY8FZt5CM7qOXhOcjzTJwObB+NNdqv5que0Z4b0JJSAoVjijfCqMlNI2v2MtTqsppMElh4teLiKQDqJcEhyRJfJ7zAx930lQ5rOWxlqk6E0h5ImG0DpLOWK4Inwcne6k63OOHcb5bUAX7a+3bIOeVaHan8wOolIIqIaSxrEMy7rHiYV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