import{a as x,B as y,b as V}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{createCrudOptions as B}from"./crud.afe2032e.js";import{d as C,ay as I,r as m,j as R,w as b,ai as u,o as D,M as P,O as r,U as n,aa as k,a8 as S,u as s,D as $,a as d,K as O,aF as U,aG as j}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 q}from"./index.04a874bc.js";import{_ as z}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.e566fd6e.js";const E=o=>(U("data-v-aa1a03e0"),o=o(),j(),o),F=E(()=>d("span",null,"数据对比 ",-1)),G=C({name:"Placement",__name:"index",props:{campaignId:{}},setup(o){const _=x(),{dateRange:e}=I(_),i=o,l=m(!1),f=m({campaignId:i.campaignId,dateRange:e}),{crudBinding:v,crudRef:g,crudExpose:c}=y({createCrudOptions:B,context:f});return R(async()=>{c.doRefresh()}),b(e,async()=>c.doRefresh()),(K,t)=>{const w=u("el-switch"),h=u("fs-crud");return D(),P(s(V),{class:"fs-page-custom"},{default:r(()=>[n(h,O({ref_key:"crudRef",ref:g},s(v)),k({"search-left":r(()=>[n(M,{modelValue:s(e),"onUpdate:modelValue":t[0]||(t[0]=a=>$(e)?e.value=a:null)},null,8,["modelValue"])]),"toolbar-left":r(()=>[d("div",null,[F,n(w,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a),size:"small"},null,8,["modelValue"])])]),_:2},[S(Object.keys(s(N)),a=>({name:`cell_${a}`,fn:r(p=>[n(q,{field:a,value:p.row[a],"prev-val":p.row[`prev${a}`],"gap-val":p.row[`gap${a}`],"date-range":s(e),"show-compare":l.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const aa=z(G,[["__scopeId","data-v-aa1a03e0"]]);export{aa as default};
