refactor(system/dict): 优化字典项颜色

This commit is contained in:
2025-03-24 22:53:03 +08:00
parent 3854040d11
commit 1861a80979
3 changed files with 20 additions and 20 deletions

View File

@@ -25,29 +25,29 @@ package top.continew.admin.common.constant;
public class UiConstants {
/**
* 主色(极致蓝)
* 主色(极致蓝)
*/
public static final String COLOR_PRIMARY = "arcoblue";
public static final String COLOR_PRIMARY = "primary";
/**
* 成功色(仙野绿)
*/
public static final String COLOR_SUCCESS = "green";
public static final String COLOR_SUCCESS = "success";
/**
* 警告色(活力橙)
*/
public static final String COLOR_WARNING = "orangered";
public static final String COLOR_WARNING = "warning";
/**
* 错误色(浪漫红)
*/
public static final String COLOR_ERROR = "red";
public static final String COLOR_ERROR = "error";
/**
* 默认色(中性灰)
*/
public static final String COLOR_DEFAULT = "gray";
public static final String COLOR_DEFAULT = "default";
private UiConstants() {
}

View File

@@ -214,13 +214,13 @@ VALUES
INSERT INTO `sys_dict_item`
(`id`, `label`, `value`, `color`, `sort`, `description`, `status`, `dict_id`, `create_user`, `create_time`)
VALUES
(1, '通知', '1', 'blue', 1, NULL, 1, 1, 1, NOW()),
(2, '活动', '2', 'orangered', 2, NULL, 1, 1, 1, NOW()),
(3, '安全消息', '1', 'blue', 1, NULL, 1, 2, 1, NOW()),
(4, '活动消息', '2', 'orangered', 2, NULL, 1, 2, 1, NOW()),
(5, '桌面端', 'PC', 'blue', 1, NULL, 1, 3, 1, NOW()),
(6, '安卓', 'ANDROID', '#148628', 2, NULL, 1, 3, 1, NOW()),
(7, '小程序', 'XCX', '#7930AD', 3, NULL, 1, 3, 1, NOW());
(1, '通知', '1', 'primary', 1, NULL, 1, 1, 1, NOW()),
(2, '活动', '2', 'success', 2, NULL, 1, 1, 1, NOW()),
(3, '安全消息', '1', 'warning', 1, NULL, 1, 2, 1, NOW()),
(4, '活动消息', '2', 'success', 2, NULL, 1, 2, 1, NOW()),
(5, '桌面端', 'PC', 'primary', 1, NULL, 1, 3, 1, NOW()),
(6, '安卓', 'ANDROID', 'success', 2, NULL, 1, 3, 1, NOW()),
(7, '小程序', 'XCX', 'warning', 3, NULL, 1, 3, 1, NOW());
-- 初始化默认用户和角色关联数据
INSERT INTO `sys_user_role`

View File

@@ -214,13 +214,13 @@ VALUES
INSERT INTO "sys_dict_item"
("id", "label", "value", "color", "sort", "description", "status", "dict_id", "create_user", "create_time")
VALUES
(1, '通知', '1', 'blue', 1, NULL, 1, 1, 1, NOW()),
(2, '活动', '2', 'orangered', 2, NULL, 1, 1, 1, NOW()),
(3, '安全消息', '1', 'blue', 1, NULL, 1, 2, 1, NOW()),
(4, '活动消息', '2', 'orangered', 2, NULL, 1, 2, 1, NOW()),
(5, '桌面端', 'PC', 'blue', 1, NULL, 1, 3, 1, NOW()),
(6, '安卓', 'ANDROID', '#148628', 2, NULL, 1, 3, 1, NOW()),
(7, '小程序', 'XCX', '#7930AD', 3, NULL, 1, 3, 1, NOW());
(1, '通知', '1', 'primary', 1, NULL, 1, 1, 1, NOW()),
(2, '活动', '2', 'success', 2, NULL, 1, 1, 1, NOW()),
(3, '安全消息', '1', 'warning', 1, NULL, 1, 2, 1, NOW()),
(4, '活动消息', '2', 'success', 2, NULL, 1, 2, 1, NOW()),
(5, '桌面端', 'PC', 'primary', 1, NULL, 1, 3, 1, NOW()),
(6, '安卓', 'ANDROID', 'success', 2, NULL, 1, 3, 1, NOW()),
(7, '小程序', 'XCX', 'warning', 3, NULL, 1, 3, 1, NOW());
-- 初始化默认用户和角色关联数据
INSERT INTO "sys_user_role"