-- 大项目部战略决策中心菜单配置

SET @AdminRoleId = '94e3a9bb0fce4547886972998fddba1c'; -- 系统管理员角色ID
SET @ParentMenuId = '725873504657868037'; -- 报表中心父级

DELETE FROM BASE_AUTHORIZE WHERE F_ItemId = 'major-project-dashboard';
DELETE FROM BASE_MODULE WHERE F_Id = 'major-project-dashboard';

INSERT INTO BASE_MODULE
(
  F_Id, F_ParentId, F_Type, F_FullName, F_EnCode, F_UrlAddress, F_Icon, F_SortCode,
  F_EnabledMark, F_Category, F_DeleteMark, F_LinkTarget, F_PropertyJson,
  F_IsButtonAuthorize, F_IsColumnAuthorize, F_IsDataAuthorize, F_IsFormAuthorize, F_CreatorTime
)
VALUES
(
  'major-project-dashboard',
  @ParentMenuId,
  2,
  '大项目部战略决策中心',
  'majorProjectDashboard',
  'extend/majorProjectDashboard',
  'icon-ym icon-ym-generator-kanban',
  12,
  1,
  'Web',
  NULL,
  '_self',
  '{"moduleId":"","iconBackgroundColor":"","isTree":0}',
  1,
  1,
  1,
  1,
  NOW()
);

INSERT INTO BASE_AUTHORIZE
(
  F_Id, F_ItemType, F_ItemId, F_ObjectType, F_ObjectId, F_SortCode, F_CreatorTime, F_CreatorUserId
)
VALUES
(
  REPLACE(UUID(), '-', ''),
  'module',
  'major-project-dashboard',
  'Role',
  @AdminRoleId,
  1,
  NOW(),
  'admin'
);
