Cpte-Vue3/src/views/base/point/V20251028_1__menu_insert_Po...

40 lines
5.4 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

-- 注意该页面对应的前台目录为views/base文件夹下
-- 如果你想更改到其他目录请修改sql中component字段对应的值
-- 主菜单
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('176164598530101', NULL, '库位', '/base/pointList', 'base/PointList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2025-10-28 18:06:25', NULL, NULL, 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 ('176164598530102', '176164598530101', '添加库位', NULL, NULL, 0, NULL, NULL, 2, 'base:base_point:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-10-28 18:06:25', NULL, NULL, 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 ('176164598530103', '176164598530101', '编辑库位', NULL, NULL, 0, NULL, NULL, 2, 'base:base_point:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-10-28 18:06:25', NULL, NULL, 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 ('176164598530104', '176164598530101', '删除库位', NULL, NULL, 0, NULL, NULL, 2, 'base:base_point:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-10-28 18:06:25', NULL, NULL, 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 ('176164598530105', '176164598530101', '批量删除库位', NULL, NULL, 0, NULL, NULL, 2, 'base:base_point:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-10-28 18:06:25', NULL, NULL, 0, 0, '1', 0);
-- 导出excel
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 ('176164598530106', '176164598530101', '导出excel_库位', NULL, NULL, 0, NULL, NULL, 2, 'base:base_point:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-10-28 18:06:25', NULL, NULL, 0, 0, '1', 0);
-- 导入excel
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 ('176164598530107', '176164598530101', '导入excel_库位', NULL, NULL, 0, NULL, NULL, 2, 'base:base_point:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-10-28 18:06:25', NULL, NULL, 0, 0, '1', 0);
-- 角色授权(以 admin 角色为例role_id 可替换)
INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip) VALUES ('176164598530208', 'f6817f48af4fb3af11b9e8bf182f618b', '176164598530101', NULL, '2025-10-28 18:06:25', '127.0.0.1');
INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip) VALUES ('176164598530209', 'f6817f48af4fb3af11b9e8bf182f618b', '176164598530102', NULL, '2025-10-28 18:06:25', '127.0.0.1');
INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip) VALUES ('176164598530210', 'f6817f48af4fb3af11b9e8bf182f618b', '176164598530103', NULL, '2025-10-28 18:06:25', '127.0.0.1');
INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip) VALUES ('176164598530211', 'f6817f48af4fb3af11b9e8bf182f618b', '176164598530104', NULL, '2025-10-28 18:06:25', '127.0.0.1');
INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip) VALUES ('176164598530212', 'f6817f48af4fb3af11b9e8bf182f618b', '176164598530105', NULL, '2025-10-28 18:06:25', '127.0.0.1');
INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip) VALUES ('176164598530213', 'f6817f48af4fb3af11b9e8bf182f618b', '176164598530106', NULL, '2025-10-28 18:06:25', '127.0.0.1');
INSERT INTO sys_role_permission (id, role_id, permission_id, data_rule_ids, operate_date, operate_ip) VALUES ('176164598530214', 'f6817f48af4fb3af11b9e8bf182f618b', '176164598530107', NULL, '2025-10-28 18:06:25', '127.0.0.1');