import{a as x,B as C,b as D}from"./index.8a64ecdf.js";import"./elementPlus.58179425.js";import{d as v,al as G,ak as I,r as R,j as B,w as N,a8 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.95e072e2.js";import{g as A,a as M,b as P,c as j,d as E}from"./crud.391df397.js";import{_ as S}from"./index.vue_vue_type_script_setup_true_lang.8dd19552.js";import $ from"./dataTendency.391089b1.js";import{_ as O}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./commonTabColumn.00155e2b.js";import"./enum.b537673d.js";import"./index.9f6b84b8.js";import"./index.df979911.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};
