From e0819f250675be1f69c8402d5bd0431b92ee7430 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 11 Jan 2023 11:08:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E5=AF=BC=E5=87=BA=E5=A2=9E=E5=8A=A0=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/db/migration/V49__1.18.2.sql | 185 +++++++++++++++++- .../canvas/components/editor/Preview.vue | 1 + .../canvas/customComponent/UserView.vue | 1 + 3 files changed, 186 insertions(+), 1 deletion(-) diff --git a/backend/src/main/resources/db/migration/V49__1.18.2.sql b/backend/src/main/resources/db/migration/V49__1.18.2.sql index 150528927b..71d0e02a1c 100644 --- a/backend/src/main/resources/db/migration/V49__1.18.2.sql +++ b/backend/src/main/resources/db/migration/V49__1.18.2.sql @@ -1,3 +1,186 @@ UPDATE `my_plugin` SET `version` = '1.18.2' -where `plugin_id` > 0 and `version` = '1.18.1'; \ No newline at end of file +where `plugin_id` > 0 + and `version` = '1.18.1'; + +UPDATE `sys_menu` +SET `pid` = 8 +WHERE `menu_id` = 800; + +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 (802, + 0, + 0, + 2, + '视图导出', + NULL, + NULL, + 999, + NULL, + NULL, + 0, + 0, + 0, + 'view:export', + NULL, + NULL, + NULL, + NULL); + +INSERT INTO `sys_auth` (`id`, + `auth_source`, + `auth_source_type`, + `auth_target`, + `auth_target_type`, + `auth_time`, + `auth_details`, + `auth_user`, + `update_time`, + `copy_from`, + `copy_id`) +VALUES ('dc3536c2-5193-4fcd-a875-926e3e712344', + '802', + 'menu', + '2', + 'role', + 1673405964319, + NULL, + 'admin', + NULL, + NULL, + NULL); +INSERT INTO `sys_auth` (`id`, + `auth_source`, + `auth_source_type`, + `auth_target`, + `auth_target_type`, + `auth_time`, + `auth_details`, + `auth_user`, + `update_time`, + `copy_from`, + `copy_id`) +VALUES ('dc7fa546-9ac4-49a7-8af2-152be9fdde68', + '802', + 'menu', + '1', + 'role', + 1673405986872, + NULL, + 'admin', + NULL, + NULL, + NULL); +INSERT INTO `sys_auth_detail` (`id`, + `auth_id`, + `privilege_name`, + `privilege_type`, + `privilege_value`, + `privilege_extend`, + `remark`, + `create_user`, + `create_time`, + `update_time`, + `copy_from`, + `copy_id`) +VALUES ('01c6367b-915c-11ed-bd88-0242ac130004', + 'dc7fa546-9ac4-49a7-8af2-152be9fdde68', + 'i18n_auth_grant', + 15, + 0, + 'grant', + '基础权限-授权', + 'admin', + 1673405987000, + NULL, + NULL, + NULL); +INSERT INTO `sys_auth_detail` (`id`, + `auth_id`, + `privilege_name`, + `privilege_type`, + `privilege_value`, + `privilege_extend`, + `remark`, + `create_user`, + `create_time`, + `update_time`, + `copy_from`, + `copy_id`) +VALUES ('01c63c6c-915c-11ed-bd88-0242ac130004', + 'dc7fa546-9ac4-49a7-8af2-152be9fdde68', + 'i18n_auth_use', + 1, + 1, + 'use', + '基础权限-使用', + 'admin', + 1673405987000, + NULL, + NULL, + NULL); +INSERT INTO `sys_auth_detail` (`id`, + `auth_id`, + `privilege_name`, + `privilege_type`, + `privilege_value`, + `privilege_extend`, + `remark`, + `create_user`, + `create_time`, + `update_time`, + `copy_from`, + `copy_id`) +VALUES ('f4559db9-915b-11ed-bd88-0242ac130004', + 'dc3536c2-5193-4fcd-a875-926e3e712344', + 'i18n_auth_grant', + 15, + 0, + 'grant', + '基础权限-授权', + 'admin', + 1673405964000, + NULL, + NULL, + NULL); +INSERT INTO `sys_auth_detail` (`id`, + `auth_id`, + `privilege_name`, + `privilege_type`, + `privilege_value`, + `privilege_extend`, + `remark`, + `create_user`, + `create_time`, + `update_time`, + `copy_from`, + `copy_id`) +VALUES ('f455a074-915b-11ed-bd88-0242ac130004', + 'dc3536c2-5193-4fcd-a875-926e3e712344', + 'i18n_auth_use', + 1, + 1, + 'use', + '基础权限-使用', + 'admin', + 1673405964000, + NULL, + NULL, + NULL); diff --git a/frontend/src/components/canvas/components/editor/Preview.vue b/frontend/src/components/canvas/components/editor/Preview.vue index 49a752d6bd..63be1e3724 100644 --- a/frontend/src/components/canvas/components/editor/Preview.vue +++ b/frontend/src/components/canvas/components/editor/Preview.vue @@ -121,6 +121,7 @@ diff --git a/frontend/src/components/canvas/customComponent/UserView.vue b/frontend/src/components/canvas/customComponent/UserView.vue index a091d4c0d8..4912efc13a 100644 --- a/frontend/src/components/canvas/customComponent/UserView.vue +++ b/frontend/src/components/canvas/customComponent/UserView.vue @@ -150,6 +150,7 @@