import{d as q,r as v,ak as x,an as $,j as T,a8 as G,o as t,c as m,a,L as i,u as s,M as d,G as e,E as l,J as n,F as c,K as _}from"./vue.95e072e2.js";import{r as V,u as j}from"./index.8a64ecdf.js";import{_ as N}from"./index.vue_vue_type_style_index_0_lang.bcf3d26d.js";import{_ as B}from"./index.vue_vue_type_script_setup_true_lang.e9d4ad94.js";import{_ as C}from"./index.vue_vue_type_script_setup_true_lang.3fa03d1f.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.eda82d2b.js";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang.f80d8ef5.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang.87bb7157.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.f176d623.js";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang.9a5d1155.js";import"./elementPlus.58179425.js";import"./echarts.72dc8373.js";import"./crud.fc9cf882.js";import"./commonTabColumn.00155e2b.js";import"./dataTendency.ab62b4f1.js";import"./enum.b537673d.js";import"./index.9f6b84b8.js";import"./index.df979911.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./index.vue_vue_type_script_setup_true_lang.8dd19552.js";import"./index.eed780e8.js";import"./crud.31a4443e.js";import"./crud.e8fb8099.js";import"./crud.26d4003f.js";import"./crud.486c833f.js";import"./crud.5986ae5f.js";import"./crud.efcc3e90.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 u=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(u,{label:"推广商品",name:"adProducts"},{default:e(()=>[r.value==="adProducts"?(t(),l(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(u,{label:"定向",name:"tab2"},{default:e(()=>[r.value==="tab2"?(t(),l(P,{key:0,adGroupId:s(o).query.adGroupId},{default:e(()=>[_("定向")]),_:1},8,["adGroupId"])):n("",!0)]),_:1}),d(u,{label:"否定投放",name:"tab3"},{default:e(()=>[r.value==="tab3"?(t(),l(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(u,{label:"商品投放",name:"tab2"},{default:e(()=>[r.value==="tab2"?(t(),l(w,{key:0,adGroupId:s(o).query.adGroupId},{default:e(()=>[_("商品投放")]),_:1},8,["adGroupId"])):n("",!0)]),_:1}),d(u,{label:"否定商品",name:"tab3"},{default:e(()=>[r.value==="tab3"?(t(),l(D,{key:0,adGroupId:s(o).query.adGroupId},{default:e(()=>[_("否定商品")]),_:1},8,["adGroupId"])):n("",!0)]),_:1})],64)):(t(),m(c,{key:2},[d(u,{label:"关键词",name:"tab2"},{default:e(()=>[r.value==="tab2"?(t(),l(C,{key:0,"ad-group-id":s(o).query.adGroupId},{default:e(()=>[_("关键词")]),_:1},8,["ad-group-id"])):n("",!0)]),_:1}),d(u,{label:"否定词",name:"tab3"},{default:e(()=>[r.value==="tab3"?(t(),l(E,{key:0,"ad-group-id":s(o).query.adGroupId},{default:e(()=>[_("否定词")]),_:1},8,["ad-group-id"])):n("",!0)]),_:1})],64)),d(u,{label:"搜索关键词",name:"searchTerm"},{default:e(()=>[r.value==="searchTerm"?(t(),l(B,{key:0,adGroupId:s(o).query.adGroupId},null,8,["adGroupId"])):n("",!0)]),_:1})]),_:1},8,["modelValue"])])}}});export{xa as default};
