import{d as S,ay as V,aD as j,r as _,j as B,ai as f,o as r,c as G,a,T as o,U as n,O as p,S as T,u as t,M as c,R as u,aF as w,aG as C}from"./vue.adf17aba.js";import D from"./index.1f5de790.js";import E from"./index.543cd7d1.js";import O from"./index.5251d755.js";import{r as R,u as z,Q as A,R as M}from"./index.ad3efb29.js";import{q as I,r as P}from"./enum.e566fd6e.js";import U from"./index.e400756d.js";import{_ as F}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.4833989a.js";import"./crud.ca0f4d64.js";import"./commonTabColumn.c5d53eee.js";import"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import"./dataTendency.69ca86c9.js";import"./echarts.72dc8373.js";import"./index.7f1f4491.js";import"./index.05a2d588.js";import"./crud.afe2032e.js";import"./index.04a874bc.js";import"./crud.a3921ced.js";import"./api.e246f1ff.js";import"./lineChart.vue_vue_type_script_setup_true_lang.6446da5b.js";import"./timer-bid.38e79968.js";import"./index.bab41dc1.js";import"./select-tmpl.1269a265.js";import"./api.ecc2e6e0.js";import"./api.39068aff.js";import"./common.89e0f16e.js";import"./save-rule-dialog.e22020b1.js";import"./timer-budget.94f7db72.js";import"./index.7831ce6d.js";import"./index.ec96ead5.js";import"./switch-campaign.cb5f0639.js";import"./index.fdb4f26c.js";import"./freq-setting.ecd99b01.js";import"./enum.cd3ef671.js";import"./target-rule.c6fd20c2.js";import"./target-select.40bd090b.js";import"./index.vue_vue_type_script_setup_true_lang.577ff081.js";import"./view-target-rules.600653bb.js";import"./select-target.vue_vue_type_script_setup_true_lang.1ff66d81.js";import"./enum.111a4a5d.js";import"./target-rule-setting.326c7c80.js";import"./search-term.vue_vue_type_script_setup_true_lang.db5ad1a7.js";import"./search-term-add.3506ccf0.js";import"./index.vue_vue_type_script_setup_true_lang.b7a88915.js";import"./search-term-bid.cef6800d.js";import"./st-bid-input.2092702d.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.cd2eacf5.js";/* empty css                   */const L="/api/ad_manage/sbcampaigndetail/";function Q(s){return R({url:L+"head/",method:"get",params:{campaignId:s}})}const m=s=>(w("data-v-8a002cf3"),s=s(),C(),s),H={class:"asj-container"},J={class:"asj-detail-header"},K={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},W={class:"asj-detail-info"},X=m(()=>a("span",{class:"label"},"状态: ",-1)),Y=m(()=>a("span",{class:"label"},"预算: ",-1)),Z={class:"value"},$=m(()=>a("span",{class:"label"},"投放日期: ",-1)),aa={class:"value"},ea=m(()=>a("span",{class:"label"},"广告组合: ",-1)),ta={class:"value"},oa=m(()=>a("span",{class:"label"},"竞价: ",-1)),sa={class:"value"},ia=S({__name:"index",setup(s){const h=z(),{profile:v}=V(h),l=j(),e=_({}),i=_("adGroup"),x=_(l.query.campaignId);return B(async()=>{const g=await Q(l.query.campaignId);e.value=g.data}),(g,b)=>{var y;const k=f("el-tag"),d=f("el-tab-pane"),q=f("el-tabs");return r(),G("div",H,[a("div",J,[a("span",K,[a("span",null,o(e.value.campaignName),1)]),a("div",W,[a("div",null,[X,n(k,{type:t(A)(e.value.state)},{default:p(()=>[T(o(t(I)[e.value.state]),1)]),_:1},8,["type"])]),a("div",null,[Y,a("span",Z,o(t(v).currency_symbol+e.value.budget)+" | "+o(t(I)[e.value.budgetType]),1)]),a("div",null,[$,a("span",aa,o(e.value.startDate)+" ~ "+o(e.value.endDate??"无结束日期"),1)]),a("div",null,[ea,a("span",ta,o((y=e.value)==null?void 0:y.portfolioName),1)]),a("div",null,[oa,a("span",sa,o(t(M)(t(P),e.value.bidOptimization)),1)])])]),n(q,{modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=N=>i.value=N),class:"asj-detail-tabs",type:"border-card"},{default:p(()=>[n(d,{label:"广告组",name:"adGroup"},{default:p(()=>[i.value==="adGroup"?(r(),c(D,{key:0,campaignId:t(l).query.campaignId},null,8,["campaignId"])):u("",!0)]),_:1}),n(d,{label:"预算",name:"budget"},{default:p(()=>[i.value==="budget"?(r(),c(O,{key:0,campaignId:t(l).query.campaignId},null,8,["campaignId"])):u("",!0)]),_:1}),n(d,{label:"自动化",name:"automation"},{default:p(()=>[i.value==="automation"?(r(),c(U,{key:0,campaignId:x.value,profileId:t(v).profile_id},null,8,["campaignId","profileId"])):u("",!0)]),_:1}),n(d,{label:"广告位",name:"placement"},{default:p(()=>[i.value==="placement"?(r(),c(E,{key:0,campaignId:t(l).query.campaignId},null,8,["campaignId"])):u("",!0)]),_:1})]),_:1},8,["modelValue"])])}}});const ee=F(ia,[["__scopeId","data-v-8a002cf3"]]);export{ee as default};
