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.6daa721c.js";import{r as V,u as j}from"./index.ae7ce77b.js";import{_ as N}from"./index.vue_vue_type_style_index_0_lang.6e4a523d.js";import{_ as B}from"./index.vue_vue_type_script_setup_true_lang.d2f5598a.js";import{_ as C}from"./index.vue_vue_type_script_setup_true_lang.3b42bf55.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.29f9f9f8.js";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang.22c3bf2d.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang.b1ef90e5.js";import{_ as E}from"./index.vue_vue_type_script_setup_true_lang.f457eb5f.js";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang.db14999d.js";import"./elementPlus.346c766a.js";import"./echarts.72dc8373.js";import"./crud.c7910ac9.js";import"./commonTabColumn.9307c435.js";import"./dataTendency.14ea91e8.js";import"./enum.b537673d.js";import"./index.c2be63e9.js";import"./index.abe7750b.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./index.vue_vue_type_script_setup_true_lang.c5131d55.js";import"./index.1b30f184.js";import"./crud.bd044920.js";import"./crud.cb54df05.js";import"./crud.beaaa371.js";import"./crud.f1b29f7a.js";import"./crud.ffc767e6.js";import"./crud.9772b65a.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};
