系统设置
角色
This commit is contained in:
pan.wl.2
2024-10-29 14:39:58 +08:00
parent 1935bc2e62
commit b5096b5f5c
8 changed files with 64 additions and 4 deletions

View File

@@ -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;
}