import{u as T,a as $,B as G,b as L,v as j}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{g as M,a as O,b as P,c as U,d as E}from"./crud.0cd52473.js";import z from"./dataTendency.8fe14a29.js";import{d as A,r as h,ay as b,j as F,w as K,ai as r,o as v,M as C,O as a,U as t,aa as W,a8 as H,u as o,R as x,c as J,a as s,T as w,K as Q,aF as X,aG as Y}from"./vue.adf17aba.js";import{BaseColumn as Z}from"./commonTabColumn.c5d53eee.js";import{D as ee}from"./index.04a874bc.js";import{_ as ae}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.e566fd6e.js";import"./index.7f1f4491.js";import"./index.05a2d588.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),i=h(!1),p=h({profileId:D.value.profile_id,dateRange:y}),{crudBinding:I,crudRef:B,crudExpose:g}=G({createCrudOptions:E,context:p}),m=u=>{j.push({name:"CampaignDetail",query:{campaignId:u.campaignId,tagsViewName:u.campaignName}})};return F(async()=>{g.doRefresh()}),K(p,async()=>{g.doRefresh()},{deep:!0}),(u,d)=>{const k=r("el-tab-pane"),q=r("el-tabs"),_=r("el-link"),f=r("el-tooltip"),R=r("el-switch"),S=r("fs-crud");return v(),C(o(L),{class:"fs-page-custom"},{default:a(()=>[t(S,Q({ref_key:"crudRef",ref:B},o(I)),W({"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:p.value,"fetch-card":o(M),"fetch-line":o(O),"fetch-line-month":o(P),"fetch-line-week":o(U)},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(),J("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(R,{modelValue:i.value,"onUpdate:modelValue":d[1]||(d[1]=e=>i.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":i.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};
