import{a as C,B as R,b as k}from"./index.ae7ce77b.js";import"./elementPlus.346c766a.js";import{d as x,am as D,al as G,r as B,j as N,w as V,a9 as u,o as I,E as T,G as e,M as o,u as a,t as q,K as v,L as w,B as L}from"./vue.6daa721c.js";import{g as b,a as P,c as j}from"./crud.881eb91c.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.c5131d55.js";import E from"./dataTendency.14ea91e8.js";const F=x({__name:"index",props:{campaignId:{}},setup(p){const l=C(),i=D(),m=p,{dateRange:t}=G(l),n=B({campaignId:m.campaignId,dateRange:t}),{crudBinding:f,crudRef:_,crudExpose:c}=R({createCrudOptions:j,context:n});N(()=>{c.doRefresh()});const g=r=>{i.push({name:"AdGroupDetail",query:{adGroupId:r.adGroupId,targetingType:r.targetingType,tagsViewName:r.adGroupName}})};return V(n,async()=>{c.doRefresh()},{deep:!0}),(r,d)=>{const y=u("el-link"),h=u("fs-crud");return I(),T(a(k),{class:"fs-page-custom"},{default:e(()=>[o(h,L({ref_key:"crudRef",ref:_},a(f)),{"search-left":e(()=>[o(A,{modelValue:a(t),"onUpdate:modelValue":d[0]||(d[0]=s=>q(t)?t.value=s:null)},null,8,["modelValue"])]),"header-middle":e(()=>[o(E,{query:n.value,fetchCard:a(b),fetchLine:a(P)},null,8,["query","fetchCard","fetchLine"])]),cell_adGroupName:e(s=>[o(y,{type:"primary",underline:!1,onClick:M=>g(s.row)},{default:e(()=>[v(w(s.row.adGroupName),1)]),_:2},1032,["onClick"])]),_:1},16)]),_:1})}}});export{F as _};
