From cb945a007dc896c652912aa33004319079e8fc92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Tue, 7 Dec 2021 13:42:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86,=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=AE=A1=E7=90=86,=E4=BB=A5=E5=8F=8Asql=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ++ frontend/src/views/system/authority/index.vue | 2 +- frontend/src/views/system/dept/form.vue | 6 +- frontend/src/views/system/role/form.vue | 159 +++++++++++++ frontend/src/views/system/role/index.vue | 211 ++++++++++++++++++ 5 files changed, 387 insertions(+), 4 deletions(-) create mode 100644 frontend/src/views/system/role/form.vue create mode 100644 frontend/src/views/system/role/index.vue diff --git a/README.md b/README.md index bfaf554..c7a7f33 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,16 @@ update sys_menu set hidden=1 where menu_id=58; update sys_menu set title='数据源' where menu_id=34; update sys_menu set title='Dashboard' where menu_id=30; ``` +```aidl +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (41, 1, 0, 1, '权限管理', 'system-auth', 'system/authority/index', 4, 'password', 'system-auth', b'0', b'0', b'0', 'auth:read', NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (4, 1, 3, 1, '组织管理', 'system-dept', 'system/dept/index', 3, 'dept', 'dept', b'0', b'0', b'0', 'dept:read', NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (18, 4, 0, 2, '创建组织', NULL, NULL, 999, NULL, NULL, NULL, b'0', b'0', 'dept:add', NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (19, 4, 0, 2, '删除组织', NULL, NULL, 999, NULL, NULL, NULL, b'0', b'0', 'dept:del', NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (20, 4, 0, 2, '编辑组织', NULL, NULL, 999, NULL, NULL, NULL, b'0', b'0', 'dept:edit', NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (37, 1, 0, 1, '组织表单', 'system-dept-form', 'system/dept/form', 999, NULL, 'dept-form', NULL, b'0', b'1', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (5, 1, 3, 1, '角色管理', 'system-role', 'system/role/index', 2, 'role', 'role', b'0', b'0', b'0', 'role:read', NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (23, 5, 0, 2, '编辑角色', NULL, NULL, 999, NULL, NULL, NULL, b'0', b'0', 'role:edit', NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (22, 5, 0, 2, '删除角色', NULL, NULL, 999, NULL, NULL, NULL, b'0', b'0', 'role:del', NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (21, 5, 0, 2, '创建角色', NULL, NULL, 999, NULL, NULL, NULL, b'0', b'0', 'role:add', NULL, NULL, NULL, NULL); +INSERT INTO `sys_menu` (`menu_id`, `pid`, `sub_count`, `type`, `title`, `name`, `component`, `menu_sort`, `icon`, `path`, `i_frame`, `cache`, `hidden`, `permission`, `create_by`, `update_by`, `create_time`, `update_time`) VALUES (38, 1, 0, 1, '角色表单', 'system-role-form', 'system/role/form', 999, NULL, 'role-form', NULL, b'0', b'1', NULL, NULL, NULL, NULL, NULL); +``` diff --git a/frontend/src/views/system/authority/index.vue b/frontend/src/views/system/authority/index.vue index 533509b..fd96253 100644 --- a/frontend/src/views/system/authority/index.vue +++ b/frontend/src/views/system/authority/index.vue @@ -1,5 +1,5 @@