import{a as x,B,b as V}from"./index.8a64ecdf.js";import"./elementPlus.58179425.js";import{createCrudOptions as y}from"./crud.9d7ff2f7.js";import{d as C,ak as I,r as m,j as R,w as b,a8 as u,o as k,E as P,G as r,M as n,a1 as $,$ as D,u as s,t as S,a as d,B as j,ap as q,aq as E}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";import{_ as U}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.b537673d.js";const z=o=>(q("data-v-aa1a03e0"),o=o(),E(),o),G=z(()=>d("span",null,"数据对比 ",-1)),L=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}=B({createCrudOptions:y,context:f});return R(async()=>{c.doRefresh()}),b(e,async()=>c.doRefresh()),(T,t)=>{const w=u("el-switch"),h=u("fs-crud");return k(),P(s(V),{class:"fs-page-custom"},{default:r(()=>[n(h,j({ref_key:"crudRef",ref:g},s(v)),$({"search-left":r(()=>[n(M,{modelValue:s(e),"onUpdate:modelValue":t[0]||(t[0]=a=>S(e)?e.value=a:null)},null,8,["modelValue"])]),"toolbar-left":r(()=>[d("div",null,[G,n(w,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a),size:"small"},null,8,["modelValue"])])]),_:2},[D(Object.keys(s(N)),a=>({name:`cell_${a}`,fn:r(p=>[n(O,{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=U(L,[["__scopeId","data-v-aa1a03e0"]]);export{aa as default};
