import{a as x,B,b as V}from"./index.ae7ce77b.js";import"./elementPlus.346c766a.js";import{createCrudOptions as y}from"./crud.a10b6c3f.js";import{d as C,al as I,r as m,j as R,w as b,a9 as u,o as P,E as k,G as r,M as n,a2 as D,a0 as S,u as s,t as $,a as d,B as j,aq as q,ar as E}from"./vue.6daa721c.js";import{_ as M}from"./index.vue_vue_type_script_setup_true_lang.c5131d55.js";import{BaseColumn as N}from"./commonTabColumn.9307c435.js";import{D as O}from"./index.1b30f184.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 P(),k(s(V),{class:"fs-page-custom"},{default:r(()=>[n(h,j({ref_key:"crudRef",ref:g},s(v)),D({"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,[G,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(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};
