import{u as A,a as G,B as O,b as z}from"./index.0d411246.js";import"./elementPlus.0e5067e4.js";import{d as J,q as f,r as h,al as I,am as K,j as W,w as F,a9 as o,o as m,E as g,G as a,M as s,a2 as H,a0 as Q,u as t,t as b,J as w,c as X,a as v,L as r,K as y,B as Y,aq as Z,ar as ee}from"./vue.3f733908.js";import{createCrudOptions as ae}from"./crud.838ecfa8.js";import te from"./adStruct.3178f17a.js";import se from"./dataTendency.dec8f4f1.js";import{a as oe,d as re,b as ne,c as ce}from"./api.fa5f2989.js";import{BaseColumn as le}from"./commonTabColumn.9973d424.js";import{D as pe}from"./index.1c622692.js";import{_ as ie}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.b537673d.js";import"./index.8a84e60c.js";import"./dropdowndisable.88660b16.js";import"./index.69303a66.js";const me=c=>(Z("data-v-0ac22ea7"),c=c(),ee(),c),de={key:0},ue={class:"en-text"},_e={class:"campare-switch"},fe=me(()=>v("span",null,"数据对比",-1)),he=J({__name:"index",setup(c){const S=f("topSearchItem"),V=f("searchType"),B=f("searchItem"),n=h("dataTendency"),M=A(),x=G(),{dateRange:C}=I(x),{profile:D}=I(M),d=h({profileId:D.value.profile_id,dateRange:C,searchItem:S,searchType:V,filterItem:B}),{crudBinding:T,crudRef:L,crudExpose:k}=O({createCrudOptions:ae,context:d}),N=K(),l=h(!1),R=u=>{N.push({name:"SpCampaignDetail",query:{campaignId:u.campaignId,tagsViewName:u.campaignName}})};return W(async()=>{k.doRefresh()}),F(d,async()=>{k.doRefresh()},{deep:!0}),(u,p)=>{const _=o("el-tab-pane"),q=o("el-tabs"),U=o("el-progress"),j=o("el-link"),$=o("el-tooltip"),E=o("el-switch"),P=o("fs-crud");return m(),g(t(z),{class:"fs-page-custom"},{default:a(()=>[s(P,Y({ref_key:"crudRef",ref:L},t(T)),H({"header-middle":a(()=>[s(q,{modelValue:t(n),"onUpdate:modelValue":p[0]||(p[0]=e=>b(n)?n.value=e:null),class:"chart-tabs",type:"border-card"},{default:a(()=>[s(_,{label:"数据趋势",name:"dataTendency"},{default:a(()=>[t(n)==="dataTendency"?(m(),g(se,{key:0,query:t(d),fetchCard:t(oe),fetchLine:t(re),"fetch-line-month":t(ne),"fetch-line-week":t(ce)},null,8,["query","fetchCard","fetchLine","fetch-line-month","fetch-line-week"])):w("",!0)]),_:1}),s(_,{label:"广告结构",name:"adStruct"},{default:a(()=>[t(n)==="adStruct"?(m(),g(te,{key:0})):w("",!0)]),_:1}),s(_,{label:"散点视图",name:"scatterView"},{default:a(()=>[t(n)==="scatterView"?(m(),X("div",de,"散点视图")):w("",!0)]),_:1})]),_:1},8,["modelValue"])]),cell_percentTimeInBudget:a(e=>[s(U,{percentage:e.row.percentTimeInBudget>0?e.row.percentTimeInBudget*100:0},null,8,["percentage"])]),cell_campaignName:a(e=>[s($,{effect:"dark",content:e.row.campaignName,placement:"top"},{default:a(()=>[s(j,{type:"primary",underline:!1,onClick:i=>R(e.row)},{default:a(()=>[v("div",ue,r(e.row.campaignName),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),cell_MissedImpressions:a(e=>[y(r(e.row.MissedImpressionsLower??"0")+" ~ "+r(e.row.MissedImpressionsUpper??"0"),1)]),cell_MissedClicks:a(e=>[y(r(e.row.MissedClicksLower??"0")+" ~ "+r(e.row.MissedClicksUpper??"0"),1)]),cell_MissedSales:a(e=>[y(r(e.row.MissedSalesLower??"0")+" ~ "+r(e.row.MissedSalesUpper??"0"),1)]),"toolbar-left":a(()=>[v("div",_e,[fe,s(E,{modelValue:t(l),"onUpdate:modelValue":p[1]||(p[1]=e=>b(l)?l.value=e:null),size:"small"},null,8,["modelValue"])])]),_:2},[Q(Object.keys(t(le)),e=>({name:`cell_${e}`,fn:a(i=>[s(pe,{field:e,value:i.row[e],"prev-val":i.row[`prev${e}`],"gap-val":i.row[`gap${e}`],"date-range":t(C),"show-compare":t(l)},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const Le=ie(he,[["__scopeId","data-v-0ac22ea7"]]);export{Le as default};
