import{a as x,B as y,b as C}from"./index.ae7ce77b.js";import"./elementPlus.346c766a.js";import{g as B,a as V,c as D}from"./crud.f1d9a93a.js";import I from"./dataTendency.14ea91e8.js";import{d as R,al as b,r as u,j as P,w as k,a9 as m,o as q,E as G,G as s,M as r,a2 as S,a0 as $,u as a,t as j,a as f,B as E,aq as L,ar as M}from"./vue.6daa721c.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.c5131d55.js";import{BaseColumn as O}from"./commonTabColumn.9307c435.js";import{D as T}from"./index.1b30f184.js";import{_ as U}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.b537673d.js";import"./index.c2be63e9.js";import"./index.abe7750b.js";const z=o=>(L("data-v-ff766144"),o=o(),M(),o),A={class:"campare-switch"},F=z(()=>f("span",null,"数据对比",-1)),H=R({__name:"index",props:{adGroupId:{}},setup(o){const i=o,_=x(),{dateRange:t}=b(_),l=u(!1),c=u({adGroupId:i.adGroupId,dateRange:t}),{crudBinding:v,crudRef:h,crudExpose:d}=y({createCrudOptions:D,context:c});return P(()=>{d.doRefresh()}),k(c,async()=>{d.doRefresh()},{deep:!0}),(J,n)=>{const g=m("el-switch"),w=m("fs-crud");return q(),G(a(C),{class:"fs-page-custom"},{default:s(()=>[r(w,E({ref_key:"crudRef",ref:h},a(v)),S({"search-left":s(()=>[r(N,{modelValue:a(t),"onUpdate:modelValue":n[0]||(n[0]=e=>j(t)?t.value=e:null)},null,8,["modelValue"])]),"header-middle":s(()=>[r(I,{query:c.value,"fetch-card":a(B),"fetch-line":a(V)},null,8,["query","fetch-card","fetch-line"])]),"toolbar-left":s(()=>[f("div",A,[F,r(g,{modelValue:l.value,"onUpdate:modelValue":n[1]||(n[1]=e=>l.value=e),size:"small"},null,8,["modelValue"])])]),_:2},[$(Object.keys(a(O)),e=>({name:`cell_${e}`,fn:s(p=>[r(T,{field:e,value:p.row[e],"prev-val":p.row[`prev${e}`],"gap-val":p.row[`gap${e}`],"date-range":a(t),"show-compare":l.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const le=U(H,[["__scopeId","data-v-ff766144"]]);export{le as default};
