test_lgq/niucloud/public/admin/assets/app_manage-3b19994d.js
2024-01-24 17:36:08 +08:00

2 lines
3.4 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{d as C,f as V,K as N,r as y,n as R,y as M,h as r,c as x,a as e,t as s,u as a,N as o,e as u,w as c,F as D,G as T,R as U,I as j,i as z,B as k,ae as b,U as w,E as G,V as K,ai as O,ak as P,ad as $,a0 as q,p as H,g as J,_ as Q}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as W}from"./apply_empty-cdca3e85.js";import{g as X}from"./addon-8fbd8692.js";const Y=""+new URL("app_store_default-c0531792.png",import.meta.url).href,f=_=>(H("data-v-e51b31c1"),_=_(),J(),_),Z={class:"box-border pt-[68px] px-[76px] overview-top"},ee={key:0},te={class:"flex justify-between items-center"},se={class:"font-[600] text-[26px] text-[#222] leading-[37px]"},ae={class:"font-[500] text-[14px] text-[#222] leading-[20px] mt-[12px]"},oe=f(()=>e("div",{class:"mr-[9px] text-[#3F3F3F] iconfont iconxiazai01"},null,-1)),ne={class:"font-[600] text-[14px] text-[#222] leading-[20px]"},pe={class:"flex flex-wrap mt-[40px]"},ce=["onClick"],ie={class:"bg-[#F7FAFB] py-[18px] px-[24px] flex items-center app-item-head"},le=f(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:Y})],-1)),re={class:"py-[18px] px-[24px]"},_e={class:"font-[600] leading-[1] text-[14px] text-[#222]"},de={class:"text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate"},xe=f(()=>e("div",{class:"w-[230px] mx-auto"},[e("img",{src:W,class:"max-w-full",alt:""})],-1)),ue={class:"flex items-center"},me=C({__name:"app_manage",setup(_){const v=V(),m=N(),n=y(!0),d=R({appList:[]}),h=y({});(()=>{n.value=!0,X().then(p=>{Object.values(p.data).forEach((t,i)=>{t.type=="app"&&d.appList.push(t)}),m.routers.forEach((t,i)=>{t.children&&t.children.length?(t.name=b(t.children),h.value[t.meta.app]=b(t.children)):h.value[t.meta.app]=t.name}),n.value=!1}).catch(()=>{n.value=!1})})();const L=p=>{w.set({key:"menuAppStorage",data:p.key}),w.set({key:"plugMenuTypeStorage",data:""});const t=m.appMenuList;t.push(p.key),m.setAppMenuList(t);const i=h.value[p.key];v.push({name:i})},g=()=>{v.push("/app_manage/app_store")};return(p,t)=>{const i=G,F=K,E=O,S=P,I=$,A=q;return M((r(),x("div",Z,[d.appList&&!n.value?(r(),x("div",ee,[e("div",te,[e("div",null,[e("div",se,s(a(o)("app")),1),e("div",ae,s(a(o)("versionInfo"))+" "+s(a(o)("currentVersion")),1)]),u(i,{onClick:g,class:"px-[15px]"},{default:c(()=>[oe,e("span",ne,s(a(o)("appStore")),1)]),_:1})]),e("div",pe,[(r(!0),x(D,null,T(d.appList,(l,B)=>(r(),x("div",{key:B,class:"app-item w-[280px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mr-[20px] mb-[20px] overflow-hidden",onClick:fe=>L(l)},[e("div",ie,[u(F,{class:"w-[44px] h-[44px] rounded-[8px]",src:a(U)(l.icon),fit:"contain"},{error:c(()=>[le]),_:2},1032,["src"])]),e("div",re,[e("div",_e,s(l.title),1),u(E,{class:"box-item",effect:"light",content:l.desc,placement:"bottom-start"},{default:c(()=>[e("div",de,s(l.desc),1)]),_:2},1032,["content"])])],8,ce))),128)),!d.appList.length&&!n.value?(r(),j(I,{key:0,class:"mx-auto overview-empty"},{image:c(()=>[xe]),description:c(()=>[e("p",ue,[e("span",null,s(a(o)("descriptionLeft")),1),u(S,{type:"primary",onClick:g,class:"mx-[5px]"},{default:c(()=>[z(s(a(o)("link")),1)]),_:1}),e("span",null,s(a(o)("descriptionRight")),1)])]),_:1})):k("",!0)])])):k("",!0)])),[[A,n.value]])}}});const Ae=Q(me,[["__scopeId","data-v-e51b31c1"]]);export{Ae as default};