import{d as q,r as v,al as x,ao as $,j as T,a9 as G,o as t,c as m,a,L as i,u as s,M as d,G as e,E as u,J as n,F as c,K as _}from"./vue.65d9dadc.js";import{r as V,u as j}from"./index.373e4c1e.js";import{_ as N}from"./index.vue_vue_type_style_index_0_lang.bc995fc6.js";import{_ as B}from"./index.vue_vue_type_script_setup_true_lang.90fca1db.js";import{_ as C}from"./index.vue_vue_type_script_setup_true_lang.a3f8c79c.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.8793c56f.js";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang.8bf9b51f.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang.f2cbf200.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.3e961757.js";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang.bb548a23.js";import"./elementPlus.c5b0e04f.js";import"./echarts.72dc8373.js";import"./crud.67e1c082.js";import"./commonTabColumn.a4869ec6.js";import"./dataTendency.8b63de20.js";import"./enum.b537673d.js";import"./index.78cddcae.js";import"./index.4dc9403e.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./index.vue_vue_type_script_setup_true_lang.0c3456ea.js";import"./index.74ced524.js";import"./crud.40afdf42.js";import"./crud.5858204d.js";import"./crud.304b0694.js";import"./crud.d77c10d5.js";import"./crud.ecc93f17.js";import"./crud.d90d90b6.js";const M="/api/ad_manage/spgroupdetail/";function R(f){return V({url:M+"head/",method:"get",params:{adGroupId:f}})}const S={class:"asj-container"},z={class:"asj-detail-header"},A={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},J={class:"asj-detail-info"},K=a("span",{class:"label"},"状态：",-1),L={class:"value"},O=a("span",{class:"label"},"投放类型：",-1),U={class:"value"},H=a("span",{class:"label"},"默认竞价：",-1),Q={class:"value"},W=a("span",{class:"label"},"投放日期：",-1),X={class:"value"},xa=q({__name:"index",setup(f){const r=v("adProducts"),I=j(),{profile:h}=x(I),o=$(),p=v({});return T(async()=>{const b=await R(o.query.adGroupId);p.value=b.data}),(b,y)=>{const l=G("el-tab-pane"),g=G("el-tabs");return t(),m("div",S,[a("div",z,[a("span",A,[a("span",null,i(p.value.adGroupName),1)]),a("div",J,[a("div",null,[K,a("span",L,i(p.value.state),1)]),a("div",null,[O,a("span",U,i(p.value.targetingType),1)]),a("div",null,[H,a("span",Q,i(s(h).currency_symbol+p.value.defaultBid),1)]),a("div",null,[W,a("span",X,i(p.value.startDate)+" ~ "+i(p.value.endDate??"无结束日期"),1)])])]),d(g,{type:"border-card",class:"asj-detail-tabs",modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=k=>r.value=k)},{default:e(()=>[d(l,{label:"推广商品",name:"adProducts"},{default:e(()=>[r.value==="adProducts"?(t(),u(N,{key:0,adGroupId:s(o).query.adGroupId},null,8,["adGroupId"])):n("",!0)]),_:1}),s(o).query.targetingType==="automatic"?(t(),m(c,{key:0},[d(l,{label:"定向",name:"tab2"},{default:e(()=>[r.value==="tab2"?(t(),u(P,{key:0,adGroupId:s(o).query.adGroupId},{default:e(()=>[_("定向")]),_:1},8,["adGroupId"])):n("",!0)]),_:1}),d(l,{label:"否定投放",name:"tab3"},{default:e(()=>[r.value==="tab3"?(t(),u(F,{key:0,adGroupId:s(o).query.adGroupId},{default:e(()=>[_("否定投放")]),_:1},8,["adGroupId"])):n("",!0)]),_:1})],64)):s(o).query.targetingType==="product"?(t(),m(c,{key:1},[d(l,{label:"商品投放",name:"tab2"},{default:e(()=>[r.value==="tab2"?(t(),u(w,{key:0,adGroupId:s(o).query.adGroupId},{default:e(()=>[_("商品投放")]),_:1},8,["adGroupId"])):n("",!0)]),_:1}),d(l,{label:"否定商品",name:"tab3"},{default:e(()=>[r.value==="tab3"?(t(),u(D,{key:0,adGroupId:s(o).query.adGroupId},{default:e(()=>[_("否定商品")]),_:1},8,["adGroupId"])):n("",!0)]),_:1})],64)):(t(),m(c,{key:2},[d(l,{label:"关键词",name:"tab2"},{default:e(()=>[r.value==="tab2"?(t(),u(C,{key:0,"ad-group-id":s(o).query.adGroupId},{default:e(()=>[_("关键词")]),_:1},8,["ad-group-id"])):n("",!0)]),_:1}),d(l,{label:"否定词",name:"tab3"},{default:e(()=>[r.value==="tab3"?(t(),u(E,{key:0,"ad-group-id":s(o).query.adGroupId},{default:e(()=>[_("否定词")]),_:1},8,["ad-group-id"])):n("",!0)]),_:1})],64)),d(l,{label:"搜索关键词",name:"searchTerm"},{default:e(()=>[r.value==="searchTerm"?(t(),u(B,{key:0,adGroupId:s(o).query.adGroupId},null,8,["adGroupId"])):n("",!0)]),_:1})]),_:1},8,["modelValue"])])}}});export{xa as default};
