import{a as y,B as C,b as x}from"./index.8a64ecdf.js";import"./elementPlus.58179425.js";import{g as B,a as V,c as D}from"./crud.fc9cf882.js";import R from"./dataTendency.ab62b4f1.js";import{d as b,ak as k,r as c,j as $,w as G,a8 as p,o as q,E as I,G as r,M as s,a1 as P,$ as j,u as a,t as E,a as m,B as L}from"./vue.95e072e2.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.8dd19552.js";import{BaseColumn as N}from"./commonTabColumn.00155e2b.js";import{D as O}from"./index.eed780e8.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 $(()=>{d.doRefresh()}),G(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 _};
