mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 08:07:46 +08:00
菜单
系统设置 角色
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="lg:flex gap-4">
|
||||
<el-card class="!border-none mb-4 lg:mb-0 w-full lg:w-2/3" shadow="never">
|
||||
<el-card class="!border-none w-full lg:w-3/3" shadow="never">
|
||||
<template #header>
|
||||
<span>访问量趋势图</span>
|
||||
</template>
|
||||
@@ -105,7 +105,7 @@
|
||||
/>
|
||||
</div>
|
||||
</el-card>
|
||||
<el-card class="!border-none w-full lg:w-1/3" shadow="never">
|
||||
<!-- <el-card class="!border-none w-full lg:w-1/3" shadow="never">
|
||||
<template #header>
|
||||
<span>销售额趋势图</span>
|
||||
</template>
|
||||
@@ -116,7 +116,7 @@
|
||||
:autoresize="true"
|
||||
/>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-card> -->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.mdd.admin.service.impl;
|
||||
|
||||
import com.alibaba.fastjson2.JSONArray;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.mdd.admin.service.IIndexService;
|
||||
import com.mdd.common.config.GlobalConfig;
|
||||
import com.mdd.common.util.*;
|
||||
@@ -51,9 +53,67 @@ public class IndexServiceImpl implements IIndexService {
|
||||
// 访客图表
|
||||
Map<String, Object> visitor = new LinkedHashMap<>();
|
||||
visitor.put("date", TimeUtils.daysAgoDate(15));
|
||||
visitor.put("list", Arrays.asList(12,13,11,5,8,22,14,9,456,62,78,12,18,22,46));
|
||||
visitor.put("list", new JSONArray() {{
|
||||
add(new JSONObject() {{
|
||||
put("name", "访客数");
|
||||
put("data", Arrays.asList(12,13,11,5,8,22,14,9,456,62,78,12,18,22,46));
|
||||
}});
|
||||
}});
|
||||
console.put("visitor", visitor);
|
||||
|
||||
console.put("menu", new JSONArray() {{
|
||||
|
||||
add(new JSONObject() {{
|
||||
put("name", "管理员");
|
||||
put("image", UrlUtils.toAbsoluteUrl("/api/static/menu_admin.png"));
|
||||
put("url", "/permission/admin");
|
||||
}});
|
||||
|
||||
add(new JSONObject() {{
|
||||
put("name", "角色管理");
|
||||
put("image", UrlUtils.toAbsoluteUrl("/api/static/menu_role.png"));
|
||||
put("url", "/permission/role");
|
||||
}});
|
||||
|
||||
add(new JSONObject() {{
|
||||
put("name", "部门管理");
|
||||
put("image", UrlUtils.toAbsoluteUrl("/api/static/menu_dept.png"));
|
||||
put("url", "/organization/department");
|
||||
}});
|
||||
|
||||
add(new JSONObject() {{
|
||||
put("name", "字典管理");
|
||||
put("image", UrlUtils.toAbsoluteUrl("/api/static/menu_dict.png"));
|
||||
put("url", "/dev_tools/dict");
|
||||
}});
|
||||
|
||||
add(new JSONObject() {{
|
||||
put("name", "代码生成器");
|
||||
put("image", UrlUtils.toAbsoluteUrl("/api/static/menu_generator.png"));
|
||||
put("url", "/dev_tools/code");
|
||||
}});
|
||||
|
||||
add(new JSONObject() {{
|
||||
put("name", "素材中心");
|
||||
put("image", UrlUtils.toAbsoluteUrl("/api/static/menu_file.png"));
|
||||
put("url", "/material/index");
|
||||
}});
|
||||
|
||||
add(new JSONObject() {{
|
||||
put("name", "菜单权限");
|
||||
put("image", UrlUtils.toAbsoluteUrl("/api/static/menu_auth.png"));
|
||||
put("url", "/permission/menu");
|
||||
}});
|
||||
|
||||
add(new JSONObject() {{
|
||||
put("name", "网站信息");
|
||||
put("image", UrlUtils.toAbsoluteUrl("/api/static/menu_website.png"));
|
||||
put("url", "/setting/website/information");
|
||||
}});
|
||||
|
||||
}});
|
||||
|
||||
|
||||
return console;
|
||||
}
|
||||
|
||||
|
||||
BIN
server/like-common/src/main/resources/static/menu_auth.png
Normal file
BIN
server/like-common/src/main/resources/static/menu_auth.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
BIN
server/like-common/src/main/resources/static/menu_dept.png
Normal file
BIN
server/like-common/src/main/resources/static/menu_dept.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
BIN
server/like-common/src/main/resources/static/menu_dict.png
Normal file
BIN
server/like-common/src/main/resources/static/menu_dict.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
BIN
server/like-common/src/main/resources/static/menu_file.png
Normal file
BIN
server/like-common/src/main/resources/static/menu_file.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
BIN
server/like-common/src/main/resources/static/menu_generator.png
Normal file
BIN
server/like-common/src/main/resources/static/menu_generator.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
BIN
server/like-common/src/main/resources/static/menu_role.png
Normal file
BIN
server/like-common/src/main/resources/static/menu_role.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
Reference in New Issue
Block a user