import{a as x,B as C,b as D}from"./index.373e4c1e.js";import"./elementPlus.c5b0e04f.js";import{d as v,am as G,al as I,r as R,j as B,w as N,a9 as c,o as w,E as L,G as a,M as n,u as e,t as V,a as b,L as q,B as T}from"./vue.65d9dadc.js";import{g as A,a as M,b as P,c as j,d as E}from"./crud.57c28e56.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.0c3456ea.js";import $ from"./dataTendency.3fe686ee.js";import{_ as O}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./commonTabColumn.a4869ec6.js";import"./enum.b537673d.js";import"./index.78cddcae.js";import"./index.4dc9403e.js";const U={class:"en-text"},W=v({__name:"index",props:{campaignId:{}},setup(p){const l=x(),m=G(),u=p,{dateRange:s}=I(l),r=R({campaignId:u.campaignId,dateRange:s}),{crudBinding:f,crudRef:_,crudExpose:d}=C({createCrudOptions:E,context:r});B(()=>{d.doRefresh()});const g=t=>{m.push({name:"SdAdGroupDetail",query:{adGroupId:t.adGroupId,campaignId:t.campaignId,targetingType:t.targetingType,tagsViewName:t.adGroupName}})};return N(r,async()=>{d.doRefresh()},{deep:!0}),(t,i)=>{const h=c("el-link"),y=c("el-tooltip"),k=c("fs-crud");return w(),L(e(D),{class:"fs-page-custom"},{default:a(()=>[n(k,T({ref_key:"crudRef",ref:_},e(f)),{"search-left":a(()=>[n(S,{modelValue:e(s),"onUpdate:modelValue":i[0]||(i[0]=o=>V(s)?s.value=o:null)},null,8,["modelValue"])]),"header-middle":a(()=>[n($,{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:z=>g(o.row)},{default:a(()=>[b("div",U,q(o.row.adGroupName),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),_:1},16)]),_:1})}}});const ne=O(W,[["__scopeId","data-v-12f58c22"]]);export{ne as default};
