import{a as y,B as C,b as x}from"./index.373e4c1e.js";import"./elementPlus.c5b0e04f.js";import{g as B,a as V,c as D}from"./crud.67e1c082.js";import R from"./dataTendency.8b63de20.js";import{d as b,al as k,r as c,j as G,w as $,a9 as p,o as q,E as I,G as r,M as s,a2 as P,a0 as j,u as a,t as E,a as m,B as L}from"./vue.65d9dadc.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.0c3456ea.js";import{BaseColumn as N}from"./commonTabColumn.a4869ec6.js";import{D as O}from"./index.74ced524.js";const T=m("span",null,"数据对比 ",-1),W=b({__name:"index",props:{adGroupId:{}},setup(f){const i=f,_=y(),{dateRange:o}=k(_),n=c(!1),l=c({adGroupId:i.adGroupId,dateRange:o}),{crudBinding:v,crudRef:h,crudExpose:d}=C({createCrudOptions:D,context:l});return G(()=>{d.doRefresh()}),$(l,async()=>{d.doRefresh()},{deep:!0}),(U,t)=>{const g=p("el-switch"),w=p("fs-crud");return q(),I(a(x),{class:"fs-page-custom"},{default:r(()=>[s(w,L({ref_key:"crudRef",ref:h},a(v)),P({"search-left":r(()=>[s(M,{modelValue:a(o),"onUpdate:modelValue":t[0]||(t[0]=e=>E(o)?o.value=e:null)},null,8,["modelValue"])]),"header-middle":r(()=>[s(R,{query:l.value,"fetch-card":a(B),"fetch-line":a(V)},null,8,["query","fetch-card","fetch-line"])]),"toolbar-left":r(()=>[m("div",null,[T,s(g,{modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=e=>n.value=e),size:"small"},null,8,["modelValue"])])]),_:2},[j(Object.keys(a(N)),e=>({name:`cell_${e}`,fn:r(u=>[s(O,{field:e,value:u.row[e],"prev-val":u.row[`prev${e}`],"gap-val":u.row[`gap${e}`],"date-range":a(o),"show-compare":n.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});export{W as _};
