import{d as k,r as v,ay as q,aD as T,j as S,ai as c,o,c as h,a,T as m,U as p,O as e,S as u,u as s,M as l,R as _,F as V,aF as j,aG as N}from"./vue.adf17aba.js";import{r as w,u as B}from"./index.ad3efb29.js";import{_ as C}from"./index.vue_vue_type_style_index_0_lang.5de0d656.js";import D from"./index.51a7df0b.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.1e490161.js";import F from"./index.d04f1b36.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.96ef0558.js";import{q as R,t as $}from"./enum.e566fd6e.js";import{_ as z}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";import"./crud.3a9828e0.js";import"./api.c1e653d0.js";import"./commonTabColumn.c5d53eee.js";import"./dataTendency.69ca86c9.js";import"./index.7f1f4491.js";import"./index.05a2d588.js";import"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import"./index.04a874bc.js";import"./crud.2b2f9e36.js";import"./crud.8ca73b35.js";import"./api.078a5dae.js";import"./crud.767d584c.js";import"./dataTendency.8fe14a29.js";import"./crud.9ba71e49.js";const O="/api/ad_manage/sbgroupdetail/";function U(n){return w({url:O+"head/",method:"get",params:{adGroupId:n}})}const f=n=>(j("data-v-199125f6"),n=n(),N(),n),A={class:"asj-container"},P={class:"asj-detail-header"},H={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},J={class:"asj-detail-info"},K=f(()=>a("span",{style:{color:"rgb(177, 177, 177)"}},"状态: ",-1)),L=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 U(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",A,[a("div",P,[a("span",H,[a("span",null,m(d.value.adGroupName),1)]),a("div",J,[K,a("span",null,[p(I,{class:"no-hover-effect",type:"success",size:"small",round:"",plain:""},{default:e(()=>[u(m(s(R)[d.value.state]),1)]),_:1})]),L,u(),a("span",null,m(s($)[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(F,{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(E,{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(M,{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(D,{key:0,adGroupId:s(t).query.adGroupId},null,8,["adGroupId"])):_("",!0)]),_:1})],64))]),_:1},8,["modelValue"])])}}});const Ge=z(W,[["__scopeId","data-v-199125f6"]]);export{Ge as default};
