import{u as z,a as A,B as E,b as G}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{d as F,B as f,r as h,ay as I,az as K,j as W,w as H,ai as o,o as d,M as g,O as a,U as s,aa as J,a8 as Q,u as t,D as b,R as w,c as X,a as v,T as r,S as y,K as Y,aF as Z,aG as ee}from"./vue.adf17aba.js";import{createCrudOptions as ae}from"./crud.ce5d35c6.js";import te from"./adStruct.760d4669.js";import se from"./dataTendency.69ca86c9.js";import{a as oe,d as re,b as ne,c as ce}from"./api.8b835e6e.js";import{BaseColumn as le}from"./commonTabColumn.c5d53eee.js";import{D as pe}from"./index.04a874bc.js";import{_ as ie}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.e566fd6e.js";import"./index.05a2d588.js";import"./dropdowndisable.88660b16.js";import"./index.7f1f4491.js";const de=c=>(Z("data-v-0ac22ea7"),c=c(),ee(),c),me={key:0},ue={class:"en-text"},_e={class:"campare-switch"},fe=de(()=>v("span",null,"数据对比",-1)),he=F({__name:"index",setup(c){const S=f("topSearchItem"),V=f("searchType"),B=f("searchItem"),n=h("dataTendency"),D=z(),M=A(),{dateRange:C}=I(M),{profile:T}=I(D),m=h({profileId:T.value.profile_id,dateRange:C,searchItem:S,searchType:V,filterItem:B}),{crudBinding:x,crudRef:N,crudExpose:k}=E({createCrudOptions:ae,context:m}),L=K(),l=h(!1),R=u=>{L.push({name:"SpCampaignDetail",query:{campaignId:u.campaignId,tagsViewName:u.campaignName}})};return W(async()=>{k.doRefresh()}),H(m,async()=>{k.doRefresh()},{deep:!0}),(u,p)=>{const _=o("el-tab-pane"),U=o("el-tabs"),j=o("el-progress"),q=o("el-link"),$=o("el-tooltip"),O=o("el-switch"),P=o("fs-crud");return d(),g(t(G),{class:"fs-page-custom"},{default:a(()=>[s(P,Y({ref_key:"crudRef",ref:N},t(x)),J({"header-middle":a(()=>[s(U,{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"?(d(),g(se,{key:0,query:t(m),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"?(d(),g(te,{key:0})):w("",!0)]),_:1}),s(_,{label:"散点视图",name:"scatterView"},{default:a(()=>[t(n)==="scatterView"?(d(),X("div",me,"散点视图")):w("",!0)]),_:1})]),_:1},8,["modelValue"])]),cell_percentTimeInBudget:a(e=>[s(j,{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(q,{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(O,{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 Ne=ie(he,[["__scopeId","data-v-0ac22ea7"]]);export{Ne as default};
