import{a as I,B as V,b as S}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{createCrudOptions as k}from"./crud.767d584c.js";import{BaseColumn as B}from"./commonTabColumn.c5d53eee.js";import{d as R,ay as N,r as m,j as T,w as E,ai as c,o as G,M as L,O as a,U as o,aa as $,a8 as q,u as t,D as M,a as s,S as f,T as v,K as O,aF as P,aG as U}from"./vue.adf17aba.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import{g as A,a as z}from"./api.c1e653d0.js";import{D as F}from"./index.04a874bc.js";import K from"./dataTendency.8fe14a29.js";import{_ as H}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.e566fd6e.js";import"./index.7f1f4491.js";import"./index.05a2d588.js";const i=r=>(P("data-v-c2b5bea6"),r=r(),U(),r),J={class:"campare-switch"},Q=i(()=>s("span",null,"数据对比 ",-1)),W=i(()=>s("br",null,null,-1)),X=i(()=>s("span",{style:{color:"rgb(109, 119, 132)"}},"ASIN: ",-1)),Y={style:{color:"rgb(30, 33, 40)"}},Z=R({__name:"index",props:{adGroupId:{}},setup(r){const h=r,g=I(),{dateRange:l}=N(g),p=m({adGroupId:h.adGroupId,dateRange:l}),{crudBinding:w,crudRef:b,crudExpose:_}=V({createCrudOptions:k,context:p}),d=m(!1);return T(async()=>{_.doRefresh()}),E(p,async()=>{_.doRefresh()},{deep:!0}),(ee,n)=>{const y=c("el-switch"),x=c("el-link"),C=c("el-tooltip"),D=c("fs-crud");return G(),L(t(S),{class:"fs-page-custom"},{default:a(()=>[o(D,O({ref_key:"crudRef",ref:b},t(w)),$({"search-left":a(()=>[o(j,{modelValue:t(l),"onUpdate:modelValue":n[0]||(n[0]=e=>M(l)?l.value=e:null)},null,8,["modelValue"])]),"header-middle":a(()=>[o(K,{query:p.value,fetchCard:t(A),fetchLine:t(z)},null,8,["query","fetchCard","fetchLine"])]),"toolbar-left":a(()=>[s("div",J,[Q,o(y,{modelValue:d.value,"onUpdate:modelValue":n[1]||(n[1]=e=>d.value=e),size:"small"},null,8,["modelValue"])])]),cell_resolvedExpression_value:a(e=>[o(C,{effect:"dark",content:e.row.resolvedExpression_value,placement:"top"},{default:a(()=>[s("div",null,[o(x,{underline:!1,style:{color:"rgb(30, 33, 40)"}},{default:a(()=>[f(v(e.row.resolvedExpression_value),1)]),_:2},1024),W,X,f(),s("span",Y,v(e.row.ASIN),1)])]),_:2},1032,["content"])]),_:2},[q(Object.keys(t(B)),e=>({name:`cell_${e}`,fn:a(u=>[o(F,{field:e,value:u.row[e],"prev-val":u.row[`prev${e}`],"gap-val":u.row[`gap${e}`],"date-range":t(l),"show-compare":d.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const fe=H(Z,[["__scopeId","data-v-c2b5bea6"]]);export{fe as default};
