-- 车间可视化菜单配置
-- 父菜单：车间可视化
INSERT INTO `sys_permission` (`id`, `parent_id`, `name`, `url`, `component`, `is_route`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_leaf`, `keep_alive`, `hidden`, `hide_tab`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1899000000000000001', '', '车间可视化', '/workshop', 'layouts/default/index', 1, '', '/workshop/visualization', 0, NULL, '0', 15.00, 0, 'ant-design:area-chart-outlined', 0, 0, 0, 0, '智能车间3D可视化监控系统', 'admin', NOW(), 'admin', NOW(), 0, 0, '1', 0);

-- 子菜单：车间监控
INSERT INTO `sys_permission` (`id`, `parent_id`, `name`, `url`, `component`, `is_route`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_leaf`, `keep_alive`, `hidden`, `hide_tab`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1899000000000000002', '1899000000000000001', '车间监控', '/workshop/visualization', 'workshop/WorkshopVisualization', 1, '', NULL, 1, NULL, '0', 1.00, 0, 'ant-design:line-chart-outlined', 1, 0, 0, 0, '实时监控车间设备和生产状态', 'admin', NOW(), 'admin', NOW(), 0, 0, '1', 0);

-- 子菜单：设备管理
INSERT INTO `sys_permission` (`id`, `parent_id`, `name`, `url`, `component`, `is_route`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_leaf`, `keep_alive`, `hidden`, `hide_tab`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1899000000000000003', '1899000000000000001', '设备管理', '/workshop/device', 'workshop/DeviceManagement', 1, '', NULL, 1, NULL, '0', 2.00, 0, 'ant-design:setting-outlined', 1, 0, 0, 0, '车间设备信息管理', 'admin', NOW(), 'admin', NOW(), 0, 0, '1', 0);

-- 子菜单：生产报表
INSERT INTO `sys_permission` (`id`, `parent_id`, `name`, `url`, `component`, `is_route`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_leaf`, `keep_alive`, `hidden`, `hide_tab`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1899000000000000004', '1899000000000000001', '生产报表', '/workshop/report', 'workshop/ProductionReport', 1, '', NULL, 1, NULL, '0', 3.00, 0, 'ant-design:file-text-outlined', 1, 0, 0, 0, '生产数据统计报表', 'admin', NOW(), 'admin', NOW(), 0, 0, '1', 0);

-- 权限配置：车间监控查看
INSERT INTO `sys_permission` (`id`, `parent_id`, `name`, `url`, `component`, `is_route`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_leaf`, `keep_alive`, `hidden`, `hide_tab`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1899000000000000005', '1899000000000000002', '查看车间监控', '/workshop/visualization/view', NULL, 0, '', NULL, 1, 'workshop:visualization:view', '1', 1.00, 0, '', 1, 0, 0, 0, '查看车间监控页面权限', 'admin', NOW(), 'admin', NOW(), 0, 0, '1', 0);

-- 权限配置：设备管理查看
INSERT INTO `sys_permission` (`id`, `parent_id`, `name`, `url`, `component`, `is_route`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_leaf`, `keep_alive`, `hidden`, `hide_tab`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1899000000000000006', '1899000000000000003', '查看设备管理', '/workshop/device/view', NULL, 0, '', NULL, 1, 'workshop:device:view', '1', 1.00, 0, '', 1, 0, 0, 0, '查看设备管理页面权限', 'admin', NOW(), 'admin', NOW(), 0, 0, '1', 0);

-- 权限配置：生产报表查看
INSERT INTO `sys_permission` (`id`, `parent_id`, `name`, `url`, `component`, `is_route`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_leaf`, `keep_alive`, `hidden`, `hide_tab`, `description`, `create_by`, `create_time`, `update_by`, `update_time`, `del_flag`, `rule_flag`, `status`, `internal_or_external`) VALUES ('1899000000000000007', '1899000000000000004', '查看生产报表', '/workshop/report/view', NULL, 0, '', NULL, 1, 'workshop:report:view', '1', 1.00, 0, '', 1, 0, 0, 0, '查看生产报表页面权限', 'admin', NOW(), 'admin', NOW(), 0, 0, '1', 0);
