pangu-user-platform/scripts/sql/V1.0.7__hide_system_menus.sql

27 lines
1.2 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- =====================================================
-- 隐藏指定系统菜单(与菜单管理界面中圈出的项一致)
-- 显示状态0=显示 1=隐藏
-- 幂等,可重复执行
--
-- 在 192.168.71.56 服务器上执行(更新程序使用的库 pguser-db@8.148.25.55
-- 1. 上传本文件到服务器scp scripts/sql/V1.0.7__hide_system_menus.sql root@192.168.71.56:/opt/pangu-user-platform/scripts/
-- 2. ssh root@192.168.71.56
-- 3. mysql -h 8.148.25.55 -uroot -p pguser-db < /opt/pangu-user-platform/scripts/V1.0.7__hide_system_menus.sql
-- 执行后管理员重新登录或刷新菜单后即可生效。
-- =====================================================
-- Admin监控、任务调度中心、系统工具、租户管理、PLUS官网、测试菜单及其子菜单
UPDATE sys_menu SET visible = '1' WHERE menu_id IN (
117, -- Admin监控
120, -- 任务调度中心
3, -- 系统工具
6, -- 租户管理(目录)
121, -- 租户管理(页面)
4, -- PLUS官网
5, -- 测试菜单(目录)
1500, -- 测试单表
1501, 1502, 1503, 1504, 1505, -- 测试单表按钮
1506, -- 测试树表
1507, 1508, 1509, 1510, 1511 -- 测试树表按钮
);