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.3f733908.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.ddb0b551.js";import C from"./index.95ba7ebd.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.8d441548.js";import T from"./index.437f2e85.js";import{r as q,u as w,Q as D}from"./index.0d411246.js";import{f as A}from"./enum.b537673d.js";import"./elementPlus.0e5067e4.js";import"./crud.7f842a87.js";import"./commonTabColumn.9973d424.js";import"./index.vue_vue_type_script_setup_true_lang.d1494dfe.js";import"./dataTendency.dec8f4f1.js";import"./echarts.72dc8373.js";import"./index.69303a66.js";import"./index.8a84e60c.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./crud.b20f6078.js";import"./index.1c622692.js";import"./crud.1fe6c821.js";import"./api.6961cda5.js";import"./lineChart.vue_vue_type_script_setup_true_lang.b919c8e8.js";import"./timer-bid.69b19c28.js";import"./index.5140338b.js";import"./select-tmpl.7954c02d.js";import"./api.0c329410.js";import"./common.2084ef18.js";import"./save-rule-dialog.3e2d4102.js";import"./timer-budget.e882cf03.js";import"./index.980be13c.js";import"./index.60fb7205.js";import"./switch-campaign.b03ee3e9.js";import"./index.4ebb480f.js";import"./freq-setting.0ccfd6aa.js";import"./enum.cd3ef671.js";import"./target-rule.aaaff0ac.js";import"./target-select.b83b708a.js";import"./index.vue_vue_type_script_setup_true_lang.20a22637.js";import"./target-rule-setting.cc345aed.js";import"./search-term.vue_vue_type_script_setup_true_lang.d132157a.js";import"./search-term-add.3d455180.js";import"./index.vue_vue_type_script_setup_true_lang.3e623d97.js";import"./search-term-bid.92146657.js";import"./st-bid-input.bb7df39c.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.580bd756.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};
