import{r as d,d as N,ay as g,G as _,A,ai as n,o as f,c as y,a,U as t,O as p,u as e,F as b,a8 as E,M as P,S as q,T as G,J as M,aF as R,aG as U}from"./vue.adf17aba.js";import{k as W,l as z,m as J,n as K}from"./api.ac18b8be.js";import{_ as O}from"./DataTable.vue_vue_type_script_setup_true_lang.9d0799a8.js";import $ from"./index.4c0d643f.js";import j from"./ProductDialog.2dc37c58.js";import H from"./ProductSelectCard.ffc7bf1e.js";import Q from"./TopFilter.451abd79.js";import{p as X}from"./enum.5c541b34.js";import{u as Y,a as Z}from"./index.ad3efb29.js";import{e as u}from"./emitter.bff31cdd.js";import{_ as tt}from"./_plugin-vue_export-helper.c27b6911.js";import"./DataTableCell.65385908.js";import"./DataTableCellFooter.03632069.js";import"./echarts.72dc8373.js";import"./index.7efe6888.js";import"./mCard.49b5181b.js";import"./index.05a2d588.js";import"./elementPlus.4833989a.js";import"./enum.e566fd6e.js";import"./ProductDialogList.a36b09db.js";import"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";function et(){const o=["产品线","父ASIN","ASIN","SKU"],s=d("产品线"),r={color:"#3a83f7",backgroundColor:"#ebeef5"};function m(c){s.value=c}return{buttons:o,activeButton:s,activeStyle:r,handleClickBtn:m}}const ot=o=>(R("data-v-239d6437"),o=o(),U(),o),nt={class:"outer-container"},at={class:"table-tips"},st=ot(()=>a("p",{class:"prompt-words"},"商品中心广告数据统计不包含SB广告",-1)),rt={class:"pl-and-asin-tables"},ct={class:"asin-table-container"},it={class:"xp-radio-group-wrapper"},lt=N({__name:"index",setup(o){const s=d("ALL");u.on("TopFilters-selectValue",i=>{s.value=i.selectValue});const r=d("");u.on("TopFilters-searchItem",i=>{r.value=i.searchItem});const m=Y(),{profile:c}=g(m),x=Z(),{dateRange:h}=g(x),C=d({profileId:c.value.profile_id,dateRange:h,productlineId:s,searchItem:r});_("dateRange",h),_("profile",c);const{buttons:k,activeButton:v,activeStyle:S,handleClickBtn:I}=et();_("activeButton",v);function B(){u.emit("open-productLine-dialog",{isVisible:!0})}return A(()=>{u.all.clear()}),(i,pt)=>{const L=n("Warning"),D=n("el-icon"),T=n("el-card"),w=n("vxe-button"),F=n("el-button"),V=n("el-button-group");return f(),y(b,null,[a("div",nt,[t(Q),a("div",at,[t(D,null,{default:p(()=>[t(L)]),_:1}),st]),t(T,null,{default:p(()=>[t($,{metricEnum:e(X),query:C.value,fetchCard:e(W),fetchLine:e(z),"fetch-line-month":e(J),"fetch-line-week":e(K)},null,8,["metricEnum","query","fetchCard","fetchLine","fetch-line-month","fetch-line-week"])]),_:1})]),t(H),a("div",rt,[a("div",ct,[t(w,{class:"custom-button",type:"text",status:"primary",content:"创建产品线",icon:"vxe-icon-add",onClick:B}),a("div",it,[t(V,null,{default:p(()=>[(f(!0),y(b,null,E(e(k),l=>(f(),P(F,{bg:"",text:"",key:l,style:M(e(v)===l?e(S):{}),onClick:()=>e(I)(l)},{default:p(()=>[q(G(l),1)]),_:2},1032,["style","onClick"]))),128))]),_:1})]),t(O)])]),t(j)],64)}}});const Vt=tt(lt,[["__scopeId","data-v-239d6437"]]);export{Vt as default};
