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.6daa721c.js";import z from"./index.f44be64f.js";import C from"./index.d7e4f054.js";import A from"./index.1a3c2284.js";import{r as D,u as O,Q as T}from"./index.ae7ce77b.js";import{q as L,r as M}from"./enum.b537673d.js";import P from"./index.02ca473b.js";import{_ as R}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.346c766a.js";import"./crud.9c0ff7ec.js";import"./commonTabColumn.9307c435.js";import"./index.vue_vue_type_script_setup_true_lang.c5131d55.js";import"./dataTendency.14ea91e8.js";import"./echarts.72dc8373.js";import"./index.c2be63e9.js";import"./index.abe7750b.js";import"./crud.a10b6c3f.js";import"./index.1b30f184.js";import"./crud.13289080.js";import"./api.a26971f4.js";import"./lineChart.vue_vue_type_script_setup_true_lang.fb70f1c8.js";import"./timer-bid.d08732c2.js";import"./index.940e497f.js";import"./select-tmpl.c030a538.js";import"./api.d8e37c07.js";import"./common.398ceae3.js";import"./save-rule-dialog.45f1312e.js";import"./timer-budget.6b98a561.js";import"./index.5f7471ae.js";import"./index.007fb7b0.js";import"./switch-campaign.eaae959c.js";import"./index.d32a0333.js";import"./freq-setting.2f72d98d.js";import"./enum.cd3ef671.js";import"./target-rule.36e65ab3.js";import"./target-select.59ace4e8.js";import"./index.vue_vue_type_script_setup_true_lang.a95c9ee1.js";import"./target-rule-setting.667bb139.js";import"./search-term.vue_vue_type_script_setup_true_lang.f2d9435f.js";import"./search-term-add.6bb4bd7e.js";import"./index.vue_vue_type_script_setup_true_lang.ed5de1fc.js";import"./search-term-bid.437a6a3f.js";import"./st-bid-input.6972d65a.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.8dab3bee.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};
