import{d as V,ay as j,aD as G,r as g,j as N,ai as c,o as d,c as k,a,T as t,U as p,O as i,S as q,u as o,M as h,R as b,aF as w,aG as B}from"./vue.adf17aba.js";import C from"./index.f8e0b6b5.js";import{r as D,u as A,Q as E}from"./index.ad3efb29.js";import{q as y,t as R}from"./enum.e566fd6e.js";import M from"./index.06695866.js";import{_ as O}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.4833989a.js";import"./crud.496a3676.js";import"./commonTabColumn.c5d53eee.js";import"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import"./dataTendency.8f9547e4.js";import"./echarts.72dc8373.js";import"./index.7f1f4491.js";import"./index.05a2d588.js";import"./timer-bid.38e79968.js";import"./index.bab41dc1.js";import"./select-tmpl.1269a265.js";import"./api.ecc2e6e0.js";import"./api.39068aff.js";import"./common.89e0f16e.js";import"./save-rule-dialog.e22020b1.js";import"./switch-campaign.cb5f0639.js";import"./index.fdb4f26c.js";import"./index.ec96ead5.js";import"./freq-setting.ecd99b01.js";import"./enum.cd3ef671.js";import"./target-rule.c6fd20c2.js";import"./target-select.40bd090b.js";import"./index.vue_vue_type_script_setup_true_lang.577ff081.js";import"./view-target-rules.600653bb.js";import"./select-target.vue_vue_type_script_setup_true_lang.1ff66d81.js";import"./enum.111a4a5d.js";import"./target-rule-setting.326c7c80.js";/* empty css                   */const U="/api/ad_manage/sdcampaigns/report/campaign_info";function z(s){return D({url:U,method:"get",params:{campaignId:s}})}const n=s=>(w("data-v-6f0e63c2"),s=s(),B(),s),F={class:"asj-container"},P={class:"asj-detail-header"},Q={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},H={class:"asj-detail-info"},J=n(()=>a("span",{class:"label"},"状态: ",-1)),K=n(()=>a("span",{class:"label"},"预算: ",-1)),L={class:"value"},W=n(()=>a("span",{class:"label"},"投放类型：",-1)),X={class:"value"},Y=n(()=>a("span",{class:"label"},"投放日期: ",-1)),Z={class:"value"},$=n(()=>a("span",{class:"label"},"广告组合: ",-1)),aa={class:"value"},ea=n(()=>a("span",{class:"label"},"成本类型: ",-1)),ta={class:"value"},oa=V({__name:"index",setup(s){const I=A(),{profile:m}=j(I),u=G(),e=g({}),l=g("adGroup");return N(async()=>{const r=await z(u.query.campaignId);e.value=r.data[0]}),(r,_)=>{var v;const x=c("el-tag"),f=c("el-tab-pane"),T=c("el-tabs");return d(),k("div",F,[a("div",P,[a("span",Q,[a("span",null,t(e.value.campaignName),1)]),a("div",H,[a("div",null,[J,p(x,{type:o(E)(e.value.state)},{default:i(()=>[q(t(o(y)[e.value.state]),1)]),_:1},8,["type"])]),a("div",null,[K,a("span",L,t(o(m).currency_symbol+e.value.budget)+" | "+t(o(y)[e.value.budgetType]),1)]),a("div",null,[W,a("span",X,t(o(R)[e.value.tactic]),1)]),a("div",null,[Y,a("span",Z,t(e.value.startDate)+" ~ "+t(e.value.endDate??"无结束日期"),1)]),a("div",null,[$,a("span",aa,t((v=e.value)!=null&&v.portfolio_name?e.value.portfolio_name:"--"),1)]),a("div",null,[ea,a("span",ta,t(e.value.costType),1)])])]),p(T,{modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=S=>l.value=S),class:"asj-detail-tabs",type:"border-card"},{default:i(()=>[p(f,{label:"广告组",name:"adGroup"},{default:i(()=>[l.value==="adGroup"?(d(),h(C,{key:0,campaignId:o(u).query.campaignId},null,8,["campaignId"])):b("",!0)]),_:1}),p(f,{label:"自动化",name:"automation"},{default:i(()=>[l.value==="automation"?(d(),h(M,{key:0,campaignId:r.campaignId,profileId:o(m).profile_id},null,8,["campaignId","profileId"])):b("",!0)]),_:1})]),_:1},8,["modelValue"])])}}});const Ma=O(oa,[["__scopeId","data-v-6f0e63c2"]]);export{Ma as default};
