import{a as x,B as C,b as D}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{d as v,az as I,ay as R,r as G,j as N,w,ai as c,o as B,M as V,O as a,U as n,u as e,D as L,a as T,T as b,K as q}from"./vue.adf17aba.js";import{g as A,a as M,b as P,c as j,d as O}from"./crud.496a3676.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import U from"./dataTendency.8f9547e4.js";import{_ as $}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./commonTabColumn.c5d53eee.js";import"./enum.e566fd6e.js";import"./index.7f1f4491.js";import"./index.05a2d588.js";const z={class:"en-text"},E=v({__name:"index",props:{campaignId:{}},setup(p){const l=x(),m=I(),u=p,{dateRange:s}=R(l),r=G({campaignId:u.campaignId,dateRange:s}),{crudBinding:f,crudRef:_,crudExpose:d}=C({createCrudOptions:O,context:r});N(()=>{d.doRefresh()});const g=t=>{m.push({name:"SdAdGroupDetail",query:{adGroupId:t.adGroupId,campaignId:t.campaignId,targetingType:t.targetingType,tagsViewName:t.adGroupName}})};return w(r,async()=>{d.doRefresh()},{deep:!0}),(t,i)=>{const h=c("el-link"),y=c("el-tooltip"),k=c("fs-crud");return B(),V(e(D),{class:"fs-page-custom"},{default:a(()=>[n(k,q({ref_key:"crudRef",ref:_},e(f)),{"search-left":a(()=>[n(S,{modelValue:e(s),"onUpdate:modelValue":i[0]||(i[0]=o=>L(s)?s.value=o:null)},null,8,["modelValue"])]),"header-middle":a(()=>[n(U,{query:r.value,fetchCard:e(A),fetchLine:e(M),"fetch-line-month":e(P),"fetch-line-week":e(j)},null,8,["query","fetchCard","fetchLine","fetch-line-month","fetch-line-week"])]),cell_adGroupName:a(o=>[n(y,{effect:"dark",content:o.row.campaignName,placement:"top"},{default:a(()=>[n(h,{type:"primary",underline:!1,onClick:K=>g(o.row)},{default:a(()=>[T("div",z,b(o.row.adGroupName),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),_:1},16)]),_:1})}}});const ne=$(E,[["__scopeId","data-v-12f58c22"]]);export{ne as default};
