import{d as V,ay as j,aD as B,r as d,j as S,ai as c,o as p,c as E,a,T as t,U as s,O as n,S as h,u as o,M as m,R as u}from"./vue.adf17aba.js";import{_ as q}from"./index.vue_vue_type_script_setup_true_lang.cc3693c7.js";import C from"./index.cf91ad39.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang.e4302b57.js";import G from"./index.b94860a2.js";import{r as R,u as w,Q as A,R as M}from"./index.ad3efb29.js";import{q as I,u as O,f as P}from"./enum.e566fd6e.js";import"./elementPlus.4833989a.js";import"./crud.13ad7163.js";import"./commonTabColumn.c5d53eee.js";import"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import"./dataTendency.69ca86c9.js";import"./echarts.72dc8373.js";import"./index.7f1f4491.js";import"./index.05a2d588.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./crud.10390eef.js";import"./index.04a874bc.js";import"./crud.40aed956.js";import"./api.e0bbb340.js";import"./lineChart.vue_vue_type_script_setup_true_lang.49a9710a.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"./timer-budget.94f7db72.js";import"./index.7831ce6d.js";import"./index.ec96ead5.js";import"./switch-campaign.cb5f0639.js";import"./index.fdb4f26c.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";import"./search-term.vue_vue_type_script_setup_true_lang.db5ad1a7.js";import"./search-term-add.3506ccf0.js";import"./index.vue_vue_type_script_setup_true_lang.b7a88915.js";import"./search-term-bid.cef6800d.js";import"./st-bid-input.2092702d.js";import"./neg-keyword.vue_vue_type_script_setup_true_lang.cd2eacf5.js";const U="/api/ad_manage/spcampaigndetail/";function $(_){return R({url:U+"head/",method:"get",params:{campaignId:_}})}const z={class:"asj-container"},L={class:"asj-detail-header"},Q={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},F={class:"asj-detail-info"},H=a("span",{class:"label"},"状态: ",-1),J=a("span",{class:"label"},"预算：",-1),K={class:"value"},W=a("span",{class:"label"},"投放类型：",-1),X={class:"value"},Y=a("span",{class:"label"},"投放日期：",-1),Z={class:"value"},aa=a("span",{class:"label"},"广告组合：",-1),ea={class:"value"},ta=a("span",{class:"label"},"竞价策略：",-1),oa={class:"value"},Ya=V({__name:"index",setup(_){const T=w(),{profile:g}=j(T),v=B(),e=d({}),l=d("adGroup"),r=d(v.query.campaignId);return S(async()=>{const f=await $(v.query.campaignId);e.value=f.data}),(f,y)=>{var b;const x=c("el-tag"),i=c("el-tab-pane"),k=c("el-tabs");return p(),E("div",z,[a("div",L,[a("span",Q,[a("span",null,t(e.value.campaignName),1)]),a("div",F,[a("div",null,[H,s(x,{type:o(A)(e.value.state)},{default:n(()=>[h(t(o(I)[e.value.state]),1)]),_:1},8,["type"])]),a("div",null,[J,a("span",K,t(o(g).currency_symbol+e.value.budget)+" | "+t(o(I)[e.value.budgetType]),1)]),a("div",null,[W,a("span",X,t(o(O)[e.value.targetingType]),1)]),a("div",null,[Y,a("span",Z,t(e.value.startDate)+" ~ "+t(e.value.endDate??"无结束日期"),1)]),a("div",null,[aa,a("span",ea,t(((b=e.value)==null?void 0:b.portfolioName)||"--"),1)]),a("div",null,[ta,a("span",oa,t(o(M)(o(P),e.value.dynBidStrategy)),1)])])]),s(k,{modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=N=>l.value=N),class:"asj-detail-tabs",type:"border-card"},{default:n(()=>[s(i,{label:"广告组",name:"adGroup"},{default:n(()=>[l.value==="adGroup"?(p(),m(q,{key:0,campaignId:r.value},null,8,["campaignId"])):u("",!0)]),_:1}),s(i,{label:"预算",name:"budget"},{default:n(()=>[l.value==="budget"?(p(),m(D,{key:0,campaignId:r.value},null,8,["campaignId"])):u("",!0)]),_:1}),s(i,{label:"自动化",name:"automation"},{default:n(()=>[l.value==="automation"?(p(),m(G,{key:0,campaignId:r.value,profileId:o(g).profile_id,targetingType:e.value.targetingType},null,8,["campaignId","profileId","targetingType"])):u("",!0)]),_:1}),s(i,{label:"广告位",name:"placement"},{default:n(()=>[l.value==="placement"?(p(),m(C,{key:0,campaignId:r.value},null,8,["campaignId"])):u("",!0)]),_:1}),s(i,{label:"否定投放",name:"negative"},{default:n(()=>[h(" 否定投放 ")]),_:1})]),_:1},8,["modelValue"])])}}});export{Ya as default};
