import{u as j,a as q,B as O,b as P,v as A}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import{createCrudOptions as K}from"./crud.04898035.js";import z from"./dataTendency.69ca86c9.js";import E from"./adStruct.1c16a85f.js";import{a as F,b as W,c as H,d as J}from"./api.3faa3eba.js";import{d as Q,B as v,r as g,ay as I,j as X,w as Y,ai as l,o as y,M as k,O as a,U as t,aa as Z,a8 as ee,u as s,R as S,a as r,T as o,S as C,K as ae,aF as te,aG as oe}from"./vue.adf17aba.js";import{BaseColumn as se}from"./commonTabColumn.c5d53eee.js";import{D as re}from"./index.04a874bc.js";import{_ as ne}from"./_plugin-vue_export-helper.c27b6911.js";import"./echarts.72dc8373.js";import"./enum.e566fd6e.js";import"./index.7f1f4491.js";import"./index.05a2d588.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 N=v("topSearchItem"),B=v("searchType"),M=v("searchItem"),d=g("dataTendency"),T=j(),V=q(),{dateRange:x}=I(V),{profile:D}=I(T),p=g({profileId:D.value.profile_id,dateRange:x,searchItem:N,searchType:B,filterItem:M}),{crudBinding:L,crudRef:$,crudExpose:b}=O({createCrudOptions:K,context:p}),m=g(!1),u=_=>{A.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"),R=l("el-tabs"),w=l("el-link"),h=l("el-tooltip"),U=l("el-switch"),G=l("fs-crud");return y(),k(s(P),{class:"fs-page-custom"},{default:a(()=>[t(G,ae({ref_key:"crudRef",ref:$},s(L)),Z({"header-middle":a(()=>[t(R,{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(z,{key:0,query:p.value,"fetch-line-month":s(F),"fetch-line-week":s(W),fetchCard:s(H),fetchLine:s(J)},null,8,["query","fetch-line-month","fetch-line-week","fetchCard","fetchLine"])):S("",!0)]),_:1}),t(f,{label:"广告结构",name:"adStruct"},{default:a(()=>[d.value==="adStruct"?(y(),k(E,{key:0})):S("",!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(U,{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 Te=ne(_e,[["__scopeId","data-v-7cfc4e57"]]);export{Te as default};
