import{a as y,B as x,b as C}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{g as D,a as V,c as B}from"./crud.b0963a00.js";import I from"./dataTendency.69ca86c9.js";import{d as R,ay as b,r as u,j as P,w as k,ai as m,o as G,M as S,O as t,U as r,aa as $,a8 as q,u as a,D as O,a as f,K as U,aF as j,aG as L}from"./vue.adf17aba.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import{BaseColumn as N}from"./commonTabColumn.c5d53eee.js";import{D as T}from"./index.04a874bc.js";import{_ as z}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.e566fd6e.js";import"./index.7f1f4491.js";import"./index.05a2d588.js";const E=o=>(j("data-v-ff766144"),o=o(),L(),o),F={class:"campare-switch"},K=E(()=>f("span",null,"数据对比",-1)),A=R({__name:"index",props:{adGroupId:{}},setup(o){const i=o,_=y(),{dateRange:s}=b(_),l=u(!1),c=u({adGroupId:i.adGroupId,dateRange:s}),{crudBinding:v,crudRef:h,crudExpose:d}=x({createCrudOptions:B,context:c});return P(()=>{d.doRefresh()}),k(c,async()=>{d.doRefresh()},{deep:!0}),(H,n)=>{const g=m("el-switch"),w=m("fs-crud");return G(),S(a(C),{class:"fs-page-custom"},{default:t(()=>[r(w,U({ref_key:"crudRef",ref:h},a(v)),$({"search-left":t(()=>[r(M,{modelValue:a(s),"onUpdate:modelValue":n[0]||(n[0]=e=>O(s)?s.value=e:null)},null,8,["modelValue"])]),"header-middle":t(()=>[r(I,{query:c.value,"fetch-card":a(D),"fetch-line":a(V)},null,8,["query","fetch-card","fetch-line"])]),"toolbar-left":t(()=>[f("div",F,[K,r(g,{modelValue:l.value,"onUpdate:modelValue":n[1]||(n[1]=e=>l.value=e),size:"small"},null,8,["modelValue"])])]),_:2},[q(Object.keys(a(N)),e=>({name:`cell_${e}`,fn:t(p=>[r(T,{field:e,value:p.row[e],"prev-val":p.row[`prev${e}`],"gap-val":p.row[`gap${e}`],"date-range":a(s),"show-compare":l.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const le=z(A,[["__scopeId","data-v-ff766144"]]);export{le as default};
