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.3f733908.js";import z from"./index.ee8f4ff5.js";import C from"./index.b81995a9.js";import A from"./index.78bf7169.js";import{r as D,u as O,Q as T}from"./index.0d411246.js";import{q as L,r as M}from"./enum.b537673d.js";import P from"./index.577e23b9.js";import{_ as R}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.0e5067e4.js";import"./crud.5c637c8b.js";import"./commonTabColumn.9973d424.js";import"./index.vue_vue_type_script_setup_true_lang.d1494dfe.js";import"./dataTendency.dec8f4f1.js";import"./echarts.72dc8373.js";import"./index.69303a66.js";import"./index.8a84e60c.js";import"./crud.f9183fd8.js";import"./index.1c622692.js";import"./crud.23f9f66a.js";import"./api.b9612e63.js";import"./lineChart.vue_vue_type_script_setup_true_lang.89230c44.js";import"./timer-bid.69b19c28.js";import"./index.5140338b.js";import"./select-tmpl.7954c02d.js";import"./api.0c329410.js";import"./common.2084ef18.js";import"./save-rule-dialog.3e2d4102.js";import"./timer-budget.e882cf03.js";import"./index.980be13c.js";import"./index.60fb7205.js";import"./switch-campaign.b03ee3e9.js";import"./index.4ebb480f.js";import"./freq-setting.0ccfd6aa.js";import"./enum.cd3ef671.js";import"./target-rule.aaaff0ac.js";import"./target-select.b83b708a.js";import"./index.vue_vue_type_script_setup_true_lang.20a22637.js";import"./target-rule-setting.cc345aed.js";import"./search-term.vue_vue_type_script_setup_true_lang.d132157a.js";import"./search-term-add.3d455180.js";import"./index.vue_vue_type_script_setup_true_lang.3e623d97.js";import"./search-term-bid.92146657.js";import"./st-bid-input.bb7df39c.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.580bd756.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};
