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fzTaDj/j+5NOpjgkDOdRPp8RgDoeYKSS/HZOEA/TiEYX0One/UzSSBismYowMI1iw0CdOEKI2weEDgISSC3BKMM5MFKiYL98dYH1Ggs2UUnRELHnnwOB5g9L8A/TH6Kn8LRF90op1tTYOYyicR+xfJNkYY1Sn40QAAAABJRU5ErkJggg=="},"28qf":function(t,e){},nbVP:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={data:function(){return{user_id:[],userList:[],all_campaign_id:[],camObj:{},unitObj:{},all_unit_id:[],isAll:!1,isAllGroup:!1,batch_campaign_id:"",groupList:[],loadSave:!1,campaignListSave:[],checkFlag:!1,checkPlan:[],allPlan:[],select:[],unit_id:[],planList1:[],planList:[],campaignList:[],checkList:[],play:!1,playUrl:"",typeList:[{id:4,name:"自定义创意"},{id:7,name:"程序化创意"}],advertiser_id:this.$route.query.advertiser_id?this.$route.query.advertiser_id.split(","):"",accountList:[],account:"",type:4,loadManage:!1,tab:1,planName:"",editSecond:!1,keyword:"",createList:[],createList1:[],adGruopList:[],list:[],page:1,page_size:20,total:1,page1:1,page_size1:20,total1:1,page2:1,page_size2:20,total2:1}},created:function(){this.initUser(),this.getCampaign(1),this.getAccountList()},methods:{toThree:function(t){this.$router.push("/three?id="+t.advertiser_id+"&unit_id="+t.unit_id+"&unit_type="+t.unit_type+"&mode="+t.campaign_type)},initUser:function(t){var e=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.userIndex,{params:{}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?e.userList=t.rst.data:e.$message({message:t.err,type:"warning"})}).catch(function(){e.loadingSave=!1})},getAccountList:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.accountList,{page_size:9999}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.accountList=e.rst.data,t.advertiser_id.forEach(function(e,a){t.$set(t.advertiser_id,a,Number(e))})):t.$message({message:e.err,type:"warning"})}).catch(function(){t.loading=!1})},checkAll:function(){var t=this;1==this.tab?(this.isAll=!this.isAll,this.all_campaign_id=[],this.isAll?(this.camObj.all_campaign.forEach(function(e){e.campaign_type==t.campaignList[0].type&&e.advertiser_id==t.campaignList[0].advertiser_id?t.all_campaign_id.push(e.campaign_id):(t.$message.closeAll(),t.$message.error("只能选择同一类型的广告计划和同一个广告主"))}),this.campaignList.forEach(function(e){t.all_campaign_id.length>0&&-1!=t.all_campaign_id.indexOf(e.campaign_id)?t.$refs.multipleTable.toggleRowSelection(e):0==t.all_campaign_id.length&&(t.$message.closeAll(),t.$refs.multipleTable.toggleRowSelection(e))})):(this.all_campaign_id=[],this.campaignList.forEach(function(e){t.$refs.multipleTable.toggleRowSelection(e,!1)}))):(this.isAllGroup=!this.isAllGroup,this.all_unit_id=[],this.isAllGroup?(this.unitObj.all_unit.forEach(function(e){e.campaign_type==t.unitObj.all_unit[0].campaign_type&&e.advertiser_id==t.unitObj.all_unit[0].advertiser_id?t.all_unit_id.push(e.unit_id):(t.$message.closeAll(),t.$message.error("只能选择同一类型的广告计划和同一个广告主"))}),this.adGruopList.forEach(function(e){t.all_unit_id.length>0&&-1!=t.all_unit_id.indexOf(e.unit_id)?t.$refs.multipleTable1.toggleRowSelection(e):0==t.all_unit_id.length&&(t.$message.closeAll(),t.$refs.multipleTable1.toggleRowSelection(e))})):(this.all_unit_id=[],this.adGruopList.forEach(function(e){t.$refs.multipleTable1.toggleRowSelection(e,!1)})))},moreEdit:function(){var t=this;if(1==this.tab){if(0==this.planList.length)return void this.$message.error("请选择一个或多个广告计划进行操作");var e=[],a=[];this.isAll?a=this.all_campaign_id:this.planList.forEach(function(t){e.push(t.advertiser_id),a.push(t.campaign_id)}),this.$router.push("/first?id="+e.join(",")+"&campaign_id="+a.join(","))}else if(2==this.tab){if(0==this.unit_id.length)return void this.$message.error("请选择一个或多个广告组进行操作");e=[];var i=[];this.isAllGroup?(i=this.all_unit_id,e=[].concat(this.adGruopList[0].advertiser_id)):this.adGruopList.forEach(function(a){t.unit_id.forEach(function(t){a.unit_id==t&&(e.push(a.advertiser_id),i.push(a.unit_id))})}),this.$router.push("/second?id="+e.join(",")+"&unit_id="+i.join(","))}else{if(0==this.checkList.length)return void this.$message.error("请选择一个或多个广告创意进行操作");e=[];var s=[];this.checkList.forEach(function(t){e.push(t.advertiser_id),s.push(t.creative_id)}),this.$router.push("/three?id="+e.join(",")+"&creative_id="+s.join(",")+"&unit_type=4")}},saveMore:function(){this.editSecond=!1;var t=[];this.groupList.forEach(function(e){t.push(e.unit_ids.join(","))}),this.$router.push("/second?id="+this.groupList[0].advertiser_id+"&unit_id="+t[0])},changeGroup:function(t){this.groupList=t},changeStatus:function(t){0!=this.checkList.length?1==this.tab?this.changePlan(1,t):2==this.tab?this.changeGroupStatus(1,t):this.batchChangeCreativeStatus(1,t):this.$message.warning("请选择一个或多个广告进行操作")},toUrl:function(t){4==this.type?this.$router.push("/three?id="+t.advertiser_id+"&creative_id="+t.creative_id+"&unit_type="+this.type):this.$router.push("/three?id="+t.advertiser_id+"&unit_type="+this.type+"&unit_id="+t.unit_id)},getCampaign:function(t){var e=this;this.campaignList=[],this.page=t,this.loadManage=!0,this.$axios.get(this.URL.BASEURL+this.URL.campaignList,{params:{page:this.page,keyword:this.keyword,user_id:this.user_id,advertiser_id:this.advertiser_id}}).then(function(t){t=t.data;e.loadManage=!1,t&&0==t.errno?(t.rst.data.forEach(function(t){t.open=1==t.put_status}),e.campaignList=t.rst.data,e.$nextTick(function(){e.isAll&&e.campaignList.forEach(function(t){e.$refs.multipleTable.toggleRowSelection(t,!0)})}),e.camObj=t.rst,e.total=t.rst.pageInfo.total):e.$message({message:t.err,type:"warning"})}).catch(function(){e.loadManage=!1})},getCampaignSave:function(){var t=this;this.loadSave=!0,this.$axios.get(this.URL.BASEURL+this.URL.campaignList,{params:{page:1,batch_campaign_id:this.batch_campaign_id,advertiser_id:this.advertiser_id}}).then(function(e){e=e.data;t.loadSave=!1,e&&0==e.errno?t.campaignListSave=e.rst.data:t.$message({message:e.err,type:"warning"})}).catch(function(){t.loadSave=!1})},getadList:function(t){var e=this;this.adGruopList=[],this.page1=t,this.loadManage=!0,this.$axios.get(this.URL.BASEURL+this.URL.adUnitList,{params:{page:this.page1,page_size:this.page_size,user_id:this.user_id,advertiser_id:this.advertiser_id,keyword:this.keyword,campaign_ids:this.planList.map(function(t){return t.campaign_id})}}).then(function(t){t=t.data;e.loadManage=!1,t&&0==t.errno?(t.rst.data.forEach(function(t){t.open=1==t.put_status}),e.adGruopList=t.rst.data,e.unitObj=t.rst,e.$nextTick(function(){e.isAllGroup&&e.adGruopList.forEach(function(t){e.$refs.multipleTable1.toggleRowSelection(t)})}),e.total1=t.rst.pageInfo.total):e.$message({message:t.err,type:"warning"})}).catch(function(){e.loadManage=!1})},handleCurrentChange1:function(t){this.getadList(t)},creativeList:function(t){var e=this;this.createList=[],this.page2=t,this.loadManage=!0,this.$axios.get(this.URL.BASEURL+this.URL.creativeList,{params:{unit_ids:this.unit_id,user_id:this.user_id,advertiser_id:this.advertiser_id,keyword:this.keyword,page:this.page2,page_size:this.page_size2}}).then(function(t){t=t.data;e.loadManage=!1,t&&0==t.errno?(t.rst.data.forEach(function(t){t.open=1==t.put_status}),e.createList=t.rst.data,e.total2=t.rst.pageInfo.total):e.$message({message:t.err,type:"warning"})}).catch(function(){e.loadManage=!1})},programList:function(t){var e=this;this.createList1=[],this.page2=t,this.loadManage=!0,this.$axios.get(this.URL.BASEURL+this.URL.programCreativeList,{params:{unit_ids:this.unit_id,advertiser_id:this.advertiser_id,user_id:this.user_id,keyword:this.keyword,page:this.page2,page_size:this.page_size2}}).then(function(t){t=t.data;e.loadManage=!1,t&&0==t.errno?(e.createList1=t.rst.data,e.total2=t.rst.pageInfo.total):e.$message({message:t.err,type:"warning"})}).catch(function(){e.loadManage=!1})},changePlan:function(t,e){var a=this,i=[];i=1==t?this.checkList.map(function(t){return t.campaign_id}):[].concat(e.campaign_id),this.loadManage=!0,this.$axios.post(this.URL.BASEURL+this.URL.update_status,{put_status:1==t?e:1==e.put_status?2:1,campaign_ids:i}).then(function(t){t=t.data;a.loadManage=!1,t&&0==t.errno?a.getCampaign(1):a.$message({message:t.err,type:"warning"})}).catch(function(){a.loadManage=!1})},changeGroupStatus:function(t,e){var a=this,i=[];i=1==t?this.checkList.map(function(t){return t.unit_id}):[].concat(e.unit_id),this.loadManage=!0,this.$axios.post(this.URL.BASEURL+this.URL.adUnitupdate_status,{put_status:1==t?e:1==e.put_status?2:1,unit_ids:i}).then(function(t){t=t.data;a.loadManage=!1,t&&0==t.errno?a.getadList(1):a.$message({message:t.err,type:"warning"})}).catch(function(){a.loadManage=!1})},batchChangeCreativeStatus:function(t,e){var a=this,i=[];i=1==t?this.checkList.map(function(t){return t.creative_id}):[].concat(e.creative_id),this.loadManage=!0,this.$axios.post(this.URL.BASEURL+this.URL.batchChangeCreativeStatus,{advertiser_id:Number(this.advertiser_id),status:1==t?e:1==e.put_status?2:1,creative_ids:i}).then(function(t){t=t.data;a.loadManage=!1,t&&0==t.errno?a.creativeList():a.$message({message:t.err,type:"warning"})}).catch(function(){a.loadManage=!1})},handleCurrentChange:function(t){this.getCampaign(t)},handleCurrentChange2:function(t){4==this.type?this.creativeList(t):this.programList(t)},handleSelectionChange:function(t){this.checkList=t,1==this.tab&&(this.planList=t),2==this.tab&&(this.planList1=t)}},watch:{planList1:function(){this.unit_id=this.planList1.map(function(t){return t.unit_id})},type:function(){4==this.type?this.creativeList(1):this.programList(1)},tab:function(){switch(this.keyword="",this.tab){case 1:this.getCampaign(1);break;case 2:this.getadList(1);break;default:4==this.type?this.creativeList(1):this.programList(1)}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadManage,expression:"loadManage"}],staticClass:"manage"},[i("div",{staticClass:"selectBox"},[i("div",{staticClass:"left_select",staticStyle:{"margin-right":"10px","margin-top":"3.5px"}},[i("label",[t._v("广告主筛选:")]),t._v(" "),i("el-select",{attrs:{slot:"prepend",multiple:"",clearable:"",placeholder:"广告主的筛选"},on:{change:function(e){1==t.tab?t.getCampaign(1):2==t.tab?t.getadList(1):3==t.tab&&4==t.type?t.creativeList(1):t.programList(1)}},slot:"prepend",model:{value:t.advertiser_id,callback:function(e){t.advertiser_id=e},expression:"advertiser_id"}},t._l(t.accountList,function(t){return i("el-option",{key:t.advertiser_id,attrs:{label:t.user_name,value:t.advertiser_id}})}),1)],1),t._v(" "),i("div",{staticClass:"left_select",staticStyle:{"margin-right":"10px","margin-top":"3.5px"}},[i("label",[t._v("创建人筛选:")]),t._v(" "),i("el-select",{attrs:{slot:"prepend",multiple:"",clearable:"",placeholder:"创建者的筛选"},on:{change:function(e){1==t.tab?t.getCampaign(1):2==t.tab?t.getadList(1):3==t.tab&&4==t.type?t.creativeList(1):t.programList(1)}},slot:"prepend",model:{value:t.user_id,callback:function(e){t.user_id=e},expression:"user_id"}},t._l(t.userList,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1)],1),t._v(" "),i("ul",{staticClass:"left_select"},[i("el-input",{staticClass:"input-with-select",staticStyle:{width:"340px","margin-top":"4px"},attrs:{placeholder:1==t.tab?"请输入广告计划关键词":2==t.tab?"请输入广告组关键词":"请输入广告创意关键词",clearable:""},on:{clear:function(e){1==t.tab?t.getCampaign(1):2==t.tab?t.getadList(1):3==t.tab&&4==t.type?t.creativeList(1):t.programList(1)}},nativeOn:{keydown:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;1==t.tab?t.getCampaign(1):2==t.tab?t.getadList(1):3==t.tab&&4==t.type?t.creativeList(1):t.programList(1)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[i("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){1==t.tab?t.getCampaign(1):2==t.tab?t.getadList(1):3==t.tab&&4==t.type?t.creativeList(1):t.programList(1)}},slot:"append"})],1),t._v(" "),3==t.tab?i("el-select",{staticStyle:{width:"150px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(t.typeList,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1):t._e()],1),t._v(" "),3!=t.tab?i("button",{staticClass:"button",staticStyle:{float:"right","margin-top":"8px"},on:{click:function(e){return t.moreEdit()}}},[t._v("批量编辑")]):t._e()]),t._v(" "),i("div",{staticClass:"tabs"},[i("div",{staticClass:"tabList"},[i("div",{class:["tabItem",1==t.tab&&"tabActive"],on:{click:function(e){t.tab=1}}},[t._v("\n 广告计划\n "),t.planList.length>0?i("div",{staticClass:"tag",on:{click:function(e){t.all_campaign_id=[],t.isAll=!1,t.planList=[],t.$refs.multipleTable.clearSelection()}}},[t._v("选中"+t._s(t.isAll?t.all_campaign_id.length:t.planList.length)+"项\n "),i("i",{staticClass:"el-icon-close",on:{click:function(e){t.planList=[],t.getCampaign(1)}}})]):t._e()]),t._v(" "),i("div",{class:["tabItem",2==t.tab&&"tabActive"],on:{click:function(e){t.tab=2}}},[t._v("\n 广告组\n "),t.unit_id.length>0?i("div",{staticClass:"tag",on:{click:function(e){t.all_unit_id=[],t.isAllGroup=!1,t.unit_id=[],t.$refs.multipleTable1.clearSelection()}}},[t._v("选中"+t._s(t.isAllGroup?t.all_unit_id.length:t.unit_id.length)+"项\n "),i("i",{staticClass:"el-icon-close"})]):t._e()]),t._v(" "),i("div",{class:["tabItem",3==t.tab&&"tabActive"],on:{click:function(e){t.tab=3}}},[t._v("\n 广告创意\n ")])])]),t._v(" "),i("div",{staticClass:"doList"},[3!=t.tab?i("button",{staticClass:"button",on:{click:function(e){return t.checkAll()}}},[t._v("全选")]):t._e(),t._v(" "),i("button",{staticClass:"button",on:{click:function(e){return t.$router.push("/")}}},[t._v("批量创建广告")]),t._v(" "),4==t.type?i("button",{staticClass:"button normal",on:{click:function(e){return t.changeStatus(1)}}},[t._v("开始")]):t._e(),t._v(" "),4==t.type?i("button",{staticClass:"button normal",on:{click:function(e){return t.changeStatus(2)}}},[t._v("暂停")]):t._e(),t._v(" "),4==t.type?i("button",{staticClass:"button normal",on:{click:function(e){return t.changeStatus(3)}}},[t._v("删除")]):t._e()]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.tab,expression:"tab==1"}]},[i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.campaignList},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",fixed:"",width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"开关",fixed:"",width:"72"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-switch",{attrs:{"active-color":"#2662FF","inactive-color":"#BFBFBF"},on:{change:function(a){return t.changePlan(2,e.row)}},model:{value:e.row.open,callback:function(a){t.$set(e.row,"open",a)},expression:"scope.row.open"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"计划名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-tooltip",{attrs:{effect:"dark",content:e.row.campaign_name,placement:"top-start"}},[i("div",{staticClass:"title"},[t._v(t._s(e.row.campaign_name))])]),t._v(" "),i("div",{staticClass:"done"},[i("span",{staticClass:"do",on:{click:function(a){return t.$router.push("/first?id="+e.row.advertiser_id+"&campaign_id="+e.row.campaign_id)}}},[t._v("编辑")]),t._v(" "),i("span",{staticClass:"do",on:{click:function(a){t.batch_campaign_id=e.row.batch_campaign_id,t.planName=e.row.campaign_name,t.getCampaignSave(),t.editSecond=!0}}},[t._v("修改组")]),t._v(" "),i("span",{staticClass:"do",on:{click:function(a){return t.$router.push("/second?id="+e.row.advertiser_id+"&campaign_id="+e.row.campaign_id+"&mode="+e.row.type)}}},[t._v("添加组")])])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.put_status?"投放中":"暂停")+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(13==e.row.type?"商品推广":"直播推广")+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"单日预算类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.budget_type?"单日限额":"分日限额")+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"today_budget_desc",label:"今日预算描述"}}),t._v(" "),i("el-table-column",{attrs:{prop:"user_name",label:"创建者账号"}}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"添加时间"}})],1),t._v(" "),t.campaignList.length>0?i("div",{staticClass:"bottom",staticStyle:{position:"relative"}},[i("div"),t._v(" "),i("el-pagination",{attrs:{background:"","current-page":t.page,"page-size":t.page_size,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:2==t.tab,expression:"tab==2"}]},[i("el-table",{ref:"multipleTable1",staticStyle:{width:"100%"},attrs:{data:t.adGruopList},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",fixed:"",width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"开关",fixed:"",width:"72"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-switch",{attrs:{"active-color":"#2662FF","inactive-color":"#BFBFBF"},on:{change:function(a){return t.changeGroupStatus(2,e.row)}},model:{value:e.row.open,callback:function(a){t.$set(e.row,"open",a)},expression:"scope.row.open"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"广告组名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-tooltip",{staticClass:"title",attrs:{effect:"dark",content:e.row.unit_name,placement:"top-start"}},[i("div",{staticClass:"title",on:{click:function(a){t.planList1=[].concat(e.row),t.total1=1,t.page1=1,t.tab=3}}},[t._v(t._s(e.row.unit_name))])]),t._v(" "),i("div",{staticClass:"done"},[i("span",{staticClass:"do",on:{click:function(a){return t.$router.push("/second?id="+e.row.advertiser_id+"&unit_id="+e.row.unit_id)}}},[t._v("编辑")]),t._v(" "),1==e.row.allow_add_creative?i("span",{staticClass:"do",on:{click:function(a){return t.toThree(e.row)}}},[t._v("添加创意")]):t._e()])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"campaign_name",label:"计划名称","show-overflow-tooltip":""}}),t._v(" "),i("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.put_status?"投放中":"暂停")+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"bid_type",label:"优化目标"}}),t._v(" "),i("el-table-column",{attrs:{prop:"user_name",label:"创建者账号"}})],1),t._v(" "),t.adGruopList.length>0?i("div",{staticClass:"bottom",staticStyle:{position:"relative"}},[i("div"),t._v(" "),i("el-pagination",{attrs:{background:"","current-page":t.page1,"page-size":t.page_size1,layout:"prev, pager, next",total:t.total1},on:{"current-change":t.handleCurrentChange1}})],1):t._e()],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==t.tab,expression:"tab==3"}]},[i("div",{directives:[{name:"show",rawName:"v-show",value:3==t.tab&&4==t.type,expression:"tab==3&&type==4"}]},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.createList},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",fixed:"",width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"开关",fixed:"",width:"72"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-switch",{attrs:{"active-color":"#2662FF","inactive-color":"#BFBFBF"},on:{change:function(a){return t.batchChangeCreativeStatus(2,e.row)}},model:{value:e.row.open,callback:function(a){t.$set(e.row,"open",a)},expression:"scope.row.open"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"创意名称",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[4==t.type&&e.row.cover_url?i("div",{staticClass:"left"},[i("img",{staticClass:"post",attrs:{src:e.row.cover_url,alt:""}}),t._v(" "),i("img",{staticClass:"play",attrs:{src:a("20yL"),alt:""},on:{click:function(a){t.play=!0,t.playUrl=e.row.photo_url}}})]):t._e(),t._v(" "),i("div",{staticClass:"right",style:{width:e.row.cover_url?"calc(100% - 70px)":"100%"}},[i("el-tooltip",{staticClass:"title",attrs:{effect:"dark",content:e.row.creative_name?e.row.creative_name:e.row.package_name,placement:"top-start"}},[i("div",[t._v(t._s(e.row.creative_name?e.row.creative_name:e.row.package_name))])]),t._v(" "),i("div",{staticClass:"done"},[i("span",{staticClass:"do",on:{click:function(a){return t.toUrl(e.row)}}},[t._v("编辑")])])],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"unit_name",label:"组名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"同步状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.put_status?"投放中":2==e.row.put_status?"暂停":"删除")+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"status_name",label:"创意状态"}}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"创建时间"}}),t._v(" "),i("el-table-column",{attrs:{prop:"update_time",label:"更新时间"}}),t._v(" "),i("el-table-column",{attrs:{prop:"user_name",label:"创建者账号"}})],1),t._v(" "),i("div",{staticClass:"bottom",staticStyle:{position:"relative"}},[i("div"),t._v(" "),i("el-pagination",{attrs:{background:"","current-page":t.page2,"page-size":t.page_size2,layout:"prev, pager, next",total:t.total2},on:{"current-change":t.handleCurrentChange2}})],1)],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==t.tab&&7==t.type,expression:"tab==3&&type==7"}]},[i("el-table",{directives:[{name:"show",rawName:"v-show",value:3==t.tab&&7==t.type,expression:"tab==3&&type==7"}],staticStyle:{width:"100%"},attrs:{data:t.createList1}},[i("el-table-column",{attrs:{prop:"name",label:"创意名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"right"},[i("el-tooltip",{staticClass:"title",attrs:{effect:"dark",content:e.row.creative_name?e.row.creative_name:e.row.package_name,placement:"top-start"}},[i("div",[t._v(t._s(e.row.creative_name?e.row.creative_name:e.row.package_name))])]),t._v(" "),i("div",{staticClass:"done"},[i("span",{staticClass:"do",on:{click:function(a){return t.toUrl(e.row)}}},[t._v("编辑")])])],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"unit_name",label:"组名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"name",label:"同步状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.put_status?"投放中":2==e.row.put_status?"暂停":"删除")+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"status_name",label:"创意状态"}}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"创建时间"}}),t._v(" "),i("el-table-column",{attrs:{prop:"update_time",label:"更新时间"}}),t._v(" "),i("el-table-column",{attrs:{prop:"user_name",label:"创建者账号"}})],1),t._v(" "),i("div",{staticClass:"bottom",staticStyle:{position:"relative"}},[i("div"),t._v(" "),i("el-pagination",{attrs:{background:"","current-page":t.page2,"page-size":t.page_size2,layout:"prev, pager, next",total:t.total2},on:{"current-change":t.handleCurrentChange2}})],1)],1)]),t._v(" "),i("my-dialog",{attrs:{visible:t.editSecond,width:"500px"},on:{"update:visible":function(e){t.editSecond=e}}},[i("div",{staticClass:"toast"},[i("h3",[t._v("修改组")]),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadSave,expression:"loadSave"}],staticClass:"toastMain",staticStyle:{overflow:"hidden"}},[i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("计划名称")]),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.planName,placement:"top-start"}},[i("div",{staticClass:"title"},[t._v(t._s(t.planName))])])],1),t._v(" "),i("div",{staticClass:"inputItem"},[i("label",{staticClass:"label"},[t._v("同期计划")]),t._v(" "),i("div",{staticClass:"checkBox"},[i("div",{staticClass:"checkCon"},[t.groupList.length>0?i("div",{staticStyle:{overflow:"hidden"}},t._l(t.groupList,function(e,a){return i("span",{staticClass:"tag"},[t._v(t._s(e.campaign_name)+"\n ")])}),0):t._e(),t._v(" "),i("i",{staticClass:"el-icon-arrow-down"})]),t._v(" "),i("div",{staticClass:"checkMain"},[i("el-table",{ref:"multipleTable1",staticStyle:{width:"100%"},attrs:{data:t.campaignListSave,"tooltip-effect":"dark",height:"300"},on:{"selection-change":t.changeGroup}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),i("el-table-column",{attrs:{prop:"campaign_name","show-overflow-tooltip":"",label:"计划名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"orientation_id",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.put_status?"投放中":"暂停")+"\n ")]}}])})],1)],1)])])]),t._v(" "),i("div",{staticClass:"toastBtn"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.editSecond=!1}}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.saveMore()}}},[t._v("批量修改组")])],1)])]),t._v(" "),i("my-dialog",{attrs:{visible:t.play,width:"30%",minWidth:"500px"},on:{"update:visible":function(e){t.play=e}}},[i("div",{staticClass:"toast"},[i("h3",[t._v("播放视频")]),t._v(" "),i("div",{staticClass:"toastMain",staticStyle:{"max-height":"fit-content"}},[i("video",{staticClass:"playBox",attrs:{autoplay:"",loop:"",controls:"",src:t.playUrl}})])])])],1)},staticRenderFns:[]};var n=a("C7Lr")(i,s,!1,function(t){a("28qf"),a("x6aJ")},"data-v-6e1847f6",null);e.default=n.exports},x6aJ:function(t,e){}});
- //# sourceMappingURL=6.d929463d28d88a46e863.js.map
|