import{d as k,al as G,ao as N,r as b,j as S,a9 as u,o as r,c as _,a,L as s,M as p,G as c,K as t,u as n,E as q,J as w,aq as B,ar as C}from"./vue.65d9dadc.js";import T from"./index.ae46c1a2.js";import{q as d}from"./enum.b537673d.js";import{r as z,u as D}from"./index.373e4c1e.js";import{_ as E}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.c5b0e04f.js";import"./crud.57c28e56.js";import"./commonTabColumn.a4869ec6.js";import"./index.vue_vue_type_script_setup_true_lang.0c3456ea.js";import"./dataTendency.3fe686ee.js";import"./echarts.72dc8373.js";import"./index.78cddcae.js";import"./index.4dc9403e.js";const A="/api/ad_manage/sdcampaigns/report/campaign_info";function M(o){return z({url:A,method:"get",params:{campaignId:o}})}const l=o=>(B("data-v-a970a138"),o=o(),C(),o),R={class:"asj-container"},J={class:"asj-detail-header"},K={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},L={class:"asj-detail-info"},O=l(()=>a("span",{style:{color:"rgb(177, 177, 177)"}},"状态: ",-1)),P={key:0},U={key:1},F=l(()=>a("span",{class:"head-span"},"预算: ",-1)),H=l(()=>a("span",{class:"head-span"},"投放类型：",-1)),Q=l(()=>a("span",{class:"head-span"},"投放日期: ",-1)),W=l(()=>a("span",{class:"head-span"},"广告组合: ",-1)),X=l(()=>a("span",{class:"head-span"},"成本类型: ",-1)),Y=k({__name:"index",setup(o){const x=D(),{profile:I}=G(x),m=N(),e=b({}),i=b("adGroup");return S(async()=>{const f=await M(m.query.campaignId);e.value=f.data[0]}),(f,v)=>{var y;const h=u("el-button"),g=u("el-tab-pane"),V=u("el-tabs");return r(),_("div",R,[a("div",J,[a("span",K,[a("span",null,s(e.value.campaignName),1)]),a("div",L,[O,e.value.state==="enabled"?(r(),_("span",P,[p(h,{class:"no-hover-effect",type:"success",round:"",plain:"",size:"small",style:{"margin-top":"-3px"}},{default:c(()=>[t(s(n(d)[e.value.state]),1)]),_:1})])):(r(),_("span",U,[p(h,{class:"no-hover-effect-ban",type:"danger",round:"",plain:"",size:"small",style:{"margin-top":"-3px"}},{default:c(()=>[t(s(n(d)[e.value.state]),1)]),_:1})])),F,t(),a("span",null,s(n(I).currency_symbol+e.value.budget)+" | "+s(n(d)[e.value.budgetType]),1),H,t(),a("span",null,s(n(d)[e.value.tactic]),1),Q,t(),a("span",null,s(e.value.startDate)+" ~ "+s(e.value.endDate??"无结束日期"),1),W,t(),a("span",null,s((y=e.value)!=null&&y.portfolio_name?e.value.portfolio_name:"--"),1),X,t(),a("span",null,s(e.value.costType),1)])]),p(V,{type:"border-card",class:"asj-detail-tabs",modelValue:i.value,"onUpdate:modelValue":v[0]||(v[0]=j=>i.value=j)},{default:c(()=>[p(g,{label:"广告组",name:"adGroup"},{default:c(()=>[i.value==="adGroup"?(r(),q(T,{key:0,campaignId:n(m).query.campaignId},null,8,["campaignId"])):w("",!0)]),_:1}),p(g,{label:"自动化",name:"automation"},{default:c(()=>[t(" 自动化 ")]),_:1})]),_:1},8,["modelValue"])])}}});const ia=E(Y,[["__scopeId","data-v-a970a138"]]);export{ia as default};
