import{a as k,B as b,b as B}from"./index.8a64ecdf.js";import"./elementPlus.58179425.js";import{createCrudOptions as V}from"./crud.21850c18.js";import{d as C,ak as I,r as i,j as R,w as S,a8 as d,o as q,E as D,G as a,M as o,a1 as T,$,u as r,t as G,a as c,L as f,B as P,ap as j,aq as E}from"./vue.95e072e2.js";import{BaseColumn as L}from"./commonTabColumn.00155e2b.js";import{D as M}from"./index.eed780e8.js";import{_ as N}from"./index.vue_vue_type_script_setup_true_lang.8dd19552.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=d("el-tooltip"),y=d("el-switch"),g=d("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=>G(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},[$(Object.keys(r(L)),e=>({name:`cell_${e}`,fn:a(p=>[o(M,{field:e,value:p.row[e],"prev-val":p.row[`prev${e}`],"gap-val":p.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};
