import{d as V,al as j,ao as B,r as f,j as G,a9 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 _,aq as E,ar as w}from"./vue.65d9dadc.js";import z from"./index.cf5b1874.js";import C from"./index.eae44784.js";import A from"./index.41a7eaad.js";import{r as D,u as O,Q as T}from"./index.373e4c1e.js";import{q as L,r as M}from"./enum.b537673d.js";import P from"./index.4829c556.js";import{_ as R}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.c5b0e04f.js";import"./crud.7811f5b2.js";import"./commonTabColumn.a4869ec6.js";import"./index.vue_vue_type_script_setup_true_lang.0c3456ea.js";import"./dataTendency.8b63de20.js";import"./echarts.72dc8373.js";import"./index.78cddcae.js";import"./index.4dc9403e.js";import"./crud.66e2f773.js";import"./index.74ced524.js";import"./crud.c65d54a0.js";import"./api.448bec4f.js";import"./lineChart.vue_vue_type_script_setup_true_lang.32037334.js";import"./timer-bid.fe04b23f.js";import"./index.7bd36d79.js";import"./select-tmpl.7bb8ee31.js";import"./api.c8bd63ae.js";import"./common.c6665d9b.js";import"./save-rule-dialog.8623428c.js";import"./timer-budget.9445b87a.js";import"./index.c3e189c9.js";import"./index.fef63074.js";import"./switch-campaign.1ab55bbb.js";import"./index.44f904b6.js";import"./freq-setting.81b68f58.js";import"./enum.cd3ef671.js";import"./target-rule.f0ceb215.js";import"./target-select.1f664cf4.js";import"./index.vue_vue_type_script_setup_true_lang.f2d7f4a8.js";import"./target-rule-setting.069c0def.js";import"./search-term.vue_vue_type_script_setup_true_lang.7d9e038d.js";import"./search-term-add.7762cd1d.js";import"./index.vue_vue_type_script_setup_true_lang.420e7504.js";import"./search-term-bid.76eba3c6.js";import"./st-bid-input.35ed45a9.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.d2e1b173.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 q=g("el-button"),c=g("el-tab-pane"),k=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(q,{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(k,{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};
