1 |
- import{c as O,x as C,a as N,C as B,_ as E}from"./index-EwE51S_X.js";import{i as S,L}from"./echarts-cxb9vJr1.js";import{d as R,a as V,h as F,a2 as G,r as U,o as D,au as H,aF as J,w as W,K as m,e as K,f as Z,i as t,j as e,L as a,u as o,t as n,m as b,D as Y,p as $,l as P}from"./vue-A59npLRR.js";const h=v=>($("data-v-338b4b3c"),v=v(),P(),v),Q={class:"wrapper"},X={class:"main"},ee={class:"title-top"},ae={class:"title-center"},se=h(()=>t("i",{class:"fa fa-level-up","aria-hidden":"true"},null,-1)),te={class:"title-top"},oe={class:"title-center"},le=h(()=>t("i",{class:"fa fa-level-up","aria-hidden":"true"},null,-1)),de={class:"title-top"},ne={class:"title-center"},ce=h(()=>t("i",{class:"fa fa-level-up","aria-hidden":"true"},null,-1)),re={class:"title-top"},ie={class:"title-center"},ue=h(()=>t("i",{class:"fa fa-level-up","aria-hidden":"true"},null,-1)),he={class:"msg-title-box"},_e={class:"title"},fe={class:"msg"},pe=h(()=>t("div",{class:"wellcom-div"},null,-1)),me={class:"user-source"},be={class:"bottom-reports"},ve={class:"reports-more"},ge={class:"color-info"},we={class:"color-info"},ye={class:"bottom-content"},xe=h(()=>t("div",{class:"info-circle circle-orange"},null,-1)),Se={class:"info-title"},Ae=h(()=>t("div",{class:"info-circle circle-violet"},null,-1)),Te={class:"info-title"},Le=h(()=>t("div",{class:"info-circle circle-blue"},null,-1)),qe={class:"info-title"},Me=h(()=>t("div",{class:"info-circle circle-green"},null,-1)),ke={class:"info-title"},je=h(()=>t("div",{class:"info-circle circle-silver"},null,-1)),Ie={class:"info-title"},ze=R({__name:"dashboard",async setup(v){let A,T;var d=V("");[A,T]=F(()=>O({url:"/admin/Dashboard/getdata",method:"get"},{loading:!0}).then(async c=>{d.value=c.data,console.log(d.value)})),await A,T();const g=c=>c===100?"Full":`${c}`,q=C(),M=N(),{t:s}=G(),f=U({charts:[]}),p=B(),w=[{color:"#f56c6c",percentage:20},{color:"#e6a23c",percentage:40},{color:"#5cb87a",percentage:60},{color:"#1989fa",percentage:80},{color:"#6f7ad3",percentage:100}],k=()=>{const c=S(p.value[0]);let _=[s("dashboard.Jan"),s("dashboard.Feb"),s("dashboard.Mar"),s("dashboard.Apr"),s("dashboard.May"),s("dashboard.Jun"),s("dashboard.Jul"),s("dashboard.Aug"),s("dashboard.Sept"),s("dashboard.Oct"),s("dashboard.Nov"),s("dashboard.Jan")],l=[d.value.mq["01"],d.value.mq["02"],d.value.mq["03"],d.value.mq["04"],d.value.mq["05"],d.value.mq["06"],d.value.mq["07"],d.value.mq["08"],d.value.mq["09"],d.value.mq[10],d.value.mq[11],d.value.mq[12]];for(let r=0;r<l.length;r++);const u={xAxis:{data:_,axisLabel:{inside:!0,color:"#fff"},axisTick:{show:!1},axisLine:{show:!1},z:10},yAxis:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#999"}},dataZoom:[{type:"inside"}],series:[{type:"bar",showBackground:!0,itemStyle:{color:new L(0,0,0,1,[{offset:0,color:"#83bff6"},{offset:.5,color:"#188df0"},{offset:1,color:"#188df0"}])},emphasis:{itemStyle:{color:new L(0,0,0,1,[{offset:0,color:"#2378f7"},{offset:.7,color:"#2378f7"},{offset:1,color:"#83bff6"}])}},data:l}]},i=6;c.on("click",function(r){c.dispatchAction({type:"dataZoom",startValue:_[Math.max(r.dataIndex-i/2,0)],endValue:_[Math.min(r.dataIndex+i/2,l.length-1)]})}),c.setOption(u),f.charts.push(c)},j=()=>{const c=S(p.value[1]),_={tooltip:{trigger:"item"},legend:{top:"5%",left:"center",textStyle:{color:"#73767a"}},series:[{name:s("dashboard.Source details"),type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center",color:"#73767a"},emphasis:{label:{show:!0,fontSize:"15",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:d.value.a.水准仪,name:s("dashboard.sz")},{value:d.value.a.RTK,name:s("dashboard.rtk")},{value:d.value.a.全站仪,name:s("dashboard.qzy")},{value:d.value.a.无人机,name:s("dashboard.wrj")},{value:d.value.a.其他,name:s("dashboard.Other")}]}]};c.setOption(_),f.charts.push(c)},I=()=>{const c=S(p.value[2]),_={xAxis:{type:"category",data:[s("dashboard.Monday"),s("dashboard.Tuesday"),s("dashboard.Wednesday"),s("dashboard.Thursday"),s("dashboard.Friday"),s("dashboard.Saturday"),s("dashboard.Sunday")]},yAxis:{type:"value"},series:[{data:[150,230,224,218,135,147,260],type:"line"}]};c.setOption(_),f.charts.push(c)},y=()=>{Y(()=>{for(const c in f.charts)f.charts[c].resize()})};return D(()=>{k(),j(),I(),window.addEventListener("resize",y)}),H(()=>{for(const c in f.charts)f.charts[c].dispose();window.removeEventListener("resize",y)}),J(()=>{y()}),W(()=>q.state.tabFullScreen,()=>{y()}),(c,_)=>{const l=m("el-col"),u=m("el-progress"),i=m("el-row"),r=m("el-card"),z=m("el-button"),x=m("el-divider");return K(),Z("div",Q,[t("div",X,[e(i,{class:"main-top",gutter:20},{default:a(()=>[e(l,{sm:12,lg:6},{default:a(()=>[e(r,{class:"top-card",shadow:"hover"},{default:a(()=>[e(i,{justify:"start"},{default:a(()=>[e(l,{span:15,class:"title-box"},{default:a(()=>[t("div",ee,n(o(s)("dashboard.Member registration")),1),t("div",ae,[b(n(o(d).count)+" ",1),se])]),_:1}),e(l,{span:6,class:"top-progress",push:3},{default:a(()=>[e(u,{type:"dashboard",percentage:o(d).count,format:g,width:60,color:w},null,8,["percentage"])]),_:1})]),_:1})]),_:1})]),_:1}),e(l,{sm:12,lg:6},{default:a(()=>[e(r,{class:"top-card",shadow:"hover"},{default:a(()=>[e(i,{justify:"start"},{default:a(()=>[e(l,{span:15,class:"title-box"},{default:a(()=>[t("div",te,n(o(s)("dashboard.Attachment uploading")),1),t("div",oe,[b(n(o(d).value),1),le])]),_:1}),e(l,{span:6,class:"top-progress",push:3},{default:a(()=>[e(u,{type:"dashboard",percentage:83,format:g,width:60,color:w})]),_:1})]),_:1})]),_:1})]),_:1}),e(l,{sm:12,lg:6},{default:a(()=>[e(r,{class:"top-card",shadow:"hover"},{default:a(()=>[e(i,{justify:"start"},{default:a(()=>[e(l,{span:15,class:"title-box"},{default:a(()=>[t("div",de,n(o(s)("dashboard.Total number of members")),1),t("div",ne,[b(n(o(d).lent_number)+" ",1),ce])]),_:1}),e(l,{span:6,class:"top-progress",push:3},{default:a(()=>[e(u,{type:"dashboard",percentage:o(d).lent_number,format:g,width:60,color:w},null,8,["percentage"])]),_:1})]),_:1})]),_:1})]),_:1}),e(l,{sm:12,lg:6},{default:a(()=>[e(r,{class:"top-card",shadow:"hover"},{default:a(()=>[e(i,{justify:"start"},{default:a(()=>[e(l,{span:15,class:"title-box"},{default:a(()=>[t("div",re,n(o(s)("dashboard.Module downloads")),1),t("div",ie,[b(n(o(d).repair_number)+" ",1),ue])]),_:1}),e(l,{span:6,class:"top-progress",push:3},{default:a(()=>[e(u,{type:"dashboard",percentage:o(d).repair_number,format:g,width:60,color:w},null,8,["percentage"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(i,{class:"main-center",gutter:20},{default:a(()=>[e(l,{xs:24,sm:24,md:24,lg:6},{default:a(()=>[e(r,{class:"card-message",shadow:"hover"},{default:a(()=>[t("div",he,[t("h4",_e,n(o(s)("dashboard.Wellcom Back"))+", "+n(o(M).nickname)+"!!",1),t("p",fe,n(o(s)("dashboard.Notice")),1)]),pe]),_:1})]),_:1}),e(l,{xs:24,sm:24,md:24,lg:12},{default:a(()=>[e(r,{class:"center-card",shadow:"hover"},{default:a(()=>[t("h6",null,n(o(s)("dashboard.Attachment Downloads")),1),t("div",{class:"view-column",ref:o(p).set},null,512)]),_:1})]),_:1}),e(l,{xs:24,sm:24,md:24,lg:6},{default:a(()=>[e(r,{class:"center-card",shadow:"hover"},{default:a(()=>[t("h6",me,n(o(s)("dashboard.Source Of User")),1),t("div",{class:"view-pie",ref:o(p).set},null,512)]),_:1})]),_:1})]),_:1}),b(" ` "),e(i,{class:"main-bottom",gutter:20},{default:a(()=>[e(l,{xs:24,sm:24,md:12,lg:6},{default:a(()=>[e(r,{class:"bottom-card",shadow:"hover"},{default:a(()=>[t("h6",null,n(o(s)("dashboard.Trading Volume Report")),1),t("div",be,[t("div",null,n(o(s)("dashboard.Available balance")),1),t("h3",null,n(o(d).userinfo.用户总数),1),t("div",ve,[t("div",ge,n(o(s)("dashboard.BUY THIS MONTH")),1),t("h5",null,n(o(d).userinfo.教职工),1),t("div",we,n(o(s)("dashboard.SELL THIS MONTH")),1),t("h5",null,n(o(d).userinfo.学生),1)]),e(z,{class:"button-more",type:"primary",round:""},{default:a(()=>[b(n(o(s)("dashboard.See More")),1)]),_:1})])]),_:1})]),_:1}),e(l,{xs:24,sm:24,md:12,lg:6},{default:a(()=>[e(r,{class:"bottom-card",shadow:"hover"},{default:a(()=>[t("h6",null,n(o(s)("dashboard.Membership Growth")),1),t("div",ye,[e(i,{class:"content-info",align:"middle",justify:"space-between"},{default:a(()=>[e(l,{span:15},{default:a(()=>[xe,t("span",Se,n(o(s)("dashboard.Legend")),1)]),_:1}),e(l,{span:9},{default:a(()=>[e(u,{percentage:56,color:"orange"})]),_:1}),e(x)]),_:1}),e(i,{class:"content-info",align:"middle",justify:"space-between"},{default:a(()=>[e(l,{span:15},{default:a(()=>[Ae,t("span",Te,n(o(s)("dashboard.Epic")),1)]),_:1}),e(l,{span:9},{default:a(()=>[e(u,{percentage:69,color:"#c507f5"})]),_:1}),e(x)]),_:1}),e(i,{class:"content-info",align:"middle",justify:"space-between"},{default:a(()=>[e(l,{span:15},{default:a(()=>[Le,t("span",qe,n(o(s)("dashboard.Rare")),1)]),_:1}),e(l,{span:9},{default:a(()=>[e(u,{percentage:45})]),_:1}),e(x)]),_:1}),e(i,{class:"content-info",align:"middle",justify:"space-between"},{default:a(()=>[e(l,{span:15},{default:a(()=>[Me,t("span",ke,n(o(s)("dashboard.Excellent")),1)]),_:1}),e(l,{span:9},{default:a(()=>[e(u,{percentage:55,color:"green"})]),_:1}),e(x)]),_:1}),e(i,{class:"content-info",align:"middle",justify:"space-between"},{default:a(()=>[e(l,{span:15},{default:a(()=>[je,t("span",Ie,n(o(s)("dashboard.Common")),1)]),_:1}),e(l,{span:9},{default:a(()=>[e(u,{percentage:78,color:"silver"})]),_:1})]),_:1})])]),_:1})]),_:1}),e(l,{xs:24,sm:24,md:24,lg:12},{default:a(()=>[e(r,{class:"bottom-card",shadow:"hover"},{default:a(()=>[t("h6",null,n(o(s)("dashboard.Access Growth")),1),t("div",{class:"visitor-box",ref:o(p).set},null,512)]),_:1})]),_:1})]),_:1})])])}}}),Be=E(ze,[["__scopeId","data-v-338b4b3c"]]);export{Be as default};
|