import{a as k,B as b,b as B}from"./index.ae7ce77b.js";import"./elementPlus.346c766a.js";import{createCrudOptions as V}from"./crud.9639c224.js";import{d as C,al as I,r as i,j as R,w as S,a9 as p,o as q,E as D,G as a,M as o,a2 as T,a0 as G,u as r,t as $,a as c,L as f,B as P,aq as j,ar as E}from"./vue.6daa721c.js";import{BaseColumn as L}from"./commonTabColumn.9307c435.js";import{D as M}from"./index.1b30f184.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.c5131d55.js";import{_ as O}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";const U=t=>(j("data-v-ccea97ba"),t=t(),E(),t),z={class:"en-text"},A={class:"en-text"},F={class:"campare-switch"},H=U(()=>c("span",null,"数据对比 ",-1)),J=C({__name:"index",props:{adGroupId:{}},setup(t){const v=t,w=k(),{dateRange:s}=I(w),u=i({adGroupId:v.adGroupId,dateRange:s}),{crudBinding:h,crudRef:x,crudExpose:_}=b({createCrudOptions:V,context:u}),l=i(!1);return R(async()=>{_.doRefresh()}),S(u,async()=>{_.doRefresh()},{deep:!0}),(K,n)=>{const m=p("el-tooltip"),y=p("el-switch"),g=p("fs-crud");return q(),D(r(B),{class:"fs-page-custom"},{default:a(()=>[o(g,P({ref_key:"crudRef",ref:x},r(h)),T({"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(()=>[c("div",z,f(e.row.query),1)]),_:2},1032,["content"])]),cell_keywordText:a(e=>[o(m,{effect:"dark",content:e.row.keywordText,placement:"top"},{default:a(()=>[c("div",A,f(e.row.keywordText),1)]),_:2},1032,["content"])]),"toolbar-left":a(()=>[c("div",F,[H,o(y,{modelValue:l.value,"onUpdate:modelValue":n[1]||(n[1]=e=>l.value=e),size:"small"},null,8,["modelValue"])])]),_:2},[G(Object.keys(r(L)),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":l.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const se=O(J,[["__scopeId","data-v-ccea97ba"]]);export{se as default};
