系统设置
角色
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

@ -93,7 +93,7 @@
</el-card> </el-card>
</div> </div>
<div class="lg:flex gap-4"> <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> <template #header>
<span>访问量趋势图</span> <span>访问量趋势图</span>
</template> </template>
@ -105,7 +105,7 @@
/> />
</div> </div>
</el-card> </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> <template #header>
<span>销售额趋势图</span> <span>销售额趋势图</span>
</template> </template>
@ -116,7 +116,7 @@
:autoresize="true" :autoresize="true"
/> />
</div> </div>
</el-card> </el-card> -->
</div> </div>
</div> </div>
</template> </template>

View File

@ -1,5 +1,7 @@
package com.mdd.admin.service.impl; 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.admin.service.IIndexService;
import com.mdd.common.config.GlobalConfig; import com.mdd.common.config.GlobalConfig;
import com.mdd.common.util.*; import com.mdd.common.util.*;
@ -51,9 +53,67 @@ public class IndexServiceImpl implements IIndexService {
// 访客图表 // 访客图表
Map<String, Object> visitor = new LinkedHashMap<>(); Map<String, Object> visitor = new LinkedHashMap<>();
visitor.put("date", TimeUtils.daysAgoDate(15)); 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("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; return console;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB