import{d as b,w as y,a8 as i,o as V,c as h,a as o,M as a,G as l,K as p,H as c,N as _,ap as S,aq as T}from"./vue.95e072e2.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.57d46784.js";import{_ as w}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.8a64ecdf.js";import"./elementPlus.58179425.js";import"./echarts.72dc8373.js";const r=d=>(S("data-v-31a98770"),d=d(),T(),d),B=r(()=>o("span",{class:"custom-title-icon"},null,-1)),M=r(()=>o("span",{class:"asj-h3"},"生效对象",-1)),A={style:{display:"flex","flex-direction":"column","align-items":"flex-start"}},N={style:{margin:"5px 0"}},k=r(()=>o("span",null,"广告类型：",-1)),q={class:"target-radio-group"},C={class:"target-radio-group-item"},G={class:"target-radio-group-item"},U=b({__name:"target-select",props:{mode:{},data:{},useTmpl:{type:Boolean},campaignId:{}},setup(d){const u=d;return y(()=>u.data.campaignAd,e=>{console.log(11,u.data.campaignAd)}),(e,t)=>{const n=i("el-option"),g=i("el-select"),m=i("el-radio"),f=i("el-button"),v=i("el-radio-group");return V(),h("div",null,[B,M,o("div",A,[o("div",N,[k,a(g,{modelValue:e.data.campaignType,"onUpdate:modelValue":t[0]||(t[0]=s=>e.data.campaignType=s),disabled:e.mode==="edit"||e.useTmpl},{default:l(()=>[a(n,{label:"SP",value:"sp"}),a(n,{label:"SB",value:"sb"}),a(n,{label:"SD",value:"sd"})]),_:1},8,["modelValue","disabled"])]),a(v,{modelValue:e.data.activeModel,"onUpdate:modelValue":t[2]||(t[2]=s=>e.data.activeModel=s),disabled:e.mode==="edit"||e.useTmpl},{default:l(()=>[o("div",q,[a(m,{label:"campaign"},{default:l(()=>[p("当前广告活动（所有定向）")]),_:1}),o("div",C,[a(m,{label:"adGroup"},{default:l(()=>[p("当前广告活动的指定广告组（所有定向）")]),_:1}),c(a(I,{modelValue:e.data.campaignAd,"onUpdate:modelValue":t[1]||(t[1]=s=>e.data.campaignAd=s),style:{"padding-left":"23px",width:"450px"},multiple:!0,query:{profileId:"3006125408623189",campaignType:e.data.campaignType,campaignId:e.campaignId}},null,8,["modelValue","query"]),[[_,e.mode==="auto"&&e.data.activeModel==="adGroup"]])]),o("div",G,[a(m,{label:"specified"},{default:l(()=>[p("指定定向")]),_:1}),c(a(f,{style:{"margin-left":"20px",color:"blue"},link:""},{default:l(()=>[p("选择定向")]),_:1},512),[[_,e.mode==="auto"&&e.data.activeModel==="specified"]])])])]),_:1},8,["modelValue","disabled"])])])}}});const $=w(U,[["__scopeId","data-v-31a98770"]]);export{$ as default};
