import{d as q,r as v,ay as $,aD as x,j as N,ai as G,o as t,c as _,a as e,T as i,u as r,U as d,O as a,M as l,R as n,F as f,S as m}from"./vue.adf17aba.js";import{r as T,u as V}from"./index.ad3efb29.js";import{_ as j}from"./index.vue_vue_type_style_index_0_lang.39f8005f.js";import{_ as B}from"./index.vue_vue_type_script_setup_true_lang.aacd7231.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.b465eae7.js";import{_ as C}from"./index.vue_vue_type_script_setup_true_lang.c470f5b2.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang.790da6ad.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang.0e443abe.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.30c17b72.js";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang.161f4d8f.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.d42cec5a.js";import{_ as R}from"./index.vue_vue_type_script_setup_true_lang.f5b9f2f6.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";import"./crud.fd0cac9e.js";import"./commonTabColumn.c5d53eee.js";import"./dataTendency.69ca86c9.js";import"./enum.e566fd6e.js";import"./index.7f1f4491.js";import"./index.05a2d588.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import"./index.04a874bc.js";import"./crud.453a093e.js";import"./crud.6643577e.js";import"./crud.00530f08.js";import"./crud.021396ff.js";import"./crud.1f86522c.js";import"./crud.c21c3743.js";import"./crud.5780c3a9.js";import"./crud.600e8dec.js";const F="/api/ad_manage/spgroupdetail/";function M(b){return T({url:F+"head/",method:"get",params:{adGroupId:b}})}const O={class:"asj-container"},U={class:"asj-detail-header"},z={style:{"font-size":"x-large","font-weight":"bold",color:"#0f1111",margin:"5px"}},E={class:"asj-detail-info"},H=e("span",{class:"label"},"状态：",-1),J={class:"value"},K=e("span",{class:"label"},"投放类型：",-1),L={class:"value"},Q=e("span",{class:"label"},"默认竞价：",-1),X={class:"value"},Y=e("span",{class:"label"},"投放日期：",-1),Z={class:"value"},Ba=q({__name:"index",setup(b){const s=v("adProducts"),I=V(),{profile:h}=$(I),o=x(),p=v({});return N(async()=>{const c=await M(o.query.adGroupId);console.log("(index.vue: 89)=> resp",c),p.value=c.data}),(c,y)=>{const u=G("el-tab-pane"),g=G("el-tabs");return t(),_("div",O,[e("div",U,[e("span",z,[e("span",null,i(p.value.adGroupName),1)]),e("div",E,[e("div",null,[H,e("span",J,i(p.value.state),1)]),e("div",null,[K,e("span",L,i(p.value.targetingType),1)]),e("div",null,[Q,e("span",X,i(r(h).currency_symbol+p.value.defaultBid),1)]),e("div",null,[Y,e("span",Z,i(p.value.startDate)+" ~ "+i(p.value.endDate??"无结束日期"),1)])])]),d(g,{type:"border-card",class:"asj-detail-tabs",modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=k=>s.value=k)},{default:a(()=>[d(u,{label:"推广商品",name:"adProducts"},{default:a(()=>[s.value==="adProducts"?(t(),l(j,{key:0,adGroupId:r(o).query.adGroupId},null,8,["adGroupId"])):n("",!0)]),_:1}),r(o).query.targetingType==="automatic"?(t(),_(f,{key:0},[d(u,{label:"定向",name:"tab2"},{default:a(()=>[s.value==="tab2"?(t(),l(C,{key:0,adGroupId:r(o).query.adGroupId},{default:a(()=>[m("定向")]),_:1},8,["adGroupId"])):n("",!0)]),_:1}),d(u,{label:"否定投放",name:"tab3"},{default:a(()=>[s.value==="tab3"?(t(),l(w,{key:0,adGroupId:r(o).query.adGroupId},{default:a(()=>[m("否定投放")]),_:1},8,["adGroupId"])):n("",!0)]),_:1})],64)):r(o).query.targetingType==="product"?(t(),_(f,{key:1},[d(u,{label:"商品投放",name:"tab2"},{default:a(()=>[s.value==="tab2"?(t(),l(D,{key:0,adGroupId:r(o).query.adGroupId},{default:a(()=>[m("商品投放")]),_:1},8,["adGroupId"])):n("",!0)]),_:1}),d(u,{label:"否定商品",name:"tab3"},{default:a(()=>[s.value==="tab3"?(t(),l(P,{key:0,adGroupId:r(o).query.adGroupId},{default:a(()=>[m("否定商品")]),_:1},8,["adGroupId"])):n("",!0)]),_:1}),d(u,{label:"ASIN跑词",name:"asinWord"},{default:a(()=>[s.value==="asinWord"?(t(),l(A,{key:0,adGroupId:r(o).query.adGroupId},null,8,["adGroupId"])):n("",!0)]),_:1}),d(u,{label:"ASIN跑词(词组)",name:"asinWordGroup"},{default:a(()=>[s.value==="asinWordGroup"?(t(),l(R,{key:0,adGroupId:r(o).query.adGroupId},null,8,["adGroupId"])):n("",!0)]),_:1})],64)):(t(),_(f,{key:2},[d(u,{label:"关键词",name:"tab2"},{default:a(()=>[s.value==="tab2"?(t(),l(S,{key:0,"ad-group-id":r(o).query.adGroupId},{default:a(()=>[m("关键词")]),_:1},8,["ad-group-id"])):n("",!0)]),_:1}),d(u,{label:"否定词",name:"tab3"},{default:a(()=>[s.value==="tab3"?(t(),l(W,{key:0,"ad-group-id":r(o).query.adGroupId},{default:a(()=>[m("否定词")]),_:1},8,["ad-group-id"])):n("",!0)]),_:1})],64)),d(u,{label:"搜索关键词",name:"searchTerm"},{default:a(()=>[s.value==="searchTerm"?(t(),l(B,{key:0,adGroupId:r(o).query.adGroupId},null,8,["adGroupId"])):n("",!0)]),_:1})]),_:1},8,["modelValue"])])}}});export{Ba as default};
