import{u as U,a as j,B as P,b as A,v as E}from"./index.8a64ecdf.js";import"./elementPlus.58179425.js";import{createCrudOptions as K}from"./crud.42a2641b.js";import O from"./dataTendency.ab62b4f1.js";import z from"./adStruct.88880ec0.js";import{a as J,b as W,c as F,d as H}from"./api.2903c78d.js";import{d as Q,q as v,r as g,ak as I,j as X,w as Y,a8 as l,o as y,E as k,G as a,M as t,a1 as Z,$ as ee,u as s,J as N,a as r,L as o,K as C,B as ae,ap as te,aq as oe}from"./vue.95e072e2.js";import{BaseColumn as se}from"./commonTabColumn.00155e2b.js";import{D as re}from"./index.eed780e8.js";import{_ as ne}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.b537673d.js";import"./index.9f6b84b8.js";import"./index.df979911.js";import"./dropdowndisable.88660b16.js";const le=c=>(te("data-v-7cfc4e57"),c=c(),oe(),c),ce={class:"en-text"},de={class:"en-text"},ie={class:"en-text"},pe={class:"text-range"},me={class:"campare-switch"},ue=le(()=>r("span",null,"数据对比 ",-1)),_e=Q({__name:"index",setup(c){const S=v("topSearchItem"),B=v("searchType"),M=v("searchItem"),d=g("dataTendency"),V=U(),D=j(),{dateRange:x}=I(D),{profile:T}=I(V),p=g({profileId:T.value.profile_id,dateRange:x,searchItem:S,searchType:B,filterItem:M}),{crudBinding:L,crudRef:$,crudExpose:b}=P({createCrudOptions:K,context:p}),m=g(!1),u=_=>{E.push({name:"CampaignDetail",query:{campaignId:_.campaignId,tagsViewName:_.campaignName}})};return X(async()=>{b.doRefresh()}),Y(p,async()=>{b.doRefresh()},{deep:!0}),(_,i)=>{const f=l("el-tab-pane"),q=l("el-tabs"),w=l("el-link"),h=l("el-tooltip"),R=l("el-switch"),G=l("fs-crud");return y(),k(s(A),{class:"fs-page-custom"},{default:a(()=>[t(G,ae({ref_key:"crudRef",ref:$},s(L)),Z({"header-middle":a(()=>[t(q,{modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=e=>d.value=e),class:"chart-tabs",type:"border-card"},{default:a(()=>[t(f,{label:"数据趋势",name:"dataTendency"},{default:a(()=>[d.value==="dataTendency"?(y(),k(O,{key:0,query:p.value,"fetch-line-month":s(J),"fetch-line-week":s(W),fetchCard:s(F),fetchLine:s(H)},null,8,["query","fetch-line-month","fetch-line-week","fetchCard","fetchLine"])):N("",!0)]),_:1}),t(f,{label:"广告结构",name:"adStruct"},{default:a(()=>[d.value==="adStruct"?(y(),k(z,{key:0})):N("",!0)]),_:1}),t(f,{label:"散点视图",name:"scatterView"})]),_:1},8,["modelValue"])]),cell_keywordText:a(e=>[t(h,{effect:"dark",content:e.row.keywordText,placement:"top"},{default:a(()=>[t(w,{underline:!1,onClick:n=>u(e.row)},{default:a(()=>[r("div",ce,o(e.row.keywordText),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),cell_campaignName:a(e=>[t(h,{effect:"dark",content:e.row.campaignName,placement:"top"},{default:a(()=>[t(w,{type:"primary",underline:!1,onClick:n=>u(e.row)},{default:a(()=>[r("div",de,o(e.row.campaignName),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),cell_adGroupName:a(e=>[t(h,{effect:"dark",content:e.row.adGroupName,placement:"top"},{default:a(()=>[t(w,{type:"primary",underline:!1,onClick:n=>u(e.row)},{default:a(()=>[r("div",ie,o(e.row.adGroupName),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])]),cell_suggestedBid:a(e=>[r("div",null,"$"+o(e.row.suggestedBid),1),r("div",pe,"$"+o(e.row.suggestedBid_lower)+" ~ $"+o(e.row.suggestedBid_upper),1)]),cell_MissedImpressions:a(e=>[C(o(e.row.MissedImpressionsLower??"0")+" ~ "+o(e.row.MissedImpressionsUpper??"0"),1)]),cell_MissedClicks:a(e=>[C(o(e.row.MissedClicksLower??"0")+" ~ "+o(e.row.MissedClicksUpper??"0"),1)]),cell_MissedSales:a(e=>[C(o(e.row.MissedSalesLower??"0")+" ~ "+o(e.row.MissedSalesUpper??"0"),1)]),"toolbar-left":a(()=>[r("div",me,[ue,t(R,{modelValue:m.value,"onUpdate:modelValue":i[1]||(i[1]=e=>m.value=e),size:"small"},null,8,["modelValue"])])]),_:2},[ee(Object.keys(s(se)),e=>({name:`cell_${e}`,fn:a(n=>[t(re,{field:e,value:n.row[e],"prev-val":n.row[`prev${e}`],"gap-val":n.row[`gap${e}`],"date-range":s(x),"show-compare":m.value},null,8,["field","value","prev-val","gap-val","date-range","show-compare"])])}))]),1040)]),_:1})}}});const Ve=ne(_e,[["__scopeId","data-v-7cfc4e57"]]);export{Ve as default};
