mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-11 18:32:49 +00:00
2 lines
3.7 KiB
JavaScript
2 lines
3.7 KiB
JavaScript
import{d as V,r as g,R as D,V as F,Q as M,e as _,f,g as e,B as o,u as a,y as i,x as p,F as N,z as R,v as P,A as Q,H as T,aP as j,aQ as z}from"./base-06478700.js";/* empty css *//* empty css */import{_ as H}from"./apply_empty-78684083.js";/* empty css *//* empty css *//* empty css */import{k as U,a0 as $,C as y}from"./index-981b0207.js";import{_ as q}from"./app_store_default-c4798c2d.js";import{t as c}from"./index-81ed253c.js";import{d as G,a as k}from"./common-92a35870.js";import{a as J}from"./vue-router-d09a2c28.js";import{E as K}from"./index-2fcd1254.js";import{E as O}from"./index-c2f001d3.js";import{E as W}from"./index-543fb162.js";import{E as X}from"./index-8c476f28.js";import{E as Y}from"./index-b56195b5.js";import{v as Z}from"./directive-cb2d3366.js";import{_ as tt}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-10eba222.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const E=m=>(j("data-v-2930827a"),m=m(),z(),m),et={class:"h-[480px] box-border pt-[20px] px-[20px]"},ot={class:"flex justify-between items-center"},st={class:"font-600 text-[20px] text-[#222]"},at={class:"flex flex-wrap mt-[28px]"},pt=["onClick"],rt={class:"flex items-center"},nt=E(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:q})],-1)),it={class:"flex-1 font-600 text-[14px] text-[#222] ml-[12px]"},ct={class:"font-500 text-[13px] text-[#6D7278] mt-[14px]"},mt=E(()=>e("div",{class:"w-[230px] mx-auto"},[e("img",{src:H,class:"max-w-full",alt:""})],-1)),lt={class:"flex items-center"},_t=V({__name:"app_manage",setup(m){const h=J(),d=U(),r=g(!0),u=D({appList:[]}),x=g({});(()=>{r.value=!0,$().then(s=>{s.data.forEach((t,n)=>{t.type=="app"&&u.appList.push(t)}),d.routers.forEach((t,n)=>{t.children&&t.children.length?(t.name=y(t.children),x.value[t.meta.app]=y(t.children)):x.value[t.meta.app]=t.name}),r.value=!1}).catch(()=>{r.value=!1})})();const w=s=>{k.set({key:"menuAppStorage",data:s.key}),k.set({key:"plugMenuTypeStorage",data:""});const t=d.appMenuList;t.push(s.key),d.setAppMenuList(t);let n=x.value[s.key];h.push({name:n})},v=()=>{h.push("/app_manage/app_store")};return(s,t)=>{const n=F("Download"),L=K,S=O,b=W,C=X,A=Y,B=Z;return M((_(),f("div",et,[e("div",ot,[e("div",st,o(a(c)("app")),1),i(S,{onClick:v},{default:p(()=>[i(L,{class:"mr-[2px]"},{default:p(()=>[i(n)]),_:1}),e("span",null,o(a(c)("appStore")),1)]),_:1})]),e("div",at,[(_(!0),f(N,null,R(u.appList,(l,I)=>(_(),f("div",{key:I,class:"app-item w-[284px] box-border p-[18px] pb-[24px] bg-[#fff] rounded-[8px] cursor-pointer mr-[24px] mb-[24px]",onClick:ut=>w(l)},[e("div",rt,[i(b,{class:"w-[40px] h-[40px] rounded-[8px]",src:a(G)(l.icon),fit:"contain"},{error:p(()=>[nt]),_:2},1032,["src"]),e("div",it,o(l.title),1)]),e("div",ct,o(l.desc),1)],8,pt))),128)),!u.appList.length&&!r.value?(_(),P(A,{key:0,class:"mx-auto overview-empty"},{image:p(()=>[mt]),description:p(()=>[e("p",lt,[e("span",null,o(a(c)("descriptionLeft")),1),i(C,{type:"primary",onClick:v,class:"mx-[5px]"},{default:p(()=>[Q(o(a(c)("link")),1)]),_:1}),e("span",null,o(a(c)("descriptionRight")),1)])]),_:1})):T("",!0)])])),[[B,r.value]])}}});const te=tt(_t,[["__scopeId","data-v-2930827a"]]);export{te as default};
|