import{a as V,B,b as D}from"./index.0d411246.js";import"./elementPlus.0e5067e4.js";import{createCrudOptions as k}from"./crud.8617e893.js";import{BaseColumn as R}from"./commonTabColumn.9973d424.js";import{d as S,al as E,r as m,j as L,w as N,a9 as c,o as q,E as G,G as a,M as o,a2 as T,a0 as $,u as t,t as M,a as s,K as f,L as v,B as P,aq as j,ar as A}from"./vue.3f733908.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang.d1494dfe.js";import{g as U,a as z}from"./api.1e7d3b8a.js";import{D as K}from"./index.1c622692.js";import F from"./dataTendency.fe148213.js";import{_ as H}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.b537673d.js";import"./index.69303a66.js";import"./index.8a84e60c.js";const _=r=>(j("data-v-c2b5bea6"),r=r(),A(),r),J={class:"campare-switch"},Q=_(()=>s("span",null,"数据对比 ",-1)),W=_(()=>s("br",null,null,-1)),X=_(()=>s("span",{style:{color:"rgb(109, 119, 132)"}},"ASIN: ",-1)),Y={style:{color:"rgb(30, 33, 40)"}},Z=S({__name:"index",props:{adGroupId:{}},setup(r){const h=r,g=V(),{dateRange:l}=E(g),p=m({adGroupId:h.adGroupId,dateRange:l}),{crudBinding:w,crudRef:b,crudExpose:i}=B({createCrudOptions:k,context:p}),d=m(!1);return L(async()=>{i.doRefresh()}),N(p,async()=>{i.doRefresh()},{deep:!0}),(ee,n)=>{const y=c("el-switch"),x=c("el-link"),C=c("el-tooltip"),I=c("fs-crud");return q(),G(t(D),{class:"fs-page-custom"},{default:a(()=>[o(I,P({ref_key:"crudRef",ref:b},t(w)),T({"search-left":a(()=>[o(O,{modelValue:t(l),"onUpdate:modelValue":n[0]||(n[0]=e=>M(l)?l.value=e:null)},null,8,["modelValue"])]),"header-middle":a(()=>[o(F,{query:p.value,fetchCard:t(U),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},[$(Object.keys(t(R)),e=>({name:`cell_${e}`,fn:a(u=>[o(K,{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};
