import{u as E,a as M,B as P,b as O}from"./index.373e4c1e.js";import"./elementPlus.c5b0e04f.js";import{d as U,q as h,r as v,al as C,am as z,j as A,w as J,a9 as s,o as w,E as I,G as a,M as t,a2 as W,a0 as F,u as o,J as x,c as H,a as r,L as g,B as K,aq as Q,ar as X}from"./vue.65d9dadc.js";import{g as Y,a as Z,b as ee,c as ae,d as te}from"./crud.084cf408.js";import oe from"./dataTendency.8b63de20.js";import{BaseColumn as ne}from"./commonTabColumn.a4869ec6.js";import{D as se}from"./index.74ced524.js";import{_ as re}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.b537673d.js";import"./index.78cddcae.js";import"./index.4dc9403e.js";const ce=c=>(Q("data-v-3b18c774"),c=c(),X(),c),le={key:0},de={class:"en-text"},me={class:"en-text"},pe={class:"en-text"},ie={class:"campare-switch"},ue=ce(()=>r("span",null,"数据对比 ",-1)),_e=U({__name:"index",setup(c){const N=h("topSearchItem"),V=h("searchType"),D=h("searchItem"),l=v("dataTendency"),T=E(),B=M(),{dateRange:y}=C(B),{profile:S}=C(T),R=z(),m=v(!1),p=u=>{R.push({name:"SpCampaignDetail",query:{campaignId:u.campaignId,tagsViewName:u.campaignName}})},i=v({profileId:S.value.profile_id,dateRange:y,searchType:V,searchItem:N,filterItem:D}),{crudBinding:q,crudRef:$,crudExpose:k}=P({createCrudOptions:te,context:i});return A(async()=>{k.doRefresh()}),J(i,async()=>{k.doRefresh()},{deep:!0}),(u,d)=>{const b=s("el-tab-pane"),G=s("el-tabs"),_=s("el-link"),f=s("el-tooltip"),L=s("el-switch"),j=s("fs-crud");return w(),I(o(O),{class:"fs-page-custom"},{default:a(()=>[t(j,K({ref_key:"crudRef",ref:$},o(q)),W({"header-middle":a(()=>[t(G,{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=e=>l.value=e),class:"chart-tabs",type:"border-card"},{default:a(()=>[t(b,{label:"数据趋势",name:"dataTendency"},{default:a(()=>[l.value==="dataTendency"?(w(),I(oe,{key:0,query:i.value,"fetch-card":o(Y),"fetch-line":o(Z),"fetch-line-month":o(ee),"fetch-line-week":o(ae)},null,8,["query","fetch-card","fetch-line","fetch-line-month","fetch-line-week"])):x("",!0)]),_:1}),t(b,{label:"散点视图",name:"scatterView"},{default:a(()=>[l.value==="scatterView"?(w(),H("div",le,"敬请期待...")):x("",!0)]),_:1})]),_:1},8,["modelValue"])]),cell_searchTerm:a(e=>[t(f,{effect:"dark",content:e.row.searchTerm,placement:"top"},{default:a(()=>[t(_,{underline:!1,onClick:n=>p(e.row)},{default:a(()=>[r("div",de,g(e.row.searchTerm),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=>p(e.row)},{default:a(()=>[r("div",me,g(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=>p(e.row)},{default:a(()=>[r("div",pe,g(e.row.adGroupName),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),"toolbar-left":a(()=>[r("div",ie,[ue,t(L,{modelValue:m.value,"onUpdate:modelValue":d[1]||(d[1]=e=>m.value=e),size:"small"},null,8,["modelValue"])])]),_:2},[F(Object.keys(o(ne)),e=>({name:`cell_${e}`,fn:a(n=>[t(se,{field:e,value:n.row[e],"prev-val":n.row[`prev${e}`],"gap-val":n.row[`gap${e}`],"date-range":o(y),"show-compare":m.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const Ve=re(_e,[["__scopeId","data-v-3b18c774"]]);export{Ve as default};
