import{d as q,r as v,al as k,ao as T,j as S,a9 as c,o,c as h,a,L as m,M as l,G as e,K as p,u as s,E as u,J as _,F as V,aq as j,ar as N}from"./vue.3f733908.js";import{r as w,u as B}from"./index.0d411246.js";import{_ as C}from"./index.vue_vue_type_style_index_0_lang.93f8f9aa.js";import E from"./index.774dfc53.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang.258ef0cb.js";import M from"./index.b9635c9c.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.d12881db.js";import{q as z,t as F}from"./enum.b537673d.js";import{_ as R}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.0e5067e4.js";import"./echarts.72dc8373.js";import"./crud.39976736.js";import"./api.1e7d3b8a.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.63e8ae7f.js";import"./crud.e0a36898.js";import"./api.e3891d23.js";import"./crud.8617e893.js";import"./dataTendency.fe148213.js";import"./crud.c0e263a7.js";const A="/api/ad_manage/sbgroupdetail/";function J(n){return w({url:A+"head/",method:"get",params:{adGroupId:n}})}const f=n=>(j("data-v-199125f6"),n=n(),N(),n),K={class:"asj-container"},L={class:"asj-detail-header"},O={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},P={class:"asj-detail-info"},U=f(()=>a("span",{style:{color:"rgb(177, 177, 177)"}},"状态: ",-1)),H=f(()=>a("span",{class:"head-span"},"投放类型: ",-1)),Q=f(()=>a("span",{class:"head-span"},"投放日期: ",-1)),W=q({__name:"index",setup(n){const r=v("ads"),g=B();k(g);const t=T(),d=v({});return S(async()=>{const y=await J(t.query.adGroupId);d.value=y.data,console.log(111,t.query)}),(y,b)=>{const I=c("el-button"),i=c("el-tab-pane"),G=c("el-tabs");return o(),h("div",K,[a("div",L,[a("span",O,[a("span",null,m(d.value.adGroupName),1)]),a("div",P,[U,a("span",null,[l(I,{class:"no-hover-effect",type:"success",size:"small",round:"",plain:""},{default:e(()=>[p(m(s(z)[d.value.state]),1)]),_:1})]),H,p(),a("span",null,m(s(F)[d.value.creative_type]),1),Q,p(),a("span",null,m(d.value.startDate)+" ~ "+m(d.value.endDate??"无结束日期"),1)])]),l(G,{type:"border-card",class:"asj-detail-tabs",modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=x=>r.value=x)},{default:e(()=>[l(i,{label:"广告",name:"ads"},{default:e(()=>[r.value==="ads"?(o(),u(C,{key:0,adGroupId:s(t).query.adGroupId},null,8,["adGroupId"])):_("",!0)]),_:1}),s(t).query.targetingType==="target"?(o(),u(i,{key:0,label:"商品投放",name:"tab2"},{default:e(()=>[r.value==="tab2"?(o(),u(M,{key:0,adGroupId:s(t).query.adGroupId},{default:e(()=>[p("商品投放")]),_:1},8,["adGroupId"])):_("",!0)]),_:1})):(o(),h(V,{key:1},[l(i,{label:"关键词",name:"tab2"},{default:e(()=>[r.value==="tab2"?(o(),u(D,{key:0,"ad-group-id":s(t).query.adGroupId},{default:e(()=>[p("关键词")]),_:1},8,["ad-group-id"])):_("",!0)]),_:1}),l(i,{label:"否定词",name:"tab3"},{default:e(()=>[r.value==="tab3"?(o(),u($,{key:0,"ad-group-id":s(t).query.adGroupId},{default:e(()=>[p("否定词")]),_:1},8,["ad-group-id"])):_("",!0)]),_:1}),l(i,{label:"搜索关键词",name:"searchTerm"},{default:e(()=>[r.value==="searchTerm"?(o(),u(E,{key:0,adGroupId:s(t).query.adGroupId},null,8,["adGroupId"])):_("",!0)]),_:1})],64))]),_:1},8,["modelValue"])])}}});const Ge=R(W,[["__scopeId","data-v-199125f6"]]);export{Ge as default};
