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.6daa721c.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.16604f1e.js";import C from"./index.9bd0741d.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.30ce0105.js";import T from"./index.5234d7b1.js";import{r as q,u as w,Q as D}from"./index.ae7ce77b.js";import{f as A}from"./enum.b537673d.js";import"./elementPlus.346c766a.js";import"./crud.881eb91c.js";import"./commonTabColumn.9307c435.js";import"./index.vue_vue_type_script_setup_true_lang.c5131d55.js";import"./dataTendency.14ea91e8.js";import"./echarts.72dc8373.js";import"./index.c2be63e9.js";import"./index.abe7750b.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./crud.3f3f11d5.js";import"./index.1b30f184.js";import"./crud.1ee04132.js";import"./api.b1000629.js";import"./lineChart.vue_vue_type_script_setup_true_lang.d9fd86cd.js";import"./timer-bid.d08732c2.js";import"./index.940e497f.js";import"./select-tmpl.c030a538.js";import"./api.d8e37c07.js";import"./common.398ceae3.js";import"./save-rule-dialog.45f1312e.js";import"./timer-budget.6b98a561.js";import"./index.5f7471ae.js";import"./index.007fb7b0.js";import"./switch-campaign.eaae959c.js";import"./index.d32a0333.js";import"./freq-setting.2f72d98d.js";import"./enum.cd3ef671.js";import"./target-rule.36e65ab3.js";import"./target-select.59ace4e8.js";import"./index.vue_vue_type_script_setup_true_lang.a95c9ee1.js";import"./target-rule-setting.667bb139.js";import"./search-term.vue_vue_type_script_setup_true_lang.f2d9435f.js";import"./search-term-add.6bb4bd7e.js";import"./index.vue_vue_type_script_setup_true_lang.ed5de1fc.js";import"./search-term-bid.437a6a3f.js";import"./st-bid-input.6972d65a.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.8dab3bee.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};
