import{d as V,ak as j,an as B,r as f,j as G,a8 as g,o as m,c as S,a,L as t,M as p,G as i,K as l,u as o,E as u,J as _,ap as E,aq as w}from"./vue.95e072e2.js";import z from"./index.b66f874b.js";import C from"./index.9a5e3425.js";import A from"./index.8b9a8c2d.js";import{r as D,u as O,Q as T}from"./index.8a64ecdf.js";import{q as L,r as M}from"./enum.b537673d.js";import P from"./index.9e832460.js";import{_ as R}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.58179425.js";import"./crud.780b693c.js";import"./commonTabColumn.00155e2b.js";import"./index.vue_vue_type_script_setup_true_lang.8dd19552.js";import"./dataTendency.ab62b4f1.js";import"./echarts.72dc8373.js";import"./index.9f6b84b8.js";import"./index.df979911.js";import"./crud.9d7ff2f7.js";import"./index.eed780e8.js";import"./crud.72393a63.js";import"./api.366eb78b.js";import"./lineChart.vue_vue_type_script_setup_true_lang.e59728b1.js";import"./timer-bid.d5c31c6d.js";import"./index.8ae2fabd.js";import"./select-tmpl.a975ce18.js";import"./api.bf14d834.js";import"./common.f714fcb5.js";import"./save-rule-dialog.206b07b0.js";import"./timer-budget.9375bf82.js";import"./index.bf5b9295.js";import"./index.6c7077c1.js";import"./switch-campaign.b39264e0.js";import"./index.776f4fc6.js";import"./freq-setting.b40e2ae6.js";import"./enum.cd3ef671.js";import"./target-rule.860303ca.js";import"./target-select.e0f6835f.js";import"./index.vue_vue_type_script_setup_true_lang.57d46784.js";import"./target-rule-setting.706d7fc2.js";import"./search-term.vue_vue_type_script_setup_true_lang.fb01d092.js";import"./search-term-add.62da2341.js";import"./index.vue_vue_type_script_setup_true_lang.1723a9a1.js";import"./search-term-bid.6902fbb5.js";import"./st-bid-input.ea87a259.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.94b6065b.js";const J="/api/ad_manage/sbcampaigndetail/";function K(n){return D({url:J+"head/",method:"get",params:{campaignId:n}})}const d=n=>(E("data-v-6abc9605"),n=n(),w(),n),Q={class:"asj-container"},U={class:"asj-detail-header"},F={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},H={class:"asj-detail-info"},W=d(()=>a("span",{style:{color:"rgb(177, 177, 177)"}},"状态: ",-1)),X=d(()=>a("span",{class:"head-span"},"预算: ",-1)),Y=d(()=>a("span",{class:"head-span"},"投放日期: ",-1)),Z=d(()=>a("span",{class:"head-span"},"广告组合: ",-1)),$=d(()=>a("span",{class:"head-span"},"竞价: ",-1)),aa=V({__name:"index",setup(n){const h=O(),{profile:b}=j(h),r=B(),e=f({}),s=f("adGroup"),x=f(r.query.campaignId);return G(async()=>{const v=await K(r.query.campaignId);e.value=v.data}),(v,y)=>{var I;const k=g("el-button"),c=g("el-tab-pane"),q=g("el-tabs");return m(),S("div",Q,[a("div",U,[a("span",F,[a("span",null,t(e.value.campaignName),1)]),a("div",H,[W,a("span",null,[p(k,{class:"no-hover-effect",type:"success",round:"",plain:"",size:"small",style:{"margin-top":"-3px"}},{default:i(()=>[l(t(o(L)[e.value.state]),1)]),_:1})]),X,l(),a("span",null,t(o(b).currency_symbol+e.value.budget)+" | "+t(e.value.budgetType),1),Y,l(),a("span",null,t(e.value.startDate)+" ~ "+t(e.value.endDate??"无结束日期"),1),Z,l(),a("span",null,t((I=e.value)==null?void 0:I.portfolioName),1),$,l(),a("span",null,t(o(T)(o(M),e.value.bidOptimization)),1)])]),p(q,{type:"border-card",class:"asj-detail-tabs",modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=N=>s.value=N)},{default:i(()=>[p(c,{label:"广告组",name:"adGroup"},{default:i(()=>[s.value==="adGroup"?(m(),u(z,{key:0,campaignId:o(r).query.campaignId},null,8,["campaignId"])):_("",!0)]),_:1}),p(c,{label:"预算",name:"budget"},{default:i(()=>[s.value==="budget"?(m(),u(A,{key:0,campaignId:o(r).query.campaignId},null,8,["campaignId"])):_("",!0)]),_:1}),p(c,{label:"自动化",name:"automation"},{default:i(()=>[s.value==="automation"?(m(),u(P,{key:0,campaignId:x.value,profileId:o(b).profile_id},null,8,["campaignId","profileId"])):_("",!0)]),_:1}),p(c,{label:"广告位",name:"placement"},{default:i(()=>[s.value==="placement"?(m(),u(C,{key:0,campaignId:o(r).query.campaignId},null,8,["campaignId"])):_("",!0)]),_:1})]),_:1},8,["modelValue"])])}}});const Qa=R(aa,[["__scopeId","data-v-6abc9605"]]);export{Qa as default};
