import{a as k,B,b as V}from"./index.373e4c1e.js";import"./elementPlus.c5b0e04f.js";import{createCrudOptions as C}from"./crud.d7072212.js";import{d as I,al as R,r as i,j as b,w as q,a9 as p,o as D,E as S,G as o,M as a,a2 as G,a0 as T,u as r,t as $,a as l,L as f,B as P,aq as j,ar as E}from"./vue.65d9dadc.js";import{BaseColumn as L}from"./commonTabColumn.a4869ec6.js";import{D as M}from"./index.74ced524.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.0c3456ea.js";import{_ as O}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";const U=t=>(j("data-v-c4761996"),t=t(),E(),t),z={class:"en-text"},A={class:"en-text"},F={class:"campare-switch"},H=U(()=>l("span",null,"数据对比 ",-1)),J=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:h,crudExpose:_}=B({createCrudOptions:C,context:u}),c=i(!1);return b(async()=>{_.doRefresh()}),q(u,async()=>{_.doRefresh()},{deep:!0}),(K,n)=>{const m=p("el-tooltip"),y=p("el-switch"),g=p("fs-crud");return D(),S(r(V),{class:"fs-page-custom"},{default:o(()=>[a(g,P({ref_key:"crudRef",ref:h},r(x)),G({"search-left":o(()=>[a(N,{modelValue:r(s),"onUpdate:modelValue":n[0]||(n[0]=e=>$(s)?s.value=e:null)},null,8,["modelValue"])]),cell_query:o(e=>[a(m,{effect:"dark",content:e.row.query,placement:"top"},{default:o(()=>[l("div",z,f(e.row.query),1)]),_:2},1032,["content"])]),cell_keywordText:o(e=>[a(m,{effect:"dark",content:e.row.keywordText,placement:"top"},{default:o(()=>[l("div",A,f(e.row.keywordText),1)]),_:2},1032,["content"])]),"toolbar-left":o(()=>[l("div",F,[H,a(y,{modelValue:c.value,"onUpdate:modelValue":n[1]||(n[1]=e=>c.value=e),size:"small"},null,8,["modelValue"])])]),_:2},[T(Object.keys(r(L)),e=>({name:`cell_${e}`,fn:o(d=>[a(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=O(J,[["__scopeId","data-v-c4761996"]]);export{se as default};
