import{d as k,al as N,ao as V,r as d,j,a9 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.65d9dadc.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.61f88318.js";import C from"./index.b407c158.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.9902e8ea.js";import T from"./index.bdfb5597.js";import{r as q,u as w,Q as D}from"./index.373e4c1e.js";import{f as A}from"./enum.b537673d.js";import"./elementPlus.c5b0e04f.js";import"./crud.edc41ede.js";import"./commonTabColumn.a4869ec6.js";import"./index.vue_vue_type_script_setup_true_lang.0c3456ea.js";import"./dataTendency.8b63de20.js";import"./echarts.72dc8373.js";import"./index.78cddcae.js";import"./index.4dc9403e.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./crud.c8e287ea.js";import"./index.74ced524.js";import"./crud.54fd9f59.js";import"./api.fce8b0a5.js";import"./lineChart.vue_vue_type_script_setup_true_lang.7ea69939.js";import"./timer-bid.fe04b23f.js";import"./index.7bd36d79.js";import"./select-tmpl.7bb8ee31.js";import"./api.c8bd63ae.js";import"./common.c6665d9b.js";import"./save-rule-dialog.8623428c.js";import"./timer-budget.9445b87a.js";import"./index.c3e189c9.js";import"./index.fef63074.js";import"./switch-campaign.1ab55bbb.js";import"./index.44f904b6.js";import"./freq-setting.81b68f58.js";import"./enum.cd3ef671.js";import"./target-rule.f0ceb215.js";import"./target-select.1f664cf4.js";import"./index.vue_vue_type_script_setup_true_lang.f2d7f4a8.js";import"./target-rule-setting.069c0def.js";import"./search-term.vue_vue_type_script_setup_true_lang.7d9e038d.js";import"./search-term-add.7762cd1d.js";import"./index.vue_vue_type_script_setup_true_lang.420e7504.js";import"./search-term-bid.76eba3c6.js";import"./st-bid-input.35ed45a9.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.d2e1b173.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};
