import{u as M,a as O,B as P,b as U}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{d as z,B as h,r as v,ay as C,az as E,j as A,w as F,ai as s,o as w,M as I,O as a,U as t,aa as K,a8 as W,u as o,R as x,c as H,a as r,T as y,K as J,aF as Q,aG as X}from"./vue.adf17aba.js";import{g as Y,a as Z,b as ee,c as ae,d as te}from"./crud.e50b3f1c.js";import oe from"./dataTendency.69ca86c9.js";import{BaseColumn as ne}from"./commonTabColumn.c5d53eee.js";import{D as se}from"./index.04a874bc.js";import{_ as re}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.e566fd6e.js";import"./index.7f1f4491.js";import"./index.05a2d588.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=z({__name:"index",setup(c){const N=h("topSearchItem"),T=h("searchType"),V=h("searchItem"),l=v("dataTendency"),D=M(),B=O(),{dateRange:g}=C(B),{profile:S}=C(D),R=E(),m=v(!1),p=u=>{R.push({name:"SpCampaignDetail",query:{campaignId:u.campaignId,tagsViewName:u.campaignName}})},i=v({profileId:S.value.profile_id,dateRange:g,searchType:T,searchItem:N,filterItem:V}),{crudBinding:$,crudRef:G,crudExpose:k}=P({createCrudOptions:te,context:i});return A(async()=>{k.doRefresh()}),F(i,async()=>{k.doRefresh()},{deep:!0}),(u,d)=>{const b=s("el-tab-pane"),j=s("el-tabs"),_=s("el-link"),f=s("el-tooltip"),q=s("el-switch"),L=s("fs-crud");return w(),I(o(U),{class:"fs-page-custom"},{default:a(()=>[t(L,J({ref_key:"crudRef",ref:G},o($)),K({"header-middle":a(()=>[t(j,{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,y(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,y(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,y(e.row.adGroupName),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),"toolbar-left":a(()=>[r("div",ie,[ue,t(q,{modelValue:m.value,"onUpdate:modelValue":d[1]||(d[1]=e=>m.value=e),size:"small"},null,8,["modelValue"])])]),_:2},[W(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(g),"show-compare":m.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const Te=re(_e,[["__scopeId","data-v-3b18c774"]]);export{Te as default};
