12 |
- webpackJsonp([2],{"+duP":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("a3Yh"),s=a.n(i),r=a("iYRz"),n=a("vX6V"),o={data:function(){var t;return t={campaign_id:this.$route.query.campaign_id?this.$route.query.campaign_id:"",roi_ratio:"",mode:this.$route.query.mode?this.$route.query.mode:13,unit_id:this.$route.query.unit_id?this.$route.query.unit_id:"",target_filter_converted_level:0,checktime:[{arr:[]},{arr:[]},{arr:[]},{arr:[]},{arr:[]},{arr:[]},{arr:[]}],unit_type:"4",smart_cover:"0",asset_mining:"0",item_id:"",save_as_name:"",scene_id:["6","7"],target_exclude_population:[],target_population:[],dmp_list:[],schedule_time:[],target_scene_type:[],target_time_type:4,target_strength_type:"",strengthList:[{id:0,name:"不限"},{id:1,name:"高强度"}],seceneList:[{id:1,name:"社区"},{id:2,name:"APP"},{id:4,name:"推广"}],timeList:[{id:0,name:"7天"},{id:1,name:"15天"},{id:2,name:"30天"},{id:3,name:"90天"},{id:4,name:"180天"}],target_region:[],region:[],campaign_name:"",showRight:!1,loadSecond:!1,unit_name:"",number:"",put_status:1,bid:"",cpa_bid:"",targetList:[{label:"72",value:"涨粉"},{label:"392",value:"商品访问"}],ocpx_action_type:"72",bid_type:14==this.$route.query.mode?"10":"2",show_mode:"1",show_type:"1",budget_type:"0",budget:"",schedule_type:"0",allCount:"",tableData:[{date1:{value:0,isEdit:!1},date2:{value:0,isEdit:!1},date3:{value:0,isEdit:!1},date4:{value:0,isEdit:!1},date5:{value:0,isEdit:!1},date6:{value:0,isEdit:!1},date7:{value:0,isEdit:!1}}],timeRange:[],pickerOptions:{disabledDate:function(t){return t.getTime()<Date.now()}},checked:[],target_device_brand:[],target_device_price:[],target_android_osv:[],target_ios_osv:[],target_population_status:"0",target_population_type:"1",device_type:"0",target_business_interest_type:"0",target_fans_star_type:"0",target_business_interest:[],target_fans_star:[],bussList:[],tagList:[],showInList:[],checkintention:[],checkSMain:[],checkID:[],checkB:[],searchList:[],checkKeyword:[],tabCon:"first",yType:"first",sBehavior:[],checkTab:1},s()(t,"checkB",[]),s()(t,"isShow",!1),s()(t,"keyValue",0),s()(t,"checkWish",[]),s()(t,"props",{multiple:!0,label:"name",value:"id"}),s()(t,"props1",{multiple:!0,label:"name",value:"id",children:"child"}),s()(t,"behavior",[]),s()(t,"intention",[]),s()(t,"behaviorList",{behavior:[]}),s()(t,"ageRange",[18,48]),s()(t,"marks",{18:"18岁",23:"23岁",28:"28岁",33:"33岁",38:"38岁",43:"43岁",48:"48岁",55:"55岁"}),s()(t,"target_age_range",[]),s()(t,"checkAge",[]),s()(t,"ageFlag",!1),s()(t,"params",{age_range:[],android_osv:[],ios_osv:[],device_brand:[],device_price:[],kwai_user_info:{user_name:"",user_id:""}}),s()(t,"id",this.$route.query.id),s()(t,"speed","1"),s()(t,"target_network","0"),s()(t,"priceType","0"),s()(t,"target_behavior_interest_type",0),s()(t,"target_age_type","0"),s()(t,"brandType","0"),s()(t,"target_gender","0"),s()(t,"target_platform_os","0"),s()(t,"target_region_type","0"),s()(t,"selectAddress",[]),s()(t,"selectAddressList",[]),s()(t,"checkFlag",!1),s()(t,"checkFlag1",!1),s()(t,"checkFlag2",!1),s()(t,"cityTagTitle",[]),s()(t,"selectData",{}),s()(t,"check",[]),s()(t,"keyword",""),s()(t,"merchant_item_put_type","2"),s()(t,"tmp",0),s()(t,"tmpList",[{tmp_id:0,tmp_name:"不选择模板"}]),s()(t,"checkAddress",{level1:[],level2:[]}),s()(t,"timeList1",[]),s()(t,"sameList",[]),t},components:{step:r.a,datetime:n.a},created:function(){13==this.mode?this.targetList=[{label:"72",value:"涨粉"},{label:"392",value:"商品访问"}]:(this.targetList=[{label:"72",value:"涨粉"},{label:"392",value:"商品访问"},{label:"62",value:"直播观看数"},{label:"192",value:"电商ROI"}],this.bid_type=10),this.campaign_name=this.$cookieStore.getCookie("campaign_name"),this.getParams(),this.getBehavior(),this.getSearch(),this.getDMP(),this.getTags("BUSINESS_INTEREST"),this.getTags("FANS_STAR"),this.areaList()},methods:{reset:function(t){var e=this;this.target_region_type=t.target_region_type,this.target_age_type=t.target_age_type,this.target_gender=t.target_gender,this.target_behavior_interest_type=t.target_behavior_interest_type,1==this.target_behavior_interest_type&&(this.checkSMain=this.getCheckRegion(t.target_behavior,this.behavior,"children"),this.checkintention=this.getCheckRegion(t.target_interest,this.intention,"children"),this.target_scene_type=t.target_scene_type,this.target_strength_type=t.target_strength_type,this.target_time_type=t.target_time_type),this.target_platform_os=t.target_platform_os,this.target_device_brand=t.target_device_brand.map(function(t){return t.toString()}),this.target_device_price=t.target_device_price.map(function(t){return t.toString()}),this.target_business_interest_type=t.target_business_interest_type,this.target_network=t.target_network.toString(),this.target_fans_star_type=t.target_fans_star_type,this.target_fans_star=t.target_fans_star,this.target_filter_converted_level=t.target_filter_converted_level,this.target_no_age_break=t.target_no_age_break,this.target_no_gender_break=t.target_no_gender_break,this.target_no_area_break=t.target_no_area_break,this.target_population_status=t.target_population_status,this.target_population_type=t.target_population_type,this.target_population=[],this.target_exclude_population=[],this.dmp_list.forEach(function(a){1==e.target_population_type?(0==t.target_population.length&&e.$refs.multipleTable1.clearSelection(),t.target_population.forEach(function(t){t==a.orientation_id&&(e.$nextTick(function(){e.$refs.multipleTable1.toggleRowSelection(a)}),e.target_population.push(a))})):(t.hasOwnProperty("target_exclude_population")&&0==t.target_exclude_population.length&&(3==e.target_population_type&&e.$refs.multipleTable3.clearSelection(),2==e.target_population_type&&e.$refs.multipleTable1.clearSelection()),t.hasOwnProperty("target_exclude_population")&&t.target_exclude_population.forEach(function(t){e.$refs.multipleTable3.clearSelection(),e.$refs.multipleTable1.clearSelection(),t==a.orientation_id&&e.$nextTick(function(){3==e.target_population_type&&(e.$refs.multipleTable3.toggleRowSelection(a),e.target_exclude_population.push(a)),2==e.target_population_type&&e.$refs.multipleTable1.toggleRowSelection(a)})}))}),1==this.target_platform_os?this.target_android_osv=t.target_android_osv.map(function(t){return t.toString()}):2==this.target_platform_os&&(this.target_ios_osv=t.target_ios_osv.map(function(t){return t.toString()})),this.target_device_brand.length>0&&(this.device_type=1),this.target_device_price.length>0&&(this.priceType=1),1==this.target_age_type?this.target_age_range=t.target_age_range.map(function(t){return t.toString()}):2==this.target_age_type&&(this.ageRange[0]=t.target_age.min,this.ageRange[1]=t.target_age.max),2==this.target_business_interest_type&&(this.target_business_interest=t.target_business_interest),1==this.target_region_type&&(this.target_region=this.getCheckRegion(t.target_region,this.region,"child"))},getSame:function(){var t=this;this.timeList1.length>24?(this.sameList.push(this.timeList1.splice(0,24)),this.getSame()):(this.sameList.push(this.timeList1),this.sameList.forEach(function(e){t.checktime.push({arr:[]}),e.forEach(function(e,a){1==e&&t.checktime[t.checktime.length-1].arr.push(a)})}))},getInfo:function(){var t=this;this.loadSecond=!0,this.$axios.get(this.URL.BASEURL+this.URL.adUnitInfo,{params:{unit_ids:this.unit_id.split(",")}}).then(function(e){e=e.data;if(t.loadSecond=!1,e&&0==e.errno){var a=e.rst.info;t.reset(a),t.unit_name=a.unit_name,t.number=a.number,t.asset_mining=a.hasOwnProperty("asset_mining")?a.asset_mining:"0",t.smart_cover=a.hasOwnProperty("smart_cover")?a.smart_cover:"0",t.schedule_type=a.schedule_type,t.speed=a.speed,t.show_type=a.show_type,t.schedule_time=a.schedule_time,t.target_filter_converted_level=a.target_filter_converted_level,t.mode=a.campaign_type,t.target_age_type=a.target_age_type,t.merchant_item_put_type=a.merchant_item_put_type,t.item_id=a.item_id,1==t.schedule_type&&a.hasOwnProperty("schedule_time")&&a.schedule_time&&(t.timeList1=a.schedule_time.split(""),t.sameList=[],t.checktime=[],t.getSame()),"2"==t.show_type&&(t.timeRange[0]=a.begin_time?a.begin_time:"",t.timeRange[1]=a.end_time?a.end_time:""),t.budget_type=a.budget_type,t.show_mode=a.show_mode,t.bid_type=a.bid_type,2==t.bid_type?t.bid=a.bid:(t.ocpx_action_type=a.ocpx_action_type.toString(),t.cpa_bid=a.cpa_bid),t.roi_ratio=a.roi_ratio,t.scene_id=a.scene_id.map(function(t){return t.toString()}),t.unit_type=a.unit_type?a.unit_type:"7",t.smart_cover=a.smart_cover?a.smart_cover:"0",t.asset_mining=a.asset_mining?a.asset_mining:"0",1==t.budget_type?t.budget=a.budget:2==t.budget_type&&a.budget.forEach(function(e,a){t.tableData[0]["date"+(a+1)].value=e})}else t.$message({message:e.err,type:"warning"})}).catch(function(e){console.log(e),t.loadSecond=!1})},checkSelect:function(t){return-1==this.target_population.map(function(e){return e.orientation_id==t.orientation_id}).indexOf(!0)},checkSelect1:function(t){return-1==this.target_exclude_population.map(function(e){return e.orientation_id==t.orientation_id}).indexOf(!0)},getTmp:function(){var t=this;this.$axios.post(this.URL.BASEURL+this.URL.tmpList,{type:1}).then(function(e){e=e.data;t.loadSecond=!1,e&&0==e.errno?t.tmpList=[{tmp_id:0,tmp_name:"不选择模板"}].concat(e.rst.tmp_list):t.$message({message:e.err,type:"warning"})}).catch(function(){t.loadSecond=!1})},saveTime:function(t){this.schedule_time=t},edit:function(t){var e=this.tableData[0][t];e.isEdit=!0,this.$set(this.tableData[0],t,e)},createData:function(){var t=this;if(2==this.bid_type&&13==this.mode){if(!this.bid)return void this.$message.error("转化目标字段为必填字段");if(this.bid<.2||this.bid>100)return void this.$message.error("转化目标的范围在0.2~100元之间")}else if(13==this.mode){if(!this.cpa_bid)return void this.$message.error("转化目标字段为必填字段");if(this.cpa_bid<1||this.cpa_bid>3e3)return void this.$message.error("转化目标的范围在1~3000元之间")}if(this.unit_name)if(this.number)if(this.number<0||this.number>20)this.$message.error("广告组数量的范围在0~20之前");else{var e={unit_type:Number(this.unit_type),smart_cover:Number(this.smart_cover),asset_mining:Number(this.asset_mining),number:this.number,batch_campaign_id:this.$route.query.batch_campaign_id,merchant_item_put_type:this.merchant_item_put_type,target_type:1,target_region_type:this.target_region_type,target_age_type:this.target_age_type,target_gender:this.target_gender,target_platform_os:this.target_platform_os,target_behavior_interest_type:this.target_behavior_interest_type,target_device_brand:this.target_device_brand,target_device_price:this.target_device_price,target_business_interest_type:this.target_business_interest_type,target_business_interest:this.target_business_interest,target_network:this.target_network,target_fans_star_type:this.target_fans_star_type,target_fans_star:this.target_fans_star,target_filter_converted_level:this.target_filter_converted_level,target_no_age_break:this.target_no_age_break,target_no_gender_break:this.target_no_gender_break,target_no_area_break:this.target_no_area_break,speed:this.speed,show_type:this.show_type,budget_type:this.budget_type,schedule_type:Number(this.schedule_type),show_mode:this.show_mode,bid_type:this.bid_type,ocpx_action_type:this.ocpx_action_type,bid:this.bid,cpa_bid:this.cpa_bid,unit_name:this.unit_name,put_status:this.put_status,scene_id:this.scene_id,target_population_status:this.target_population_status,save_as:this.checked.length>0?1:0};if("0"==this.merchant_item_put_type&&(e.item_id=this.item_id),0!=this.tmp&&(e.target_tmp_id=this.tmp),1==e.save_as&&(e.save_as_name=this.save_as_name),1==e.schedule_type&&(e.schedule_time=Array.isArray(this.schedule_time)?this.schedule_time.join(",").replace(/,/g,""):this.schedule_time),1==this.target_region_type&&(e.target_region=[],this.target_region.forEach(function(a){-1==t.checkAddress.level1.indexOf(a[0])&&-1==t.checkAddress.level2.indexOf(a[1])&&e.target_region.push(a[a.length-1])}),e.target_region=e.target_region.concat(this.checkAddress.level1),e.target_region=e.target_region.concat(this.checkAddress.level2)),1==this.target_platform_os?e.target_android_osv=this.target_android_osv:2==this.target_platform_os&&(e.target_ios_osv=this.target_ios_osv),e.target_keyword=[],1==this.target_behavior_interest_type){if(this.checkB.length>0){var a=[];this.checkB.forEach(function(i){-1==t.checkID.indexOf(i.id)?a.push(i.id):e.target_keyword.push({id:i.id,name:i.name})}),e.target_behavior=a}if(this.intention){var i=[];this.showInList.forEach(function(t){i.push(t.id)})}this.target_scene_type.length>0&&(e.target_scene_type=this.target_scene_type),e.target_strength_type=this.target_strength_type,e.target_time_type=this.target_time_type,e.target_interest=i}var s=[],r=[];if("1"==this.target_population_status&&(this.target_population.forEach(function(t){s.push(t.orientation_id)}),1==this.target_population_type||3==this.target_population_type?e.target_population=s:e.target_exclude_population=s,3==this.target_population_type&&(this.target_exclude_population.forEach(function(t){r.push(t.orientation_id)}),e.target_exclude_population=r),e.target_population_type=this.target_population_type),2==this.show_type){if(0==this.timeRange.length)return void this.$message.error("投放的开始时间和结束时间是必填项");e.begin_time=this.timeRange.length>0?this.timeRange[0]:"",e.end_time=this.timeRange.length>0?this.timeRange[1]:""}if(2==this.budget_type){var n=[];for(var o in this.tableData[0])n.push(this.tableData[0][o].value);if(e.budget=n,e.budget.filter(function(t){return t>=100&&t<=1e8}).length<7)return void this.$message.error("每日限额的范围在100~100000000之间")}else if(1==this.budget_type){if(this.budget<100||this.budget>1e8)return void this.$message.error("统一限额的范围在100~100000000之间");e.budget=this.budget}}else this.$message.error("广告组数量为必填字段");else this.$message.error("广告组名称为必填字段")},setPost:function(t){var e=this;if(2==this.bid_type&&13==this.mode){if(!this.bid)return void this.$message.error("转化目标字段为必填字段");if(this.bid<.2||this.bid>100)return void this.$message.error("转化目标的范围在0.2~100元之间")}else if(13==this.mode){if(!this.cpa_bid)return void this.$message.error("转化目标字段为必填字段");if(this.cpa_bid<1||this.cpa_bid>3e3)return void this.$message.error("转化目标的范围在1~3000元之间")}if(this.unit_name){var a={scene_id:this.scene_id,merchant_item_put_type:Number(this.merchant_item_put_type),target_type:1,target_region_type:this.target_region_type,target_age_type:this.target_age_type,target_gender:this.target_gender,target_platform_os:this.target_platform_os,target_behavior_interest_type:this.target_behavior_interest_type,target_device_brand:this.target_device_brand,target_device_price:this.target_device_price,target_business_interest_type:this.target_business_interest_type,target_business_interest:this.target_business_interest,target_network:this.target_network,target_fans_star_type:this.target_fans_star_type,target_fans_star:this.target_fans_star,campaign_id:this.campaign_id,target_filter_converted_level:this.target_filter_converted_level,target_no_age_break:this.target_no_age_break,target_no_gender_break:this.target_no_gender_break,target_no_area_break:this.target_no_area_break,speed:this.speed,show_type:this.show_type,budget_type:this.budget_type,schedule_type:Number(this.schedule_type),show_mode:this.show_mode,bid_type:this.bid_type,ocpx_action_type:this.ocpx_action_type,bid:this.bid,cpa_bid:this.cpa_bid,unit_name:this.unit_name,put_status:this.put_status,target_population_status:this.target_population_status,save_as:this.checked.length>0?1:0};if(1==t){if(!this.number)return void this.$message.error("广告组数量为必填字段");if(this.number<0||this.number>20)return void this.$message.error("广告组数量的范围在0~20之前");a.number=this.number,a.unit_type=Number(this.unit_type),a.smart_cover=Number(this.smart_cover),a.asset_mining=Number(this.asset_mining),a.batch_campaign_id=this.$route.query.batch_campaign_id}else-1!=this.unit_id.indexOf(",")?a.unit_ids=this.unit_id.split(","):a.unit_id=this.unit_id;if("0"==this.merchant_item_put_type&&(a.item_id=Number(this.item_id)),0!=this.tmp&&(a.target_tmp_id=this.tmp),1==a.save_as&&(a.save_as_name=this.save_as_name),1==a.schedule_type&&(a.schedule_time=Array.isArray(this.schedule_time)?this.schedule_time.join(",").replace(/,/g,""):this.schedule_time),1==this.target_region_type&&(a.target_region=[],this.target_region.forEach(function(t){-1==e.checkAddress.level1.indexOf(t[0])&&-1==e.checkAddress.level2.indexOf(t[1])&&a.target_region.push(t[t.length-1])}),a.target_region=a.target_region.concat(this.checkAddress.level1),a.target_region=a.target_region.concat(this.checkAddress.level2)),1==this.target_platform_os?a.target_android_osv=this.target_android_osv:2==this.target_platform_os&&(a.target_ios_osv=this.target_ios_osv),a.target_keyword=[],1==this.target_behavior_interest_type){if(this.checkB.length>0){var i=[];this.checkB.forEach(function(t){-1==e.checkID.indexOf(t.id)?i.push(t.id):a.target_keyword.push({id:t.id,name:t.name})}),a.target_behavior=i}if(this.intention){var s=[];this.showInList.forEach(function(t){s.push(t.id)})}this.target_scene_type.length>0&&(a.target_scene_type=this.target_scene_type),a.target_strength_type=this.target_strength_type,a.target_time_type=this.target_time_type,a.target_interest=s}var r=[],n=[];if("1"==this.target_population_status&&(this.target_population.forEach(function(t){r.push(t.orientation_id)}),1==this.target_population_type||3==this.target_population_type?a.target_population=r:a.target_exclude_population=r,3==this.target_population_type&&(this.target_exclude_population.forEach(function(t){n.push(t.orientation_id)}),a.target_exclude_population=n),a.target_population_type=this.target_population_type),2==this.show_type){if(0==this.timeRange.length)return void this.$message.error("投放的开始时间和结束时间是必填项");a.begin_time=this.timeRange.length>0?this.timeRange[0]:"",a.end_time=this.timeRange.length>0?this.timeRange[1]:""}if(2==this.budget_type){var o=[];for(var l in this.tableData[0])o.push(this.tableData[0][l].value);if(a.budget=o,a.budget.filter(function(t){return t>=100&&t<=1e8}).length<7)return void this.$message.error("每日限额的范围在100~100000000之间")}else if(1==this.budget_type){if(this.budget<100||this.budget>1e8)return void this.$message.error("统一限额的范围在100~100000000之间");a.budget=this.budget}return a}this.$message.error("广告组名称为必填字段")},create:function(t){var e=this,a=this.setPost(1);a&&(this.loadSecond=!0,1==a.target_age_type&&(a.target_age_range=this.target_age_range),2==a.target_age_type&&(a.target_age={},a.target_age.min=this.ageRange[0],a.target_age.max=this.ageRange[1]),192==a.ocpx_action_type&&(a.roi_ratio=this.roi_ratio),this.$axios.post(this.URL.BASEURL+this.URL.createAD,a).then(function(a){a=a.data;e.loadSecond=!1,a&&0==a.errno?(e.$message.success("广告组创建成功"),t?e.$router.push("/manage"):e.$router.push("/three?id="+e.id+"&batch_unit_id="+a.rst.batch_unit_id+"&mode="+e.mode)):e.$message({message:a.err,type:"warning"})}).catch(function(){e.loadSecond=!1}))},update:function(){var t=this,e=this.setPost();e&&(1==e.target_age_type&&(e.target_age_range=this.target_age_range),2==e.target_age_type&&(e.target_age={},e.target_age.min=this.ageRange[0],e.target_age.max=this.ageRange[1]),192==e.ocpx_action_type&&(e.roi_ratio=this.roi_ratio),this.loadSecond=!0,this.$axios.post(this.URL.BASEURL+this.URL.updateadUnit,e).then(function(e){e=e.data;t.loadSecond=!1,e&&0==e.errno?(t.$message.success("广告组修改成功"),t.$router.push("/manage?advertiser_id="+t.id)):t.$message({message:e.err,type:"warning"})}).catch(function(){t.loadSecond=!1}))},clearAll:function(t){t?(this.checkintention=[],this.showInList=[],this.$refs.cascader1.clearCheckedNodes(),this.$refs.cascader1.activePath=[]):(this.checkSMain=[],this.checkID=[],this.checkB=[],this.$refs.cascader.clearCheckedNodes(),this.$refs.cascader.activePath=[])},areaList:function(){var t=this;this.loadSecond=!0,this.$axios({url:this.URL.BASEURL+this.URL.params_region,method:"post",data:{advertiser_id:this.$route.query.id.split(",")}}).then(function(e){(e=e.data)&&0==e.errno?e.rst.region&&(t.loadSecond=!1,t.region=e.rst.region,t.getTmp(),t.unit_id&&t.getInfo()):(t.loadSecond=!1,t.$message({message:e.err,type:"warning"}))}).catch(function(e){console.log(e),t.loadSecond=!1})},getCheckRegion:function(t,e,a){var i=[];return e.forEach(function(e){t.forEach(function(t,s){e.id==t?e.hasOwnProperty(a)&&e[a].length>0?e[a].forEach(function(t){if(t.hasOwnProperty(a)&&t[a].length>0)t[a].forEach(function(a){var s=[];s.push(e.id),s.push(t.id),s.push(a.id),i.push(s)});else{var s=[];s.push(e.id),s.push(t.id),i.push(s)}}):i.push(t):e.hasOwnProperty(a)&&e[a].length>0&&e[a].forEach(function(s){if(s.id==t)if(s.hasOwnProperty(a)&&s[a].length>0)s[a].forEach(function(t){var a=[];a.push(e.id),a.push(s.id),a.push(t.id),i.push(a)});else{var r=[];r.push(e.id),r.push(s.id),i.push(r)}else s.hasOwnProperty(a)&&s[a].length>0&&s[a].forEach(function(a){if(a.id==t){var r=[];r.push(e.id),r.push(s.id),r.push(a.id),i.push(r)}})})})}),i},delCheck:function(t){var e=this,a=this.checkB[t].id,i=this.checkSMain;i.forEach(function(t,e){-1!=t.indexOf(a)&&i.splice(e,1)});t=this.checkID.indexOf(a);this.checkID.splice(t,1),0==i.length?(this.$refs.cascader.clearCheckedNodes(),this.$refs.cascader.activePath=[]):(this.checkSMain=[],setTimeout(function(){e.checkSMain=i})),this.checkB.splice(t,1)},delCheck1:function(t){var e=this,a=this.showInList[t].id,i=this.checkintention;i.forEach(function(t,e){-1!=t.indexOf(a)&&i.splice(e,1)}),0==i.length?(this.$refs.cascader1.clearCheckedNodes(),this.$refs.cascader1.activePath=[]):(this.checkintention=[],setTimeout(function(){e.checkintention=i})),this.checkintention.splice(t,1)},getKeyCheck:function(t,e){var a=this,i=[];this.searchList.forEach(function(t){a.checkID.forEach(function(e){e==t.id&&i.push(t)})});var s=[],r="";return t.length<e.length&&e.forEach(function(t){s.push(t)}),s.forEach(function(t){-1==i.indexOf(t)&&(r=t)}),r&&this.checkB.forEach(function(t,e){t.id==r&&a.checkB.splice(e,1)}),i},getCheckList:function(t,e){var a=[],i=[],s=[],r=[],n=[];return this.checkSMain.forEach(function(t){a.push(t[t.length-1])}),this.behavior.forEach(function(t){t.children.length>0&&t.children.forEach(function(t){t.hasOwnProperty("children")&&t.children.length>0?t.children.forEach(function(t){s.push(t)}):s.push(t)})}),e.forEach(function(t){-1==a.indexOf(t[t.length-1])&&n.push(t[t.length-1])}),s.forEach(function(t){a.forEach(function(e){e==t.id&&i.push(t)})}),e.length>t.length&&this.checkB.forEach(function(t){-1==n.indexOf(t.id)&&r.push(t)}),this.checkB=r,i},getSearch:function(t){var e=this;t&&this.$axios.post(this.URL.BASEURL+this.URL.behavior_keyword,{advertiser_id:this.id.split(","),keyword:t}).then(function(t){(t=t.data)&&0==t.errno?e.searchList=t.rst.keyword_list:e.$message({message:t.err,type:"warning"})}).catch(function(){})},getDMP:function(){var t=this;this.$axios.post(this.URL.BASEURL+this.URL.params_dmp,{advertiser_id:this.id.split(",")}).then(function(e){(e=e.data)&&0==e.errno?t.dmp_list=e.rst.dmp_list:t.$message({message:e.err,type:"warning"})}).catch(function(){})},getTags:function(t){var e=this;t&&this.$axios.post(this.URL.BASEURL+this.URL.targeting_tags,{advertiser_id:this.id.split(","),type:t}).then(function(a){(a=a.data)&&0==a.errno?"BUSINESS_INTEREST"==t?e.bussList=a.rst.list:e.tagList=a.rst.list:e.$message({message:a.err,type:"warning"})}).catch(function(){})},getParams:function(){var t=this;this.$axios.post(this.URL.BASEURL+this.URL.params,{advertiser_id:this.id.split(",")}).then(function(e){(e=e.data)&&0==e.errno?t.params=e.rst:t.$message({message:e.err,type:"warning"})}).catch(function(){})},getBehavior:function(){var t=this;this.$axios.post(this.URL.BASEURL+this.URL.behavior_interest,{advertiser_id:this.id.split(",")}).then(function(e){(e=e.data)&&0==e.errno?(t.behavior=e.rst.behavior,t.intention=e.rst.interest):t.$message({message:e.err,type:"warning"})}).catch(function(){})},handleSelectionChange:function(t){this.target_population=t},handleSelectionChange1:function(t){this.target_exclude_population=t},confirmCity:function(t){var e=this;if(!t)return this.selectData={city:"",cityAllList:[],fan_cities:[],fan_provinces:[]},void this.$emit("confirmCity",this.selectData);var a=[],i=[],s=[];t[0].forEach(function(t){a.push(t.name)}),t[1].forEach(function(t){t.father&&("cityLineCities"==e.selectAddress&&i.push(t.name),"cityRegionProvinces"==e.selectAddress&&s.push(t.name))}),this.selectData.city=a.join(","),this.selectData.cityAllList=t[1],this.selectData.fan_cities=i,this.selectData.fan_provinces=s,this.$emit("confirmCity",this.selectData)},getSim:function(t){return t.filter(function(e,a){return t.indexOf(e)===a})},resetRegion:function(){var t=this;this.$set(this.checkAddress,"level1",[]),this.$set(this.checkAddress,"level2",[]),this.$refs.cascaderAddress.getCheckedNodes()&&this.$refs.cascaderAddress.getCheckedNodes().forEach(function(e){1==e.checked&&1==e.level?t.checkAddress.level1.push(e.value):1==e.checked&&2==e.level&&-1==t.checkAddress.level1.indexOf(e.parent.value)&&t.checkAddress.level2.push(e.value)})}},watch:{mode:function(){13==this.mode?this.targetList=[{label:"72",value:"涨粉"},{label:"392",value:"商品访问"}]:(this.targetList=[{label:"72",value:"涨粉"},{label:"392",value:"商品访问"},{label:"62",value:"直播观看数"},{label:"192",value:"电商ROI"}],this.bid_type=10)},target_region:function(){var t=this;this.checkAddress={level1:[],level2:[]},setTimeout(function(){t.resetRegion()})},tmp:function(){var t=this;if(0==this.tmp)return this.unit_id?void this.getInfo():(this.target_population_status="0",this.target_region_type="0",this.target_age_type="0",this.target_gender="0",this.target_region=[],this.target_age_range=[],this.target_behavior_interest_type="0",this.target_platform_os="0",this.device_type="0",this.priceType="0",this.target_behavior=[],this.target_scene_type=[],this.target_strength_type="0",this.target_interest=[],this.target_time_type="0",this.target_device_brand=[],this.target_device_price=[],this.target_android_osv=[],this.target_ios_osv=[],this.target_business_interest_type="0",this.target_business_interest=[],this.target_network="0",this.target_fans_star_type="0",this.target_fans_star=[],this.target_filter_converted_level="0",this.target_population_status="0",this.target_population=[],void(this.target_exclude_population=[]));this.tmpList.forEach(function(e){if(e.tmp_id==t.tmp){var a=e.target;t.reset(a)}})},checkintention:function(){var t=this;this.checYList=[],this.showInList=[];var e=[],a=[];this.intention.forEach(function(t){!t.hasOwnProperty("children")&&e.push(t),t.children.length>0&&t.children.forEach(function(t){!t.hasOwnProperty("children")&&e.push(t),t.hasOwnProperty("children")&&t.children.length>0&&t.children.forEach(function(t){t&&e.push(t)})})}),this.checkintention.forEach(function(t){a.push(t[t.length-1])}),e.forEach(function(e){e&&-1!=a.indexOf(e.id)&&t.showInList.push(e)})},checkID:function(t,e){var a=this.checkB.concat(this.getKeyCheck(t,e));this.checkB=this.getSim(a)},checkSMain:function(t,e){var a=this.getCheckList(t,e),i=this.checkB.concat(a);this.checkB=i,this.checkB=this.getSim(this.checkB)}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadSecond,expression:"loadSecond"}],staticClass:"first second"},[i("step"),t._v(" "),i("div",{staticClass:"white addBox",on:{click:function(e){t.checkFlag=!1,t.checkFlag1=!1,t.checkFlag2=!1}}},[i("h3",{staticClass:"h3"},[t._v("转化途径")]),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("广告位置")]),t._v(" "),i("el-checkbox-group",{staticStyle:{margin:"0 0 20px"},attrs:{disabled:""!=t.unit_id},model:{value:t.scene_id,callback:function(e){t.scene_id=e},expression:"scene_id"}},[i("el-checkbox",{staticClass:"panel",attrs:{label:"6"}},[i("h5",[t._v("上下滑大屏广告")]),t._v(" "),i("p",[t._v("全屏沉浸式广告体验,广告展示效率高、转化高")]),t._v(" "),i("div",{staticClass:"demo"},[i("div",{staticClass:"pic1"}),t._v(" "),i("div",{staticClass:"pic2"}),t._v(" "),i("el-popover",{attrs:{trigger:"hover"}},[i("p",{staticClass:"threeText"},[t._v("上下滑大屏广告")]),t._v(" "),i("div",{staticClass:"threeBox",staticStyle:{display:"block"}},[i("img",{staticClass:"threeImg",attrs:{src:a("C/JU"),alt:""}})]),t._v(" "),i("p",{staticClass:"threeP"},[t._v("广告播放样式")]),t._v(" "),i("el-button",{staticClass:"pic3",staticStyle:{border:"none",padding:"0"},attrs:{slot:"reference"},slot:"reference"},[t._v("预览")])],1)],1)]),t._v(" "),i("el-checkbox",{staticClass:"panel",attrs:{label:"7"}},[i("h5",[t._v("信息流广告")]),t._v(" "),i("p",[t._v("通过热门位置展示广告,精准定向获取潜在用户")]),t._v(" "),i("div",{staticClass:"demo"},[i("div",{staticClass:"pic1"}),t._v(" "),i("div",{staticClass:"pic2"}),t._v(" "),i("el-popover",{attrs:{trigger:"hover"}},[i("p",{staticClass:"threeText"},[t._v("发现页信息流")]),t._v(" "),i("div",{staticClass:"threeBox"},[i("div",{staticClass:"threeFlex"},[i("img",{staticClass:"threeImg",attrs:{src:a("C/JU"),alt:""}}),t._v(" "),i("p",{staticClass:"threeP"},[t._v("发现页信息流广告展示样式")])]),t._v(" "),i("div",{staticClass:"threeFlex"},[i("img",{staticClass:"threeImg",attrs:{src:a("fcWF"),alt:""}}),t._v(" "),i("p",{staticClass:"threeP"},[t._v("广告播放样式")])])]),t._v(" "),i("el-button",{staticClass:"pic3",staticStyle:{border:"none",padding:"0"},attrs:{slot:"reference"},slot:"reference"},[t._v("预览")])],1)],1)])],1)],1),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("创意制作方式")]),t._v(" "),i("el-radio-group",{attrs:{disabled:""!=t.unit_id},model:{value:t.unit_type,callback:function(e){t.unit_type=e},expression:"unit_type"}},[i("el-radio-button",{attrs:{label:"4"}},[t._v("自定义")]),t._v(" "),13==t.mode?i("el-radio-button",{attrs:{label:"7"}},[t._v("程序化创意")]):t._e()],1),t._v(" "),i("div",{staticClass:"notice"},[t._v("快手广告可将提供的丰富素材,程序化生成更好的创意,达到更优投放效果")])],1),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("封面素材")]),t._v(" "),i("el-radio-group",{attrs:{disabled:""!=t.unit_id},model:{value:t.smart_cover,callback:function(e){t.smart_cover=e},expression:"smart_cover"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("自定义")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("智能抽帧")])],1)],1),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"快手将从您的素材中挖掘出优秀的素材合成创意,参与投放。该方式投放的广告创意可以在“报表-程序化创意报表(新)”中查看",placement:"top-start"}},[i("el-button",{staticClass:"look"},[i("i",{staticClass:"el-icon-warning",staticStyle:{"font-size":"18px",color:"#666"}})])],1),t._v("素材挖掘")],1),t._v(" "),i("el-radio-group",{attrs:{disabled:""!=t.unit_id},model:{value:t.asset_mining,callback:function(e){t.asset_mining=e},expression:"asset_mining"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("关闭")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("启动")])],1)],1),t._v(" "),i("h3",{staticClass:"h3"},[t._v("目标人群")]),t._v(" "),13==t.mode?i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("转化类型")]),t._v(" "),i("el-radio-group",{model:{value:t.merchant_item_put_type,callback:function(e){t.merchant_item_put_type=e},expression:"merchant_item_put_type"}},[i("el-radio-button",{attrs:{label:"2"}},[t._v("快手个人主页")]),t._v(" "),i("el-radio-button",{attrs:{label:"0"}},[t._v("快手小店商品")])],1)],1):t._e(),t._v(" "),"2"==t.merchant_item_put_type&&13==t.mode?i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"30px"}},[i("label",{staticClass:"label",staticStyle:{opacity:"0"}},[t._v("2")]),t._v(" "),i("div",{staticClass:"itemBox"},[i("img",{staticClass:"icon",attrs:{src:a("+dxo"),alt:""}}),t._v(" "),i("div",{staticClass:"textBox"},[i("div",[t._v("快手名:"+t._s(t.params.kwai_user_info.user_name))]),t._v(" "),i("div",[t._v("快手ID:"+t._s(t.params.kwai_user_info.user_id))])])]),t._v(" "),i("p",{staticClass:"notice"},[t._v("点击广告转化按钮后引流到您的快手个人页")])]):t._e(),t._v(" "),"0"==t.merchant_item_put_type&&13==t.mode?i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label",staticStyle:{opacity:"0"}},[t._v("快手小店商品")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.item_id,expression:"item_id"}],staticClass:"toInput",staticStyle:{width:"450px"},attrs:{type:"text",placeholder:"请输入快手小店商品ID,设置小店商品价格时请使用原价或秒杀价"},domProps:{value:t.item_id},on:{input:function(e){e.target.composing||(t.item_id=e.target.value)}}}),t._v(" "),t.item_id?i("a",{staticClass:"gray pointer",staticStyle:{"line-height":"40px","margin-left":"5px"},attrs:{target:"_blank",href:"https://app.kwaixiaodian.com/merchant/shop/detail?id="+t.item_id}},[t._v("预览")]):t._e()]):t._e(),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("转化模板")]),t._v(" "),i("el-select",{attrs:{slot:"prepend",placeholder:"请选择人群类型"},slot:"prepend",model:{value:t.tmp,callback:function(e){t.tmp=e},expression:"tmp"}},t._l(t.tmpList,function(t){return i("el-option",{key:t.tmp_id,attrs:{label:t.tmp_name,value:t.tmp_id}})}),1)],1),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("自定义人群")]),t._v(" "),i("el-radio-group",{model:{value:t.target_population_status,callback:function(e){t.target_population_status=e},expression:"target_population_status"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("定向人群")])],1)],1),t._v(" "),1==t.target_population_status?i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("定向逻辑")]),t._v(" "),i("el-radio-group",{model:{value:t.target_population_type,callback:function(e){t.target_population_type=e},expression:"target_population_type"}},[i("el-radio-button",{attrs:{label:"1"}},[t._v("定向")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("排除")]),t._v(" "),i("el-radio-button",{attrs:{label:"3"}},[t._v("同时定向排除")])],1)],1):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0!=t.target_population_status,expression:"target_population_status!=0"}],staticClass:"checkBox"},[i("div",{directives:[{name:"show",rawName:"v-show",value:3!=t.target_population_type,expression:"target_population_type!=3"}]},[i("div",{staticClass:"checkCon",staticStyle:{width:"400px"},on:{click:function(e){e.stopPropagation(),t.checkFlag=!t.checkFlag}}},[t.target_population.length>0?i("div",{staticStyle:{overflow:"hidden"}},t._l(t.target_population,function(e,a){return i("span",{staticClass:"tag"},[t._v(t._s(e.orientation_name)+"\n ")])}),0):t._e(),t._v(" "),i("i",{staticClass:"el-icon-arrow-down"})]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.checkFlag,expression:"checkFlag"}],staticClass:"checkMain",staticStyle:{width:"400px"}},[i("el-input",{attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t._v(" "),i("el-table",{ref:"multipleTable1",staticStyle:{width:"100%"},attrs:{data:t.dmp_list,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"orientation_name","show-overflow-tooltip":"",label:"人群名称",width:"120"}}),t._v(" "),i("el-table-column",{attrs:{prop:"orientation_id",label:"人群ID",width:"120"}}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"添加时间","show-overflow-tooltip":""}})],1)],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==t.target_population_type,expression:"target_population_type==3"}],staticClass:"allEdit"},[i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("定向池")]),t._v(" "),i("div",{staticClass:"checkCon",on:{click:function(e){e.stopPropagation(),t.checkFlag1=!t.checkFlag1}}},[t.target_population.length>0?i("div",t._l(t.target_population,function(e,a){return i("span",{staticClass:"tag"},[t._v(t._s(e.orientation_name)+"\n ")])}),0):t._e(),t._v(" "),i("i",{staticClass:"el-icon-arrow-down"})]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.checkFlag1,expression:"checkFlag1"}],staticClass:"checkMain",staticStyle:{width:"400px"}},[i("el-input",{attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t._v(" "),i("el-table",{ref:"multipleTable2",staticStyle:{width:"100%"},attrs:{data:t.dmp_list,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{selectable:t.checkSelect1,type:"selection",width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"orientation_name","show-overflow-tooltip":"",label:"人群名称",width:"120"}}),t._v(" "),i("el-table-column",{attrs:{prop:"orientation_id",label:"人群ID",width:"120"}}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"添加时间","show-overflow-tooltip":""}})],1)],1)]),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("排除池")]),t._v(" "),i("div",{staticClass:"checkCon",on:{click:function(e){e.stopPropagation(),t.checkFlag2=!t.checkFlag2}}},[t.target_exclude_population.length>0?i("div",t._l(t.target_exclude_population,function(e,a){return i("span",{staticClass:"tag"},[t._v(t._s(e.orientation_name)+"\n ")])}),0):t._e(),t._v(" "),i("i",{staticClass:"el-icon-arrow-down"})]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.checkFlag2,expression:"checkFlag2"}],staticClass:"checkMain",staticStyle:{width:"400px"}},[i("el-input",{attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t._v(" "),i("el-table",{ref:"multipleTable3",staticStyle:{width:"100%"},attrs:{data:t.dmp_list,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange1}},[i("el-table-column",{attrs:{selectable:t.checkSelect,type:"selection",width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"orientation_name","show-overflow-tooltip":"",label:"人群名称",width:"120"}}),t._v(" "),i("el-table-column",{attrs:{prop:"orientation_id",label:"人群ID",width:"120"}}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"添加时间","show-overflow-tooltip":""}})],1)],1)])]),t._v(" "),i("div",{staticClass:"gray"},[t._v("付费人群包运算收到限制,部分场景无法选择")]),t._v(" "),i("div",{staticClass:"gray look",staticStyle:{color:"#2662ff"},on:{click:function(e){return t.$router.push("/setting")}}},[t._v("\n 管理付费人群\n ")])]),t._v(" "),i("div",[i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("地区")]),t._v(" "),i("el-radio-group",{model:{value:t.target_region_type,callback:function(e){t.target_region_type=e},expression:"target_region_type"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("指定地区")])],1)],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:"0"!=t.target_region_type,expression:"target_region_type!='0'"}],staticClass:"checkBox"},[i("el-cascader-panel",{ref:"cascaderAddress",attrs:{value:"id",label:"name",options:t.region,props:t.props1},model:{value:t.target_region,callback:function(e){t.target_region=e},expression:"target_region"}})],1),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("年龄")]),t._v(" "),i("el-radio-group",{model:{value:t.target_age_type,callback:function(e){t.target_age_type=e},expression:"target_age_type"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("选择年龄段")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("自定义年龄段")])],1)],1),t._v(" "),"0"!=t.target_age_type?i("div",{staticClass:"checkBox"},["1"==t.target_age_type?i("el-checkbox-group",{model:{value:t.target_age_range,callback:function(e){t.target_age_range=e},expression:"target_age_range"}},t._l(t.params.age_range,function(e,a){return i("el-checkbox",{key:a+"age",attrs:{label:a}},[t._v(t._s(e))])}),1):t._e(),t._v(" "),"2"==t.target_age_type?i("el-slider",{staticStyle:{width:"400px"},attrs:{range:"",min:18,max:55,marks:t.marks},model:{value:t.ageRange,callback:function(e){t.ageRange=e},expression:"ageRange"}}):t._e()],1):t._e(),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("性别")]),t._v(" "),i("el-radio-group",{model:{value:t.target_gender,callback:function(e){t.target_gender=e},expression:"target_gender"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("女性")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("男性")])],1)],1),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("行为意向")]),t._v(" "),i("el-radio-group",{model:{value:t.target_behavior_interest_type,callback:function(e){t.target_behavior_interest_type=e},expression:"target_behavior_interest_type"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("自定义")])],1)],1),t._v(" "),"1"==t.target_behavior_interest_type?i("div",{staticClass:"tab"},[i("div",{staticStyle:{"margin-bottom":"10px"}},[t._v("在\n "),i("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:t.target_scene_type,callback:function(e){t.target_scene_type=e},expression:"target_scene_type"}},t._l(t.seceneList,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1),t._v("行为场景中,选择\n "),i("el-select",{attrs:{placeholder:"请选择"},model:{value:t.target_time_type,callback:function(e){t.target_time_type=e},expression:"target_time_type"}},t._l(t.timeList,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),i("div",{staticClass:"tabLeft"},[i("el-tabs",{model:{value:t.tabCon,callback:function(e){t.tabCon=e},expression:"tabCon"}},[i("el-tab-pane",{attrs:{label:"添加类目词",name:"first"}},[1==t.checkTab?i("el-cascader-panel",{ref:"cascader",attrs:{value:"id",label:"name",options:t.behavior,props:t.props},model:{value:t.checkSMain,callback:function(e){t.checkSMain=e},expression:"checkSMain"}}):t._e()],1),t._v(" "),i("el-tab-pane",{attrs:{label:"添加关键词",name:"second"}},[i("el-select",{attrs:{multiple:"","filter-method":t.getSearch,filterable:"",placeholder:"请选择"},model:{value:t.checkID,callback:function(e){t.checkID=e},expression:"checkID"}},t._l(t.searchList,function(e){return i("el-option",{key:e.id,staticClass:"secondCheck",attrs:{label:e.name,value:e.id}},[[i("p",{staticClass:"seaName"},[t._v(t._s(e.name))]),t._v(" "),i("p",{staticClass:"seaCount"},[t._v("最大覆盖数:"+t._s(e.count))])]],2)}),1)],1)],1)],1),t._v(" "),i("div",{staticClass:"tabRight"},[i("div",{staticClass:"total"},[t._v("添加的行为:"+t._s(t.checkB.length)+"/100 "),i("span",{staticClass:"clear",on:{click:function(e){return t.clearAll()}}},[t._v("清空")])]),t._v(" "),i("div",{staticClass:"checkTable"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.checkB,height:"230",border:""}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"count",label:"最大覆盖数"}}),t._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.delCheck(e.$index)}}},[t._v("删除")])]}}],null,!1,1422549518)})],1)],1)])]):t._e(),t._v(" "),"1"==t.target_behavior_interest_type?i("div",{staticClass:"inputItem checkBox"},[i("label",{staticClass:"label",staticStyle:{width:"auto"}},[t._v("行为强度")]),t._v(" "),i("el-select",{attrs:{placeholder:"请选择"},model:{value:t.target_strength_type,callback:function(e){t.target_strength_type=e},expression:"target_strength_type"}},t._l(t.strengthList,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1):t._e(),t._v(" "),"1"==t.target_behavior_interest_type?i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("意向定向")]),t._v(" "),i("div",{staticClass:"tab",staticStyle:{"margin-left":"0"}},[i("div",{staticClass:"tabLeft"},[i("el-tabs",{model:{value:t.yType,callback:function(e){t.yType=e},expression:"yType"}},[i("el-tab-pane",{attrs:{label:"添加类目词",name:"first"}},[1==t.checkTab?i("el-cascader-panel",{ref:"cascader1",attrs:{value:"id",label:"name",options:t.intention,props:t.props},model:{value:t.checkintention,callback:function(e){t.checkintention=e},expression:"checkintention"}}):t._e()],1)],1)],1),t._v(" "),i("div",{staticClass:"tabRight"},[i("div",{staticClass:"total"},[t._v("添加的行为:"+t._s(t.showInList.length)+"/100 "),i("span",{staticClass:"clear",on:{click:function(e){return t.clearAll(2)}}},[t._v("清空")])]),t._v(" "),i("div",{staticClass:"checkTable"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.showInList,height:"230",border:""}},[i("el-table-column",{attrs:{prop:"name",label:"名称","show-overflow-tooltip":""}}),t._v(" "),i("el-table-column",{attrs:{prop:"count",label:"最大覆盖数"}}),t._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.delCheck1(e.$index)}}},[t._v("删除")])]}}],null,!1,1858609503)})],1)],1)])])]):t._e(),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("操作系统版本")]),t._v(" "),i("el-radio-group",{model:{value:t.target_platform_os,callback:function(e){t.target_platform_os=e},expression:"target_platform_os"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("Android系统")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("IOS系统")])],1)],1),t._v(" "),"1"==t.target_platform_os?i("div",{staticClass:"checkBox"},[i("el-checkbox-group",{model:{value:t.target_android_osv,callback:function(e){t.target_android_osv=e},expression:"target_android_osv"}},t._l(t.params.android_osv,function(e,a){return i("el-checkbox",{key:"android_osv"+a,attrs:{label:a}},[t._v(t._s(e))])}),1)],1):t._e(),t._v(" "),"2"==t.target_platform_os?i("div",{staticClass:"checkBox"},[i("el-checkbox-group",{model:{value:t.target_ios_osv,callback:function(e){t.target_ios_osv=e},expression:"target_ios_osv"}},t._l(t.params.ios_osv,function(e,a){return i("el-checkbox",{key:"ios_osv"+a,attrs:{label:a}},[t._v(t._s(e))])}),1)],1):t._e(),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("设备品牌")]),t._v(" "),i("el-radio-group",{model:{value:t.device_type,callback:function(e){t.device_type=e},expression:"device_type"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("选择品牌")])],1)],1),t._v(" "),1==t.device_type?i("div",{staticClass:"checkBox"},[i("el-checkbox-group",{model:{value:t.target_device_brand,callback:function(e){t.target_device_brand=e},expression:"target_device_brand"}},t._l(t.params.device_brand,function(e,a){return i("el-checkbox",{key:"brand"+a,attrs:{label:a}},[t._v(t._s(e))])}),1)],1):t._e(),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("设备价格")]),t._v(" "),i("el-radio-group",{model:{value:t.priceType,callback:function(e){t.priceType=e},expression:"priceType"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("选择价格")])],1)],1),t._v(" "),1==t.priceType?i("div",{staticClass:"checkBox"},[i("el-checkbox-group",{model:{value:t.target_device_price,callback:function(e){t.target_device_price=e},expression:"target_device_price"}},t._l(t.params.device_price,function(e,a){return i("el-checkbox",{key:"device"+a,attrs:{label:a}},[t._v(t._s(e))])}),1)],1):t._e(),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("商业兴趣")]),t._v(" "),i("el-radio-group",{model:{value:t.target_business_interest_type,callback:function(e){t.target_business_interest_type=e},expression:"target_business_interest_type"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("智能推荐")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("兴趣标签")])],1)],1),t._v(" "),"1"==t.target_business_interest_type?i("div",{staticClass:"checkBox"},[i("div",{staticClass:"gray"},[t._v("商业兴趣定向会根据您的投放计划,智能精选出最匹配人群,帮助您获取更满足投放意图的人群,以达到最好的投放效果。")])]):t._e(),t._v(" "),"2"==t.target_business_interest_type?i("div",{staticClass:"checkBox"},[i("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:t.target_business_interest,callback:function(e){t.target_business_interest=e},expression:"target_business_interest"}},t._l(t.bussList,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1):t._e(),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("网络环境")]),t._v(" "),i("el-radio-group",{model:{value:t.target_network,callback:function(e){t.target_network=e},expression:"target_network"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("WI-FI")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("移动网络")])],1)],1),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("网红粉丝")]),t._v(" "),i("el-radio-group",{model:{value:t.target_fans_star_type,callback:function(e){t.target_fans_star_type=e},expression:"target_fans_star_type"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("网红类别")])],1)],1),t._v(" "),"1"==t.target_fans_star_type?i("div",{staticClass:"checkBox"},[i("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:t.target_fans_star,callback:function(e){t.target_fans_star=e},expression:"target_fans_star"}},t._l(t.tagList,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1):t._e(),t._v(" "),14==t.mode?i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("过滤已转化用户")]),t._v(" "),i("el-radio-group",{model:{value:t.target_filter_converted_level,callback:function(e){t.target_filter_converted_level=e},expression:"target_filter_converted_level"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("广告组")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("广告计划")]),t._v(" "),i("el-radio-button",{attrs:{label:"3"}},[t._v("本账户")]),t._v(" "),i("el-radio-button",{attrs:{label:"4"}},[t._v("公司主体")])],1)],1):t._e(),t._v(" "),i("div",{staticClass:"inputItem checkBox",staticStyle:{"line-height":"40px"}},[i("el-checkbox",{staticStyle:{float:"left"},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("保存为新的模板")]),t._v(" "),t.checked.length>0?i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:t.save_as_name,expression:"save_as_name"}],staticClass:"toInput",staticStyle:{"margin-left":"10px",width:"300px"},attrs:{type:"text",placeholder:"请输入模板名称"},domProps:{value:t.save_as_name},on:{input:function(e){e.target.composing||(t.save_as_name=e.target.value)}}}),t._v(" "),i("span",{staticClass:"gray",staticStyle:{"margin-left":"10px"}},[t._v("请输入模板名称,最大20字,不能输入纯白格")])]):t._e()],1),t._v(" "),i("h3",{staticClass:"h3"},[t._v("预算和排期")]),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("投放方式")]),t._v(" "),i("el-radio-group",{model:{value:t.speed,callback:function(e){t.speed=e},expression:"speed"}},[i("el-radio-button",{attrs:{label:"1"}},[t._v("加速投放")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("平滑投放")]),t._v(" "),i("el-radio-button",{attrs:{label:"3",disabled:""}},[t._v("优先低成本")])],1),t._v(" "),i("span",{staticClass:"gray pointer",on:{click:function(e){t.showRight=!0}}},[t._v("点击查看介绍")])],1),t._v(" "),i("div",{staticClass:"checkBox"},["1"==t.speed?i("div",{staticClass:"gray"},[t._v("尽快展示广告消耗预算")]):t._e(),t._v(" "),"2"==t.speed?i("div",{staticClass:"gray"},[t._v("平滑匀速投放")]):t._e()]),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("排期")]),t._v(" "),i("el-radio-group",{model:{value:t.show_type,callback:function(e){t.show_type=e},expression:"show_type"}},[i("el-radio-button",{attrs:{label:"1"}},[t._v("从今天开始长期投放")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("设置开始和结束日期")])],1)],1),t._v(" "),2==t.show_type?i("div",{staticClass:"checkBox"},[i("el-date-picker",{attrs:{type:"daterange","picker-options":t.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd",align:"right"},model:{value:t.timeRange,callback:function(e){t.timeRange=e},expression:"timeRange"}})],1):t._e(),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("单日预算")]),t._v(" "),i("el-radio-group",{model:{value:t.budget_type,callback:function(e){t.budget_type=e},expression:"budget_type"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("不限")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("统一限额")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("每日限额")])],1)],1),t._v(" "),i("div",{staticClass:"inputItem"},["1"==t.budget_type?i("div",{staticClass:"input",staticStyle:{"margin-left":"140px",width:"400px"}},["1"==t.budget_type?i("input",{directives:[{name:"model",rawName:"v-model",value:t.budget,expression:"budget"}],staticClass:"toInput money",attrs:{type:"text",placeholder:"请输入统一预算"},domProps:{value:t.budget},on:{input:function(e){e.target.composing||(t.budget=e.target.value)}}}):t._e()]):t._e(),t._v(" "),"2"==t.budget_type?i("div",{staticClass:"tableBox",staticStyle:{"margin-left":"140px"}},[i("p",{staticStyle:{"text-align":"right"}},[t._v("单位:元")]),t._v(" "),i("el-table",{staticStyle:{display:"inline-block"},attrs:{border:"",data:t.tableData}},[i("el-table-column",{attrs:{label:"周一",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.date1.isEdit?i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.row.date1.value,expression:"scope.row.date1.value"}],staticClass:"tableInput",attrs:{type:"text"},domProps:{value:e.row.date1.value},on:{input:function(a){a.target.composing||t.$set(e.row.date1,"value",a.target.value)}}})]):i("div",[t._v("\n "+t._s(e.row.date1.value)+"\n "),i("i",{staticClass:"el-icon-edit-outline",on:{click:function(e){return t.edit("date1")}}})])]}}],null,!1,1244598937)}),t._v(" "),i("el-table-column",{attrs:{label:"周二",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.date2.isEdit?i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.row.date2.value,expression:"scope.row.date2.value"}],staticClass:"tableInput",attrs:{type:"text"},domProps:{value:e.row.date2.value},on:{input:function(a){a.target.composing||t.$set(e.row.date2,"value",a.target.value)}}})]):i("div",[t._v("\n "+t._s(e.row.date2.value)+"\n "),i("i",{staticClass:"el-icon-edit-outline",on:{click:function(e){return t.edit("date2")}}})])]}}],null,!1,2954281786)}),t._v(" "),i("el-table-column",{attrs:{label:"周三",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.date3.isEdit?i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.row.date3.value,expression:"scope.row.date3.value"}],staticClass:"tableInput",attrs:{type:"text"},domProps:{value:e.row.date3.value},on:{input:function(a){a.target.composing||t.$set(e.row.date3,"value",a.target.value)}}})]):i("div",[t._v("\n "+t._s(e.row.date3.value)+"\n "),i("i",{staticClass:"el-icon-edit-outline",on:{click:function(e){return t.edit("date3")}}})])]}}],null,!1,2610456411)}),t._v(" "),i("el-table-column",{attrs:{label:"周四",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.date4.isEdit?i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.row.date4.value,expression:"scope.row.date4.value"}],staticClass:"tableInput",attrs:{type:"text"},domProps:{value:e.row.date4.value},on:{input:function(a){a.target.composing||t.$set(e.row.date4,"value",a.target.value)}}})]):i("div",[t._v("\n "+t._s(e.row.date4.value)+"\n "),i("i",{staticClass:"el-icon-edit-outline",on:{click:function(e){return t.edit("date4")}}})])]}}],null,!1,28175868)}),t._v(" "),i("el-table-column",{attrs:{label:"周五",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.date5.isEdit?i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.row.date5.value,expression:"scope.row.date5.value"}],staticClass:"tableInput",attrs:{type:"text"},domProps:{value:e.row.date5.value},on:{input:function(a){a.target.composing||t.$set(e.row.date5,"value",a.target.value)}}})]):i("div",[t._v("\n "+t._s(e.row.date5.value)+"\n "),i("i",{staticClass:"el-icon-edit-outline",on:{click:function(e){return t.edit("date5")}}})])]}}],null,!1,3969729309)}),t._v(" "),i("el-table-column",{attrs:{label:"周六",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.date6.isEdit?i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.row.date6.value,expression:"scope.row.date6.value"}],staticClass:"tableInput",attrs:{type:"text"},domProps:{value:e.row.date6.value},on:{input:function(a){a.target.composing||t.$set(e.row.date6,"value",a.target.value)}}})]):i("div",[t._v("\n "+t._s(e.row.date6.value)+"\n "),i("i",{staticClass:"el-icon-edit-outline",on:{click:function(e){return t.edit("date6")}}})])]}}],null,!1,1384444862)}),t._v(" "),i("el-table-column",{attrs:{label:"周日",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.date7.isEdit?i("div",[i("input",{directives:[{name:"model",rawName:"v-model",value:e.row.date7.value,expression:"scope.row.date7.value"}],staticClass:"tableInput",attrs:{type:"text"},domProps:{value:e.row.date7.value},on:{input:function(a){a.target.composing||t.$set(e.row.date7,"value",a.target.value)}}})]):i("div",[t._v("\n "+t._s(e.row.date7.value)+"\n "),i("i",{staticClass:"el-icon-edit-outline",on:{click:function(e){return t.edit("date7")}}})])]}}],null,!1,1040619487)})],1),t._v(" "),i("p",[t._v("不少于100,不超过100000000,仅支持输入自然数,若预算置空不填,即为不限")])],1):t._e()]),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("创意展现方式")]),t._v(" "),i("el-radio-group",{model:{value:t.show_mode,callback:function(e){t.show_mode=e},expression:"show_mode"}},[i("el-radio-button",{attrs:{label:"1"}},[t._v("随机轮播")]),t._v(" "),i("el-radio-button",{attrs:{label:"2"}},[t._v("智能优选")])],1)],1),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("投放时段")]),t._v(" "),i("el-radio-group",{model:{value:t.schedule_type,callback:function(e){t.schedule_type=e},expression:"schedule_type"}},[i("el-radio-button",{attrs:{label:"0"}},[t._v("全天")]),t._v(" "),i("el-radio-button",{attrs:{label:"1"}},[t._v("指定时间")])],1)],1),t._v(" "),i("div",{staticClass:"rBox"},[1==t.schedule_type?i("datetime",{attrs:{checktime:t.checktime},on:{saveTime:t.saveTime}}):t._e()],1)]),t._v(" "),i("h3",{staticClass:"h3"},[t._v("优化目标和计费")]),t._v(" "),i("div",{staticClass:"inputItem",staticStyle:{"margin-top":"20px"}},[i("label",{staticClass:"label"},[t._v("优化目标")]),t._v(" "),i("el-radio-group",{model:{value:t.bid_type,callback:function(e){t.bid_type=e},expression:"bid_type"}},[13==t.mode?i("el-radio-button",{attrs:{label:"2"}},[t._v("封面点击数")]):t._e(),t._v(" "),i("el-radio-button",{attrs:{label:"10"}},[t._v("转化数")])],1)],1),t._v(" "),10==t.bid_type?i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("转化目标")]),t._v(" "),i("el-select",{attrs:{slot:"prepend",placeholder:"请选择人群类型"},slot:"prepend",model:{value:t.ocpx_action_type,callback:function(e){t.ocpx_action_type=e},expression:"ocpx_action_type"}},t._l(t.targetList,function(t){return i("el-option",{key:t.label,attrs:{label:t.value,value:t.label}})}),1)],1):t._e(),t._v(" "),10==t.bid_type&&192!=t.ocpx_action_type?i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("转化目标出价")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.cpa_bid,expression:"cpa_bid"}],staticClass:"toInput money",attrs:{type:"text",placeholder:"请输入目标成本"},domProps:{value:t.cpa_bid},on:{input:function(e){e.target.composing||(t.cpa_bid=e.target.value)}}})]):t._e(),t._v(" "),192==t.ocpx_action_type?i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("ROI系数")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.roi_ratio,expression:"roi_ratio"}],staticClass:"toInput money",attrs:{type:"text",placeholder:"请输入ROI系数"},domProps:{value:t.roi_ratio},on:{input:function(e){e.target.composing||(t.roi_ratio=e.target.value)}}})]):t._e(),t._v(" "),2==t.bid_type?i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("转化目标")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.bid,expression:"bid"}],staticClass:"toInput money",attrs:{type:"text",placeholder:"请输入目标成本"},domProps:{value:t.bid},on:{input:function(e){e.target.composing||(t.bid=e.target.value)}}})]):t._e(),t._v(" "),i("h3",{staticClass:"h3"},[t._v("广告组名称")]),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("广告组名称")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.unit_name,expression:"unit_name"}],staticClass:"toInput",attrs:{type:"text",placeholder:"请输入广告组名称"},domProps:{value:t.unit_name},on:{input:function(e){e.target.composing||(t.unit_name=e.target.value)}}})]),t._v(" "),t.unit_id?t._e():i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("广告组数量")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.number,expression:"number"}],staticClass:"toInput",attrs:{type:"text",placeholder:"请输入广告组数量"},domProps:{value:t.number},on:{input:function(e){e.target.composing||(t.number=e.target.value)}}})]),t._v(" "),i("div",{staticClass:"next"},[i("el-button",{on:{click:function(e){return t.$router.push("/")}}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.unit_id?t.update():t.create(1)}}},[t._v("保存并关闭")]),t._v(" "),t.unit_id||t.campaign_id?t._e():i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.create()}}},[t._v("下一步")])],1)]),t._v(" "),i("el-dialog",{attrs:{title:"“投放方式”中的加速投放、平滑投放、优先低成本分别是什么意思?我该怎么选择?",visible:t.showRight},on:{"update:visible":function(e){t.showRight=e}}},[i("div",{staticClass:"helpMain"},[i("div",{staticClass:"help"},[i("p",{staticClass:"title"},[t._v("加速投放")]),t._v(" "),i("p",[t._v("功能简介:激进探索,系统会在成本控制下、尽快获取最大量的转化")]),t._v(" "),i("p",[t._v("使用场景:预算很高,希望在一定成本下、量越多越好,为了获取更多的量甚至可接受小幅度超成本,建议有放量诉求的广告主使用")]),t._v(" "),i("img",{attrs:{src:a("x/n0"),alt:""}}),t._v(" "),i("p",{staticStyle:{}},[t._v("原理说明")])]),t._v(" "),i("div",{staticClass:"help"},[i("p",{staticClass:"title"},[t._v("平滑投放")]),t._v(" "),i("p",[t._v("功能简介:稳健探索,系统会在成本控制下、根据实际流量分布、均匀地消耗预算")]),t._v(" "),i("p",[t._v("使用场景:追求匀速跑量、不希望流量太大波动,建议头部广告主日常使用、中小广告主放量使用")]),t._v(" "),i("img",{attrs:{src:a("4U0a"),alt:""}}),t._v(" "),i("p",{staticStyle:{}},[t._v("原理说明")])]),t._v(" "),i("div",{staticClass:"help"},[i("p",{staticClass:"title"},[t._v("优先低成本")]),t._v(" "),i("p",[t._v("功能简介:保守探索,系统会在成本控制下、优先探索低成本转化、以最具成本效益的方式使用预算")]),t._v(" "),i("p",[t._v("使用场景:预算一定,对跑量速度没有要求,希望预算花完的同时成本越低越好,建议中小广告主日常使用")]),t._v(" "),i("img",{attrs:{src:a("vtyC"),alt:""}}),t._v(" "),i("p",{staticStyle:{}},[t._v("原理说明")])])])])],1)},staticRenderFns:[]};var c=a("C7Lr")(o,l,!1,function(t){a("3noN"),a("zDEG")},"data-v-5fbac2a9",null);e.default=c.exports},"+dxo":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAV1BMVEUAAACgoKCmpqafn5+goKCgoKCioqKurq6goKCfn5+goKCfn5+goKCgoKChoaGioqKoqKifn5+goKCfn5+goKCgoKCgoKChoaGioqKkpKSfn5+goKCfn5+rAKmkAAAAHHRSTlMA9Q/HWJk4Ceje166GbEAeGLanfXNmYk4vJdHBK8r0BQAAAOlJREFUSMfd1MuSwiAUhGEOScjNmIsaHe33f87ZTM3EaWjiwo3f+oeiOBTuw9Tr0pq1/eD31GfDDzvUudgX2OjGTN3hSaP7Hv8Uqj6ClHrzV7Y3MJ+sR0SEZB5A1OGviBiS+QURh2ReIuL02mHOakpsTeZfiLi6pAZsSucLyJ0ieZOVyCej/OiESj3I/PZ2c9JKM9Ie2JgdEe/GRkfEZBeXdaOnLp3oqSve8MeC0+oHthp97aHDMyvFHzaDzSF+6KFDXHHxdNuVIc36cruirpBj1fRbF9ih9TwZxkNrscudvmnJ+LvQ+Zt9A647WMJoJc8LAAAAAElFTkSuQmCC"},"1yLE":function(t,e,a){var i=a("uSC2");i(i.S,"Number",{isInteger:a("D44a")})},"3noN":function(t,e){},"4U0a":function(t,e,a){t.exports=a.p+"static/img/desc1.321bac6.png"},"4Xi4":function(t,e,a){t.exports={default:a("6OVK"),__esModule:!0}},"6OVK":function(t,e,a){a("1yLE"),t.exports=a("DH3n").Number.isInteger},"C/JU":function(t,e,a){t.exports=a.p+"static/img/size2.35e2d42.png"},D44a:function(t,e,a){var i=a("VII3"),s=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&s(t)===t}},fcWF:function(t,e,a){t.exports=a.p+"static/img/size1.a24d671.png"},vX6V:function(t,e,a){"use strict";var i=a("4Xi4"),s=a.n(i),r={name:"timeSelect",props:["checktime"],data:function(){return{tableHeader:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],weekDate:{1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六",7:"星期日"},rowUnit:[],timeContent:[],timeSection:[],timeStr:[],beginDay:0,beginTime:0,downEvent:!1,kuangObj:{width:0,height:0,top:0,left:0,bottom:0,right:0,oldLeft:0,oldTop:0,flag:!1},py:"",px:"",back:"#31676f",h:"",w:"",top:"",left:"",len:0}},created:function(){this.init(),this.timeContent=this.checktime,this.timeContent.length>0&&this.initSelect()},mounted:function(){},methods:{init:function(){for(var t=0;t<7;t++){for(var e=[],a=0;a<24;a++)e.push({class:null,timeData:a});this.rowUnit.push(e),this.timeContent.push({arr:[]}),this.timeSection.push([]),this.timeStr.push("")}this.initSelect()},initSelect:function(){var t=this;this.timeContent.forEach(function(e,a){e.hasOwnProperty("arr")&&e.arr.length>0&&e.arr.forEach(function(e){t.rowUnit[a][e].class="ui-selected"})})},handleMouseDown:function(t,e){this.downEvent=!0,this.beginDay=e,this.beginTime=t},dian:function(t){this.px=t.pageX,this.py=t.pageY},yi:function(t){if(""!=this.px&&""!=this.py){var e=this.px,a=this.py;this.left=t.pageX,this.top=t.pageY,this.h=this.top-this.py,this.w=this.left-this.px;var i=-this.h,s=-this.w;this.len=1,this.back="#31676f",this.h<0&&this.w>=0?(this.h=i,this.left=e):this.h>=0&&this.w<0?(this.w=s,this.top=a):this.h<0&&this.w<0?(this.h=i,this.w=s):(this.left=this.px,this.top=this.py),this.w<0&&(this.w=0-this.w),this.h<0&&(this.h=0-this.h)}},li:function(){this.px="",this.py="",this.h="",this.w="",this.top="",this.left="",this.len=0,this.back=""},handleMouseUp:function(t,e){var a=this,i=this.beginTime,s=i<=t?i:t,r=Math.abs(i-t),n=s+r,o=this.beginDay<=e?this.beginDay:e,l=Math.abs(this.beginDay-e),c=o+l;if(this.downEvent){if(function(){for(var t=o;t<c+1;t++)for(var e=s;e<n+1;e++)if(null==a.rowUnit[t][e].class)return!0;return!1}())for(var _=o;_<c+1;_++)for(var u=s;u<n+1;u++)null==this.rowUnit[_][u].class&&(this.rowUnit[_][u].class="ui-selected",this.timeContent[_].arr.push(this.rowUnit[_][u].timeData));else for(var p=o;p<c+1;p++)for(var d=s;d<n+1;d++)if("ui-selected"==this.rowUnit[p][d].class){this.rowUnit[p][d].class=null;for(var h=this.rowUnit[p][d].timeData,v="",g=0;g<this.timeContent[p].arr.length;g++)h==this.timeContent[p].arr[g]&&(v=g);this.timeContent[p].arr.splice(v,1)}this.filterTime(o,c)}this.downEvent=!1;var m=[];this.rowUnit.forEach(function(t,e){m[e]=[],t.forEach(function(t,a){"ui-selected"==t.class?m[e][a]=1:m[e][a]=0})}),this.$emit("saveTime",m)},filterTime:function(t,e){var a=this;function i(t){return s()(t)?(t<10?"0"+t:t.toString())+":00":(Math.floor(t)<10?"0"+Math.floor(t):Math.floor(t).toString())+":00"}for(var r=function(t){var e,s,r=[];(e=a.timeContent[t].arr.sort(function(t,e){return t-e}),s=[],e.forEach(function(t,e){var a=s[s.length-1];e&&t%1==0&&t-a[a.length-1]==1?a.push(t):s.push([t])}),s).forEach(function(t){var e=[];e.push(t[0]),e.push(t[t.length-1]+1),r.push(e)}),a.timeStr[t]=function(t){var e="";return t.forEach(function(t,a){var s="";s=0==a?i(t[0])+"~"+i(t[1]):" , "+i(t[0])+"~"+i(t[1]),e+=s}),e}(r),a.timeSection[t]=r},n=t;n<e+1;n++)r(n)},clear:function(){this.rowUnit.forEach(function(t){t.forEach(function(t){t.class=null})}),this.timeContent.forEach(function(t){t.arr=[]}),this.timeSection.forEach(function(t){t.length=0}),this.timeStr.length=0;for(var t=0;t<7;t++)this.timeStr.push("")}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"byted-weektime",on:{mousedown:t.dian,mousemove:t.yi,mouseup:t.li}},[a("div",{staticClass:"calendar"},[a("table",{ref:"timeCheck",staticClass:"calendar-table",staticStyle:{width:"610px"}},[a("thead",{staticClass:"calendar-head"},[t._m(0),t._v(" "),a("tr",t._l(t.tableHeader,function(e,i){return a("td",{key:i},[t._v(t._s(e))])}),0)]),t._v(" "),a("tbody",{attrs:{id:"tableBody"}},[a("div",{style:{width:t.kuangObj.width+"px",height:t.kuangObj.height+"px",top:t.kuangObj.top+"px",left:t.kuangObj.left+"px",bottom:t.kuangObj.bottom+"px",right:t.kuangObj.right+"px"},attrs:{id:"kuang"}}),t._v(" "),a("tr",[a("td",[t._v("星期一")]),t._v(" "),t._l(t.rowUnit[0],function(e,i){return a("td",{key:i,staticClass:"calendar-atom-time",class:e.class,on:{mousedown:function(e){return e.preventDefault(),t.handleMouseDown(i,0)},mouseup:function(e){return e.preventDefault(),t.handleMouseUp(i,0)}}})})],2),t._v(" "),a("tr",[a("td",[t._v("星期二")]),t._v(" "),t._l(t.rowUnit[1],function(e,i){return a("td",{key:i,staticClass:"calendar-atom-time",class:e.class,on:{mousedown:function(e){return e.preventDefault(),t.handleMouseDown(i,1)},mouseup:function(e){return e.preventDefault(),t.handleMouseUp(i,1)}}})})],2),t._v(" "),a("tr",[a("td",[t._v("星期三")]),t._v(" "),t._l(t.rowUnit[2],function(e,i){return a("td",{key:i,staticClass:"calendar-atom-time",class:e.class,on:{mousedown:function(e){return e.preventDefault(),t.handleMouseDown(i,2)},mouseup:function(e){return e.preventDefault(),t.handleMouseUp(i,2)}}})})],2),t._v(" "),a("tr",[a("td",[t._v("星期四")]),t._v(" "),t._l(t.rowUnit[3],function(e,i){return a("td",{key:i,staticClass:"calendar-atom-time",class:e.class,on:{mousedown:function(e){return e.preventDefault(),t.handleMouseDown(i,3)},mouseup:function(e){return e.preventDefault(),t.handleMouseUp(i,3)}}})})],2),t._v(" "),a("tr",[a("td",[t._v("星期五")]),t._v(" "),t._l(t.rowUnit[4],function(e,i){return a("td",{key:i,staticClass:"calendar-atom-time",class:e.class,on:{mousedown:function(e){return e.preventDefault(),t.handleMouseDown(i,4)},mouseup:function(e){return e.preventDefault(),t.handleMouseUp(i,4)}}})})],2),t._v(" "),a("tr",[a("td",[t._v("星期六")]),t._v(" "),t._l(t.rowUnit[5],function(e,i){return a("td",{key:i,staticClass:"calendar-atom-time",class:e.class,on:{mousedown:function(e){return e.preventDefault(),t.handleMouseDown(i,5)},mouseup:function(e){return e.preventDefault(),t.handleMouseUp(i,5)}}})})],2),t._v(" "),a("tr",[a("td",[t._v("星期日")]),t._v(" "),t._l(t.rowUnit[6],function(e,i){return a("td",{key:i,staticClass:"calendar-atom-time",class:e.class,on:{mousedown:function(e){return e.preventDefault(),t.handleMouseDown(i,6)},mouseup:function(e){return e.preventDefault(),t.handleMouseUp(i,6)}}})})],2),t._v(" "),a("tr",[a("td",{staticClass:"td-table-tip",attrs:{colspan:"49"}},[a("div",{staticClass:"clearfix"},[a("span",{staticClass:"pull-left tip-text"},[t._v("请用鼠标点选时间段")]),t._v(" "),a("a",{staticClass:"pull-right",on:{click:t.clear}},[t._v("清空")])])])]),t._v(" "),a("tr",[a("td",{staticClass:"timeContent",attrs:{colspan:"25"}},t._l(t.timeStr,function(e,i){return a("div",{directives:[{name:"show",rawName:"v-show",value:e.length,expression:"item.length"}],key:i,staticClass:"timeItem"},[a("span",[t._v(t._s(t.weekDate[i+1])+":")]),t._v(" "),a("strong",[a("span",[t._v(t._s(e))])])])}),0)])])])]),t._v(" "),a("div",{style:{backgroundColor:t.back,height:t.h+"px",width:t.w+"px",position:"absolute",left:t.left+"px",top:t.top+"px",opacity:.2,border:t.len+"px dashed #000",zIndex:-1},attrs:{id:"container"}})])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("tr",[e("th",{staticClass:"week-td",attrs:{rowspan:"2"}},[this._v("星期/时间")]),this._v(" "),e("th",{attrs:{colspan:"12"}},[this._v("上午")]),this._v(" "),e("th",{attrs:{colspan:"12"}},[this._v("下午")])])}]};var o=a("C7Lr")(r,n,!1,function(t){a("z4/I")},"data-v-dbd4fa0e",null);e.a=o.exports},vtyC:function(t,e,a){t.exports=a.p+"static/img/desc2.98ec8ce.png"},"x/n0":function(t,e,a){t.exports=a.p+"static/img/desc.7bbf57f.png"},"z4/I":function(t,e){},zDEG:function(t,e){}});
- //# sourceMappingURL=2.b67051f4199ef02a1fbe.js.map
|