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