import{u as T,a as $,B as G,b as L,v as j}from"./index.ae7ce77b.js";import"./elementPlus.346c766a.js";import{g as E,a as M,b as P,c as O,d as U}from"./crud.0d404852.js";import z from"./dataTendency.13433cd9.js";import{d as A,r as h,al as b,j as J,w as W,a9 as r,o as v,E as C,G as a,M as t,a2 as F,a0 as H,u as o,J as x,c as K,a as s,L as w,B as Q,aq as X,ar as Y}from"./vue.6daa721c.js";import{BaseColumn as Z}from"./commonTabColumn.9307c435.js";import{D as ee}from"./index.1b30f184.js";import{_ as ae}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.b537673d.js";import"./index.c2be63e9.js";import"./index.abe7750b.js";const te=l=>(X("data-v-bc2914de"),l=l(),Y(),l),oe={key:0},ne={class:"en-text"},re={class:"en-text"},se={class:"en-text"},le={class:"campare-switch"},ce=te(()=>s("span",null,"数据对比 ",-1)),de=A({__name:"index",setup(l){const c=h("dataTendency"),N=T(),V=$(),{dateRange:y}=b(V),{profile:D}=b(N),p=h(!1),i=h({profileId:D.value.profile_id,dateRange:y}),{crudBinding:B,crudRef:I,crudExpose:g}=G({createCrudOptions:U,context:i}),m=u=>{j.push({name:"CampaignDetail",query:{campaignId:u.campaignId,tagsViewName:u.campaignName}})};return J(async()=>{g.doRefresh()}),W(i,async()=>{g.doRefresh()},{deep:!0}),(u,d)=>{const k=r("el-tab-pane"),q=r("el-tabs"),_=r("el-link"),f=r("el-tooltip"),S=r("el-switch"),R=r("fs-crud");return v(),C(o(L),{class:"fs-page-custom"},{default:a(()=>[t(R,Q({ref_key:"crudRef",ref:I},o(B)),F({"header-middle":a(()=>[t(q,{modelValue:c.value,"onUpdate:modelValue":d[0]||(d[0]=e=>c.value=e),class:"chart-tabs",type:"border-card"},{default:a(()=>[t(k,{label:"数据趋势",name:"dataTendency"},{default:a(()=>[c.value==="dataTendency"?(v(),C(z,{key:0,query:i.value,"fetch-card":o(E),"fetch-line":o(M),"fetch-line-month":o(P),"fetch-line-week":o(O)},null,8,["query","fetch-card","fetch-line","fetch-line-month","fetch-line-week"])):x("",!0)]),_:1}),t(k,{label:"散点视图",name:"scatterView"},{default:a(()=>[c.value==="scatterView"?(v(),K("div",oe,"敬请期待...")):x("",!0)]),_:1})]),_:1},8,["modelValue"])]),cell_query:a(e=>[t(f,{effect:"dark",content:e.row.query,placement:"top"},{default:a(()=>[t(_,{underline:!1,onClick:n=>m(e.row)},{default:a(()=>[s("div",ne,w(e.row.query),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),cell_campaignName:a(e=>[t(f,{effect:"dark",content:e.row.campaignName,placement:"top"},{default:a(()=>[t(_,{type:"primary",underline:!1,onClick:n=>m(e.row)},{default:a(()=>[s("div",re,w(e.row.campaignName??"--"),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),cell_adGroupName:a(e=>[t(f,{effect:"dark",content:e.row.adGroupName,placement:"top"},{default:a(()=>[t(_,{type:"primary",underline:!1,onClick:n=>m(e.row)},{default:a(()=>[s("div",se,w(e.row.adGroupName??"--"),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),"toolbar-left":a(()=>[s("div",le,[ce,t(S,{modelValue:p.value,"onUpdate:modelValue":d[1]||(d[1]=e=>p.value=e),size:"small"},null,8,["modelValue"])])]),_:2},[H(Object.keys(o(Z)),e=>({name:`cell_${e}`,fn:a(n=>[t(ee,{field:e,value:n.row[e],"prev-val":n.row[`prev${e}`],"gap-val":n.row[`gap${e}`],"date-range":o(y),"show-compare":p.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const be=ae(de,[["__scopeId","data-v-bc2914de"]]);export{be as default};
