var n=(f,v,c)=>new Promise((C,d)=>{var O=i=>{try{m(c.next(i))}catch(p){d(p)}},_=i=>{try{m(c.throw(i))}catch(p){d(p)}},m=i=>i.done?C(i.value):Promise.resolve(i.value).then(O,_);m((c=c.apply(f,v)).next())});import{F as h,d as Y,f as j,r as F,n as J,p as K,g8 as E,u as k,y as G,o as y,l as g,a as t,N as W,O as X,q as Q,t as A,e as b,w as x,X as U,aX as Z,aY as $,_ as ee,__tla as te}from"./index-b5895273.js";import"./index-df83bc1e.js";import{T as ae,aV as M}from"./installSVGRenderer-a67ecca0.js";let D,re=Promise.all([(()=>{try{return te}catch(f){}})()]).then(()=>n(void 0,null,function*(){function f(r="modal"){return n(this,null,function*(){return h.get({url:"/caseErpCustomer/caseErpCustomer/customer-source"},{errorMessageMode:r})})}function v(r="modal"){return n(this,null,function*(){return h.get({url:"/caseErpCustomer/caseErpCustomer/customer-type"},{errorMessageMode:r})})}function c(r="modal"){return n(this,null,function*(){return h.get({url:"/caseErpCustomer/caseErpCustomer/customer-gather"},{errorMessageMode:r})})}function C(r="modal"){return n(this,null,function*(){return h.get({url:"/caseErpCustomer/caseErpCustomer/customer-statistics"},{errorMessageMode:r})})}const d=r=>(Z("data-v-8a7c9884"),r=r(),$(),r),O={style:{padding:"10px","box-sizing":"border-box"}},_={class:"mumber-box"},m={class:"mum-title"},i={class:"box-bg"},p=d(()=>t("div",{class:"box-bg-title"},[t("span",{class:"title-text"},"\u5BA2\u6237\u6765\u6E90\u7EDF\u8BA1")],-1)),H={class:"box-bg"},L={class:"box-bg-title"},P=d(()=>t("span",{class:"title-text"},"\u56DE\u6B3E\u9762\u79EF\u56FE",-1)),V={class:"title-chose"},q=["onClick"],I={class:"box-bg"},N=d(()=>t("div",{class:"box-bg-title"},[t("span",{class:"title-text"},"\u5BA2\u6237\u7C7B\u578B\u5206\u5E03\u7EDF\u8BA1")],-1)),R=Y({__name:"Workbench",setup(r){const e=j({users:[],dataOne:[],pieOption:{color:["#7EAAFF","#6D68F8","#9E9BFC"],legend:{orient:"horizontal",x:"center",y:"bottom",top:"78%",itemWidth:10,itemHeight:10,itemGap:20,padding:[5,5,5,5],textStyle:{color:"#85878e"},formatter:a=>{let o=a+"\uFF1A";return e.dataOne.forEach(s=>{a==s.name&&(o+=s.value+"\u5BB6")}),o}},series:{name:"",type:"pie",radius:[0,85],center:["50%","32%"],roseType:"area",itemStyle:{borderRadius:0},label:{color:"#6e7079",overflow:"none",formatter:a=>{let o=a.percent||0;return a.name+` `+o+"%"}},data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}},dataTwo:[],FunnelOption:{color:["#9E9BFC","#6D68F8","#5887E3","#7EAAFF","#8CB1F9"],legend:{orient:"horizontal",x:"center",y:"bottom",top:"78%",itemWidth:10,itemHeight:10,itemGap:20,padding:[5,5,5,5],textStyle:{color:"#85878e"},formatter:a=>{let o=a+"\uFF1A";return e.dataTwo.forEach(s=>{a==s.name&&(o+=s.value+"\u5BB6")}),o}},series:{name:"",type:"funnel",width:"60%",height:"60%",left:"5%",top:30,labelLine:{show:!1},label:{color:"#6e7079",formatter:"{b} {d}%"},data:[]}},priceArray:[],cur:0,myChart3:null,lineOption:{tooltip:{trigger:"axis"},grid:{left:50,right:40},color:["#9863c1"],xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{type:"value",name:"\u5355\u4F4D\uFF1A\u4E07\u5143"},series:[{data:[],type:"line",showSymbol:!1,areaStyle:{color:new ae(0,0,0,1,[{offset:0,color:"rgba(140, 125, 252, 0.6)"},{offset:1,color:"rgba(140, 125, 252, 0)"}])},smooth:!0}]}}),z=F(),S=F(),T=F();J(()=>n(this,null,function*(){let a=yield C();e.users=a||[];let o=yield f();e.dataTwo=o||[];let s=yield c();e.priceArray=s||[];let w=yield v();e.dataOne=w||[],e.pieOption.series.data=e.dataOne,e.FunnelOption.series.data=e.dataTwo,K(()=>{let l=E(M(k(z)));l.setOption(e.pieOption,!0),l.resize(),e.myChart3=E(M(k(S))),B(e.priceArray[0]);let u=E(M(k(T)));u.setOption(e.FunnelOption,!0),u.resize()})}));const B=a=>{e.cur=a.key,e.lineOption.xAxis.data=a.category,e.lineOption.series[0].data=a.data,e.myChart3.setOption(e.lineOption,!0),e.myChart3.resize()};return(a,o)=>{const s=G("a-col"),w=G("a-row");return y(),g("div",O,[t("div",null,[t("div",_,[(y(!0),g(W,null,X(e.users,(l,u)=>(y(),g("div",{class:"mumber",key:u},[t("div",{class:"mum",style:Q({color:u>2?"#FF8080":"#5E95FF"})},A(l.num),5),t("div",m,A(l.name),1)]))),128))]),b(w,{gutter:10},{default:x(()=>[b(s,{span:6},{default:x(()=>[t("div",i,[p,t("div",{class:"item",ref_key:"homeVolChart",ref:T},null,512)])]),_:1}),b(s,{span:12},{default:x(()=>[t("div",H,[t("div",L,[P,t("div",V,[(y(!0),g(W,null,X(e.priceArray,l=>(y(),g("span",{key:l.key,class:U(l.key==e.cur?"cur":""),onClick:u=>B(l)},A(l.name),11,q))),128))])]),t("div",{class:"item",ref_key:"homeLineChart",ref:S},null,512)])]),_:1}),b(s,{span:6},{default:x(()=>[t("div",I,[N,t("div",{class:"item",ref_key:"homePieChart",ref:z},null,512)])]),_:1})]),_:1})])])}}});D=ee(R,[["__scopeId","data-v-8a7c9884"]])}));export{re as __tla,D as default};