admin/backend/amt-sdk-20-0-0-1/WS-ManagementCPPModule/Src/WSMAN MOFs/CIM_EnabledLogicalElementCapabilities.mof
lvfengfree b92e1119ae fix: 修复菜单为空问题 - 移除后端过滤home路由的错误逻辑
- 修复RouteService中错误过滤home路由的问题
- 后端现在正确返回所有用户有权限的路由
- 添加设备管理相关功能(列表、在线监控、电源管理、远程监控)
- 添加详细的修复文档和重启脚本
- 更新权限配置脚本

问题根源:后端代码中有逻辑会过滤掉home路由,导致前端收到空数组,无法生成菜单
解决方案:移除过滤home路由的逻辑,让后端返回所有有权限的路由
2026-03-01 09:50:19 +08:00

57 lines
2.4 KiB
Plaintext

// Copyright (c) 2009 DMTF. All rights reserved.
[Version ( "2.22.0" ),
UMLPackagePath ( "CIM::Core::Capabilities" ),
Description (
"EnabledLogicalElementCapabilities describes the capabilities "
"supported for changing the state of the associated "
"EnabledLogicalElement." )]
class CIM_EnabledLogicalElementCapabilities : CIM_Capabilities {
[Description (
"Boolean indicating whether the ElementName can be modified."
),
MappingStrings {
"FC-SWAPI.INCITS-T11|SWAPI_UNIT_CONFIG_CAPS_T|EditName" },
ModelCorrespondence { "CIM_ManagedElement.ElementName" }]
boolean ElementNameEditSupported;
[Description ( "Maximum supported ElementName length." ),
MaxValue ( 256 ),
MappingStrings {
"FC-SWAPI.INCITS-T11|SWAPI_UNIT_CONFIG_CAPS_T|MaxNameChars" },
ModelCorrespondence {
"CIM_FCSwitchCapabilities.ElementNameEditSupported",
"CIM_EnabledLogicalElementCapabilities.ElementNameMask" }]
uint16 MaxElementNameLen;
[Description (
"RequestedStatesSupported indicates the possible states "
"that can be requested when using the method "
"RequestStateChange on the EnabledLogicalElement." ),
ValueMap { "2", "3", "4", "6", "7", "8", "9", "10", "11" },
Values { "Enabled", "Disabled", "Shut Down", "Offline",
"Test", "Defer", "Quiesce", "Reboot", "Reset" },
ModelCorrespondence {
"CIM_EnabledLogicalElement.RequestStateChange" }]
uint16 RequestedStatesSupported[];
[Description (
"This string expresses the restrictions on "
"ElementName.The mask is expressed as a regular "
"expression.See DMTF standard ABNF with the Management "
"Profile Specification Usage Guide, appendix C for the "
"regular expression syntax permitted. \n"
"Since the ElementNameMask can describe the maximum "
"length of the ElementName,any length defined in the "
"regexp is in addition to the restriction defined in "
"MaxElementNameLen (causing the smaller value to be the "
"maximum length) The ElementName value satisfies the "
"restriction, if and only if it matches the regular "
"expression" ),
ModelCorrespondence {
"CIM_EnabledLogicalElementCapabilities.MaxElementNameLen" }]
string ElementNameMask;
};