lcny-vue3-antd-admin/dist/assets/SBYXZT.3ba5b561.js

2 lines
4.8 KiB
JavaScript

var M=Object.defineProperty,V=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var E=(e,a,t)=>a in e?M(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,C=(e,a)=>{for(var t in a||(a={}))$.call(a,t)&&E(e,t,a[t]);if(y)for(var t of y(a))N.call(a,t)&&E(e,t,a[t]);return e},I=(e,a)=>V(e,z(a));var D=(e,a,t)=>new Promise((f,u)=>{var b=i=>{try{l(t.next(i))}catch(c){u(c)}},r=i=>{try{l(t.throw(i))}catch(c){u(c)}},l=i=>i.done?f(i.value):Promise.resolve(i.value).then(b,r);l((t=t.apply(e,a)).next())});import O from"./Box.9851e0e6.js";import{b as R,p as W}from"./other.c438a137.js";import{u as Y}from"./visualization.e7eca0a7.js";import{a as Z,cS as j,b7 as F,cT as X,s as H,r as w,D as J,f as T,bp as P,H as q,bc as G,J as K,aA as p,o as _,j as k,x as m,i as s,t as x,h as g,p as B,F as L,aD as S,l as Q,aB as U,ey as tt,ez as et}from"./index.0a3fc488.js";import{u as st}from"./useVContext.15927fe9.js";import at from"./WaterEipple.b65979ca.js";var ot="/assets/d01.f72bcaad.png",nt="/assets/d02.3343b9f1.png",it="/assets/d03.3a556142.png",lt="/assets/d04.a87ba803.png";const ct=[{name:"AI\u667A\u80FD\u76D1\u63A7",value:[0,0,0],img:ot},{name:"\u6C34\u8D28\u76D1\u6D4B",value:[0,0,0],img:nt},{name:"\u571F\u58E4\u76D1\u6D4B",value:[0,0,0],img:it},{name:"\u6C14\u8C61\u76D1\u6D4B",value:[0,0,0],img:lt}],rt=Z({components:{Box:O,Dropdown:j,Menu:F,MenuItem:F.Item,DownOutlined:X,WaterEipple:at},props:["baseId"],setup(e){const{rootEmitter:a}=st();e.baseId;const t=H({tabList:w([]),currentTab:w(""),list:J(ct)}),f=w(null),u=Y(),b=T(()=>{var n,o;return(o=(n=t.tabList.find(v=>v.id==t.currentTab))==null?void 0:n.name)!=null?o:""});function r({key:n}){t.currentTab!=n&&(t.currentTab=n,i())}function l(){return D(this,null,function*(){let n=yield R({parent_id:u.getAddresId,type:1});h.value?t.tabList=n:t.tabList=[{id:-99,name:"\u5168\u90E8"}].concat(n);let o="";n.length&&(o=t.tabList[0].id),r({key:o})})}function i(){return D(this,null,function*(){var o;const n=yield W({base_id:(o=e.baseId)!=null?o:t.currentTab==-99?null:t.currentTab});Object.keys(n).map((v,A)=>{t.list[A].value=n[v].slice(1)})})}let c=1;P(()=>{h.value?i():l(),a.on("interval:auto",()=>{i()}),a.on("interval:tab",()=>{if(t.tabList.length==0)return;const n=c%t.tabList.length;r({key:t.tabList[n].id}),c++})});const h=T(()=>!!e.baseId);return q(()=>u.getAddresId,()=>{l()}),I(C({},G(t)),{currentTabValue:b,chartRef:f,isBase:h,onMenuClick:r})}}),d=e=>(tt("data-v-6e48e9f0"),e=e(),et(),e),dt={class:"h-full flex flex-col"},ut={class:"py-10px relative"},pt={class:"text-center bg-clip-text text-transparent bg-gradient-to-t from-[#76E9F0] to-[#A7E6EE] text-14px font-bold"},_t={key:0,class:"absolute right-18px top-1/2 transform -translate-y-1/2"},mt={class:"cursor-pointer"},xt=d(()=>s("span",{class:"text-white text-12px"},"\u66F4\u591A",-1)),ht={class:"flex-1 px-30px grid grid-cols-2 gap-y-10px gap-x-10px pb-16px"},vt={class:"text-center"},ft=["src"],bt={class:"text-12px font-bold text-white mt-11px"},gt={class:"ml-18px"},Bt={class:"flex items-center h-22px"},Dt=d(()=>s("div",{class:"w-7px h-7px bg-[#76E9F0]"},null,-1)),wt=d(()=>s("div",{class:"ml-11px text-11px text-white"},"\u5728\u7EBF",-1)),yt={class:"text-white ml-10px"},Et={class:"flex items-center h-22px"},Ct=d(()=>s("div",{class:"w-7px h-7px bg-[#F7B379]"},null,-1)),It=d(()=>s("div",{class:"ml-11px text-11px text-white"},"\u79BB\u7EBF",-1)),Ft={class:"text-white ml-10px"},Tt={class:"flex items-center h-22px"},kt=d(()=>s("div",{class:"w-7px h-7px bg-[#EB313E]"},null,-1)),Lt=d(()=>s("div",{class:"ml-11px text-11px text-white"},"\u6545\u969C",-1)),St={class:"text-white ml-10px"};function At(e,a,t,f,u,b){const r=p("DownOutlined"),l=p("menu-item"),i=p("Menu"),c=p("Dropdown"),h=p("WaterEipple"),n=p("Box");return _(),k(n,U({title:"\u8BBE\u5907\u8FD0\u884C\u72B6\u6001"},e.$attrs),{default:m(()=>[s("div",dt,[s("div",ut,[s("div",pt,x(e.currentTabValue),1),e.tabList.length>1?(_(),g("div",_t,[B(c,{overlayClassName:"dropdownClass",placement:"bottomRight",trigger:"click",style:{height:"300px"}},{overlay:m(()=>[B(i,{onClick:e.onMenuClick},{default:m(()=>[(_(!0),g(L,null,S(e.tabList,o=>(_(),k(l,{key:o.id},{default:m(()=>[s("div",null,x(o.name),1)]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:m(()=>[s("div",mt,[xt,B(r,{style:{fontSize:"12px",color:"#FFF"}})])]),_:1})])):Q("",!0)]),s("div",ht,[(_(!0),g(L,null,S(e.list,(o,v)=>(_(),g("div",{class:"flex",key:v},[s("div",vt,[B(h,{size:65.5},{default:m(()=>[s("img",{src:o.img,alt:"",srcset:""},null,8,ft)]),_:2},1032,["size"]),s("div",bt,x(o.name),1)]),s("div",gt,[s("div",Bt,[Dt,wt,s("div",yt,x(o.value[0]),1)]),s("div",Et,[Ct,It,s("div",Ft,x(o.value[1]),1)]),s("div",Tt,[kt,Lt,s("div",St,x(o.value[2]),1)])])]))),128))])])]),_:1},16)}var Wt=K(rt,[["render",At],["__scopeId","data-v-6e48e9f0"]]);export{Wt as default};