import{d as k,ak as N,an as V,r as d,j,a8 as h,o as i,c as B,a,L as t,u as r,M as s,G as l,E as m,J as u,K as G}from"./vue.95e072e2.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.0411c3fc.js";import C from"./index.4c89cead.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.08a38952.js";import T from"./index.df286e04.js";import{r as q,u as w,Q as D}from"./index.8a64ecdf.js";import{f as A}from"./enum.b537673d.js";import"./elementPlus.58179425.js";import"./crud.25792d7c.js";import"./commonTabColumn.00155e2b.js";import"./index.vue_vue_type_script_setup_true_lang.8dd19552.js";import"./dataTendency.ab62b4f1.js";import"./echarts.72dc8373.js";import"./index.9f6b84b8.js";import"./index.df979911.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./crud.4c627bd4.js";import"./index.eed780e8.js";import"./crud.78ce673f.js";import"./api.dbbae1e5.js";import"./lineChart.vue_vue_type_script_setup_true_lang.71df9b00.js";import"./timer-bid.d5c31c6d.js";import"./index.8ae2fabd.js";import"./select-tmpl.a975ce18.js";import"./api.bf14d834.js";import"./common.f714fcb5.js";import"./save-rule-dialog.206b07b0.js";import"./timer-budget.9375bf82.js";import"./index.bf5b9295.js";import"./index.6c7077c1.js";import"./switch-campaign.b39264e0.js";import"./index.776f4fc6.js";import"./freq-setting.b40e2ae6.js";import"./enum.cd3ef671.js";import"./target-rule.860303ca.js";import"./target-select.e0f6835f.js";import"./index.vue_vue_type_script_setup_true_lang.57d46784.js";import"./target-rule-setting.706d7fc2.js";import"./search-term.vue_vue_type_script_setup_true_lang.fb01d092.js";import"./search-term-add.62da2341.js";import"./index.vue_vue_type_script_setup_true_lang.1723a9a1.js";import"./search-term-bid.6902fbb5.js";import"./st-bid-input.ea87a259.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.94b6065b.js";const L="/api/ad_manage/spcampaigndetail/";function M(c){return q({url:L+"head/",method:"get",params:{campaignId:c}})}const P={class:"asj-container"},R={class:"asj-detail-header"},$={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},z={class:"asj-detail-info"},J=a("span",{class:"label"},"状态：",-1),K={class:"value"},O=a("span",{class:"label"},"预算：",-1),Q={class:"value"},U=a("span",{class:"label"},"投放类型：",-1),F={class:"value"},H=a("span",{class:"label"},"投放日期：",-1),W={class:"value"},X=a("span",{class:"label"},"广告组合：",-1),Y={class:"value"},Z=a("span",{class:"label"},"竞价策略：",-1),aa={class:"value"},Oa=k({__name:"index",setup(c){const y=w(),{profile:_}=N(y),v=V(),e=d({}),o=d("adGroup"),p=d(v.query.campaignId);return j(async()=>{const f=await M(v.query.campaignId);e.value=f.data}),(f,g)=>{var b;const n=h("el-tab-pane"),I=h("el-tabs");return i(),B("div",P,[a("div",R,[a("span",$,[a("span",null,t(e.value.campaignName),1)]),a("div",z,[a("div",null,[J,a("span",K,t(e.value.state)+" ("+t(e.value.servingStatus)+")",1)]),a("div",null,[O,a("span",Q,t(r(_).currency_symbol+e.value.budget)+" | "+t(e.value.budgetType),1)]),a("div",null,[U,a("span",F,t(e.value.targetingType),1)]),a("div",null,[H,a("span",W,t(e.value.startDate)+" ~ "+t(e.value.endDate??"无结束日期"),1)]),a("div",null,[X,a("span",Y,t((b=e.value)==null?void 0:b.portfolioName),1)]),a("div",null,[Z,a("span",aa,t(r(D)(r(A),e.value.dynBidStrategy)),1)])])]),s(I,{type:"border-card",class:"asj-detail-tabs",modelValue:o.value,"onUpdate:modelValue":g[0]||(g[0]=x=>o.value=x)},{default:l(()=>[s(n,{label:"广告组",name:"adGroup"},{default:l(()=>[o.value==="adGroup"?(i(),m(S,{key:0,campaignId:p.value},null,8,["campaignId"])):u("",!0)]),_:1}),s(n,{label:"预算",name:"budget"},{default:l(()=>[o.value==="budget"?(i(),m(E,{key:0,campaignId:p.value},null,8,["campaignId"])):u("",!0)]),_:1}),s(n,{label:"自动化",name:"automation"},{default:l(()=>[o.value==="automation"?(i(),m(T,{key:0,campaignId:p.value,profileId:r(_).profile_id},null,8,["campaignId","profileId"])):u("",!0)]),_:1}),s(n,{label:"广告位",name:"placement"},{default:l(()=>[o.value==="placement"?(i(),m(C,{key:0,campaignId:p.value},null,8,["campaignId"])):u("",!0)]),_:1}),s(n,{label:"否定投放",name:"negative"},{default:l(()=>[G(" 否定投放 ")]),_:1})]),_:1},8,["modelValue"])])}}});export{Oa as default};
