import{d as q,r as h,al as V,ao as j,j as N,a9 as f,o as s,c as I,a,L as l,M as u,G as e,K as d,u as r,E as i,J as m,F as S,aq as T,ar as w}from"./vue.3f733908.js";import{r as B,u as C}from"./index.0d411246.js";import D from"./index.6e40cd49.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.4f9e4b6d.js";import M from"./index.1286e520.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.12237371.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.f088ac68.js";import{q as b}from"./enum.b537673d.js";import{_ as z}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.0e5067e4.js";import"./echarts.72dc8373.js";import"./crud.e53e5126.js";import"./commonTabColumn.9973d424.js";import"./dataTendency.dec8f4f1.js";import"./index.69303a66.js";import"./index.8a84e60c.js";import"./index.vue_vue_type_script_setup_true_lang.d1494dfe.js";import"./index.1c622692.js";import"./crud.f51e187f.js";import"./api.e3891d23.js";import"./crud.cdd11463.js";import"./api.1e7d3b8a.js";import"./dataTendency.fe148213.js";import"./crud.d4a844a4.js";import"./index.vue_vue_type_script_setup_true_lang.a4763096.js";import"./crud.37bc8e82.js";const F="/api/ad_manage/sdcampaigns/report/campaign_info";function R(p,t){return B({url:F,method:"get",params:{adGroupId:p,campaignId:t}})}const _=p=>(T("data-v-26e421db"),p=p(),w(),p),A={class:"asj-container"},J={class:"asj-detail-header"},K={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},L={class:"asj-detail-info"},O=_(()=>a("span",{style:{color:"rgb(177, 177, 177)"}},"状态: ",-1)),U=_(()=>a("span",{class:"head-span"},"投放类型：",-1)),H=_(()=>a("span",{class:"head-span"},"投放日期: ",-1)),Q=_(()=>a("span",{class:"head-span"},"针对转化率: ",-1)),W=q({__name:"index",setup(p){const t=h("ads"),g=C();V(g);const n=j(),o=h({});return N(async()=>{const v=await R(n.query.adGroupId,n.query.campaignId);o.value=v.data[0]}),(v,y)=>{const G=f("el-button"),c=f("el-tab-pane"),x=f("el-tabs");return s(),I("div",A,[a("div",J,[a("span",K,[a("span",null,l(o.value.campaignName),1)]),a("div",L,[O,a("span",null,[u(G,{class:"no-hover-effect",type:"success",size:"small",round:"",plain:""},{default:e(()=>[d(l(r(b)[o.value.state]),1)]),_:1})]),U,d(),a("span",null,l(r(b)[o.value.tactic]),1),H,d(),a("span",null,l(o.value.startDate)+" ~ "+l(o.value.endDate??"无结束日期"),1),Q,d(),a("span",null,l(r(b)[o.value.tactic]?"待加入":"--"),1)])]),u(x,{type:"border-card",class:"asj-detail-tabs",modelValue:t.value,"onUpdate:modelValue":y[0]||(y[0]=k=>t.value=k)},{default:e(()=>[u(c,{label:"推广商品",name:"ads"},{default:e(()=>[t.value==="ads"?(s(),i(D,{key:0,adGroupId:r(n).query.adGroupId},null,8,["adGroupId"])):m("",!0)]),_:1}),o.value.tactic==="T00030"?(s(),i(c,{key:0,label:"商品投放",name:"tab2"},{default:e(()=>[t.value==="tab2"?(s(),i(M,{key:0,adGroupId:r(n).query.adGroupId},{default:e(()=>[d("商品投放")]),_:1},8,["adGroupId"])):m("",!0)]),_:1})):(s(),I(S,{key:1},[u(c,{label:"商品投放",name:"tab2"},{default:e(()=>[t.value==="tab2"?(s(),i(E,{key:0,"ad-group-id":r(n).query.adGroupId},{default:e(()=>[d("关键词")]),_:1},8,["ad-group-id"])):m("",!0)]),_:1}),u(c,{label:"分类",name:"tab3"},{default:e(()=>[t.value==="tab3"?(s(),i(P,{key:0,"ad-group-id":r(n).query.adGroupId},{default:e(()=>[d("否定词")]),_:1},8,["ad-group-id"])):m("",!0)]),_:1}),u(c,{label:"否定投放",name:"searchTerm"},{default:e(()=>[t.value==="searchTerm"?(s(),i($,{key:0,adGroupId:r(n).query.adGroupId},null,8,["adGroupId"])):m("",!0)]),_:1})],64))]),_:1},8,["modelValue"])])}}});const xa=z(W,[["__scopeId","data-v-26e421db"]]);export{xa as default};
