import{a as C,B as D,b as R}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{d as k,az as x,ay as G,r as N,j as T,w as V,ai as u,o as B,M as I,O as e,U as o,u as a,D as q,S as v,T as w,K as b}from"./vue.adf17aba.js";import{g as L,a as P,c as j}from"./crud.13ad7163.js";import{_ as A}from"./index.vue_vue_type_script_setup_true_lang.3fa6db13.js";import M from"./dataTendency.69ca86c9.js";const F=k({__name:"index",props:{campaignId:{}},setup(p){const i=C(),l=x(),m=p,{dateRange:t}=G(i),n=N({campaignId:m.campaignId,dateRange:t}),{crudBinding:f,crudRef:_,crudExpose:c}=D({createCrudOptions:j,context:n});T(()=>{c.doRefresh()});const g=r=>{l.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 B(),I(a(R),{class:"fs-page-custom"},{default:e(()=>[o(h,b({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(M,{query:n.value,fetchCard:a(L),fetchLine:a(P)},null,8,["query","fetchCard","fetchLine"])]),cell_adGroupName:e(s=>[o(y,{type:"primary",underline:!1,onClick:O=>g(s.row)},{default:e(()=>[v(w(s.row.adGroupName),1)]),_:2},1032,["onClick"])]),_:1},16)]),_:1})}}});export{F as _};
