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