Files
MES/yawei-mes/.sql/2025-12-17_v1.0.48_普罗生物_周启威_YIOT数据分析.sql
2026-04-02 10:39:03 +08:00

20 lines
1.1 KiB
SQL
Raw 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.

-- =============================================
-- YIOT数据趋势分析菜单配置
-- 作者: jinzhong
-- 日期: 2025-12-17
-- 说明: 在YIOT模块下添加数据趋势分析二级菜单
-- =============================================
-- 查询YIOT父菜单ID假设IoT设备管理的菜单ID为2380
-- 如果父菜单ID不同请根据实际情况修改parent_id
-- 插入数据趋势分析菜单
INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
VALUES ('数据趋势分析', 2380, 10, 'trend', 'mes/iot/trend/index', 1, 0, 'C', '0', '0', 'mes:iot:query', 'data-line', 'admin', NOW(), '', NULL, 'IOT数据趋势分析支持多设备多参数比较');
-- 如果需要查询父菜单ID可以使用以下SQL
-- SELECT menu_id, menu_name, path FROM sys_menu WHERE path LIKE '%iot%' AND menu_type = 'M';
-- 如果需要删除该菜单(回滚用):
-- DELETE FROM sys_menu WHERE menu_name = '数据趋势分析' AND component = 'mes/iot/trend/index';