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

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

86 lines
3.7 KiB
Plaintext

// Copyright (c) 2005 DMTF. All rights reserved.
[Abstract, Version ( "2.6.0" ),
UMLPackagePath ( "CIM::Policy" ),
Description (
"A class representing a rule-specific or reusable policy "
"condition to be evaluated in conjunction with a Policy Rule. "
"Since all operational details of a PolicyCondition are "
"provided in subclasses of this object, this class is abstract." )]
class CIM_PolicyCondition : CIM_Policy {
[Key, Description (
"The name of the class or the subclass used in the "
"creation of the System object in whose scope this "
"PolicyCondition is defined. \n"
"\n"
"This property helps to identify the System object in "
"whose scope this instance of PolicyCondition exists. For "
"a rule-specific PolicyCondition, this is the System in "
"whose context the PolicyRule is defined. For a reusable "
"PolicyCondition, this is the instance of "
"PolicyRepository (which is a subclass of System) that "
"holds the Condition. \n"
"\n"
"Note that this property, and the analogous property "
"SystemName, do not represent propagated keys from an "
"instance of the class System. Instead, they are "
"properties defined in the context of this class, which "
"repeat the values from the instance of System to which "
"this PolicyCondition is related, either directly via the "
"PolicyConditionInPolicyRepository association or "
"indirectly via the PolicyConditionInPolicyRule "
"aggregation." ),
MaxLen ( 256 )]
string SystemCreationClassName;
[Key, Description (
"The name of the System object in whose scope this "
"PolicyCondition is defined. \n"
"\n"
"This property completes the identification of the System "
"object in whose scope this instance of PolicyCondition "
"exists. For a rule-specific PolicyCondition, this is the "
"System in whose context the PolicyRule is defined. For a "
"reusable PolicyCondition, this is the instance of "
"PolicyRepository (which is a subclass of System) that "
"holds the Condition." ),
MaxLen ( 256 )]
string SystemName;
[Key, Description (
"For a rule-specific PolicyCondition, the "
"CreationClassName of the PolicyRule object with which "
"this Condition is associated. For a reusable Policy "
"Condition, a special value, \'NO RULE\', should be used "
"to indicate that this Condition is reusable and not "
"associated with a single PolicyRule." ),
MaxLen ( 256 )]
string PolicyRuleCreationClassName;
[Key, Description (
"For a rule-specific PolicyCondition, the name of the "
"PolicyRule object with which this Condition is "
"associated. For a reusable PolicyCondition, a special "
"value, \'NO RULE\', should be used to indicate that this "
"Condition is reusable and not associated with a single "
"PolicyRule." ),
MaxLen ( 256 )]
string PolicyRuleName;
[Key, Description (
"CreationClassName indicates the name of the class or the "
"subclass used in the creation of an instance. When used "
"with the other key properties of this class, this "
"property allows all instances of this class and its "
"subclasses to be uniquely identified." ),
MaxLen ( 256 )]
string CreationClassName;
[Key, Description (
"A user-friendly name of this PolicyCondition." ),
MaxLen ( 256 )]
string PolicyConditionName;
};