import{a as x,B as y,b as C}from"./index.8a64ecdf.js";import"./elementPlus.58179425.js";import{g as B,a as V,c as D}from"./crud.b01b495f.js";import I from"./dataTendency.ab62b4f1.js";import{d as R,ak as b,r as u,j as k,w as P,a8 as m,o as $,E as q,G as s,M as r,a1 as G,$ as S,u as a,t as j,a as f,B as E,ap as L,aq as M}from"./vue.95e072e2.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.8dd19552.js";import{BaseColumn as O}from"./commonTabColumn.00155e2b.js";import{D as T}from"./index.eed780e8.js";import{_ as U}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.b537673d.js";import"./index.9f6b84b8.js";import"./index.df979911.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 k(()=>{d.doRefresh()}),P(c,async()=>{d.doRefresh()},{deep:!0}),(J,n)=>{const g=m("el-switch"),w=m("fs-crud");return $(),q(a(C),{class:"fs-page-custom"},{default:s(()=>[r(w,E({ref_key:"crudRef",ref:h},a(v)),G({"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},[S(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};
