import{d as k,r as v,ak as q,an as T,j as S,a8 as c,o,c as h,a,L as m,M as p,G as e,K as u,u as s,E as l,J as _,F as V,ap as j,aq as N}from"./vue.95e072e2.js";import{r as w,u as B}from"./index.8a64ecdf.js";import{_ as C}from"./index.vue_vue_type_style_index_0_lang.c27c95cb.js";import E from"./index.5c7789ac.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang.1d5a91c6.js";import M from"./index.b0869b1b.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_lang.15e0c9e4.js";import{q as z,t as F}from"./enum.b537673d.js";import{_ as R}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.58179425.js";import"./echarts.72dc8373.js";import"./crud.fda70839.js";import"./api.e590cda3.js";import"./commonTabColumn.00155e2b.js";import"./dataTendency.ab62b4f1.js";import"./index.9f6b84b8.js";import"./index.df979911.js";import"./index.vue_vue_type_script_setup_true_lang.8dd19552.js";import"./index.eed780e8.js";import"./crud.21850c18.js";import"./crud.16414c1b.js";import"./api.c6c7e287.js";import"./crud.56015389.js";import"./dataTendency.77bf4b7b.js";import"./crud.b9fb224f.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=k({__name:"index",setup(n){const r=v("ads"),g=B();q(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,[p(I,{class:"no-hover-effect",type:"success",size:"small",round:"",plain:""},{default:e(()=>[u(m(s(z)[d.value.state]),1)]),_:1})]),H,u(),a("span",null,m(s(F)[d.value.creative_type]),1),Q,u(),a("span",null,m(d.value.startDate)+" ~ "+m(d.value.endDate??"无结束日期"),1)])]),p(G,{type:"border-card",class:"asj-detail-tabs",modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=x=>r.value=x)},{default:e(()=>[p(i,{label:"广告",name:"ads"},{default:e(()=>[r.value==="ads"?(o(),l(C,{key:0,adGroupId:s(t).query.adGroupId},null,8,["adGroupId"])):_("",!0)]),_:1}),s(t).query.targetingType==="target"?(o(),l(i,{key:0,label:"商品投放",name:"tab2"},{default:e(()=>[r.value==="tab2"?(o(),l(M,{key:0,adGroupId:s(t).query.adGroupId},{default:e(()=>[u("商品投放")]),_:1},8,["adGroupId"])):_("",!0)]),_:1})):(o(),h(V,{key:1},[p(i,{label:"关键词",name:"tab2"},{default:e(()=>[r.value==="tab2"?(o(),l(D,{key:0,"ad-group-id":s(t).query.adGroupId},{default:e(()=>[u("关键词")]),_:1},8,["ad-group-id"])):_("",!0)]),_:1}),p(i,{label:"否定词",name:"tab3"},{default:e(()=>[r.value==="tab3"?(o(),l($,{key:0,"ad-group-id":s(t).query.adGroupId},{default:e(()=>[u("否定词")]),_:1},8,["ad-group-id"])):_("",!0)]),_:1}),p(i,{label:"搜索关键词",name:"searchTerm"},{default:e(()=>[r.value==="searchTerm"?(o(),l(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};
