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

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

90 lines
4.1 KiB
Plaintext

// Copyright (c) 2007-2010, Intel Corporation. All rights reserved.
[Version ( "10.0" ),
Description (
"The IPS_PowerManagementService inherits "
"CIM_PowerManagementService and adds capability "
"to control OS power state" )]
class IPS_PowerManagementService : CIM_Service {
[Description (
"RequestOSPowerSavingStateChange defines the desired OS power"
"saving state of the managed element, and when the element"
" should be put into that state. The "
"RequestOSPowerSavingStateChange method has xxx input "
" parameters and a result code. \n"
"- OSPowerSavingState indicates the desired OS power saving "
"state. \n"
"- ManagedElement indicates the element whose OS state is "
"set. This element SHOULD be associated to the service "
"using the AssociatedPowerManagementService "
"relationship. \n"
"- Time indicates when the OS power saving state should be"
" set, either as a regular date-time value or as an "
" interval value (where the interval begins when the "
"method invocation is received). \n"
"- Job is a reference to the job if started. \n"
"- TimeOutPeriod indicates the maximum amount of time a "
"client expects the transition to take. \n" ),
ValueMap { "0", "1", "2", "3", "4", "5", "6", "..", "4096",
"4097", "4098", "4099", "4100..32767", "32768..65535" },
Values { "Completed with No Error", "Not Supported",
"Unknown or Unspecified Error",
"Cannot complete within Timeout Period", "Failed",
"Invalid Parameter", "In Use", "DMTF Reserved",
"Method Parameters Checked - Job Started",
"Invalid State Transition",
"Use of Timeout Parameter Not Supported", "Busy",
"Method Reserved", "Vendor Specific" }]
uint32 RequestOSPowerSavingStateChange(
[IN, Description ( "The OS power saving state for "
"ManagedElement." ),
ValueMap { "2", "3", "..", "0x7FFF..0xFFFF" },
Values { "Full Power", "OS power saving",
"DMTF Reserved", "Vendor Specific" }]
uint16 OSPowerSavingState,
[IN, Description (
"ManagedElement indicates the element whose state is set."
)]
CIM_ManagedElement REF ManagedElement,
[IN, Description (
"Time indicates when the OS power saving state should "
"be set, either as a regular date-time value or as an "
"interval value (where the interval begins when the "
"method invocation is received." )]
datetime Time,
[IN ( false ), OUT, Description (
"Reference to the job (can be null if the task is completed)."
)]
CIM_ConcreteJob REF Job,
[IN, Description (
"A timeout period that specifies the maximum amount "
"of time that the client expects the transition to "
"the new state to take. The interval format must be "
"used to specify the TimeoutPeriod. A value of 0 or "
"a null parameter indicates that the client has no "
"time requirements for the transition. \n"
"If this property does not contain 0 or null and "
"the implementation does not support this "
"parameter, a return code of \'Use Of Timeout "
"Parameter Not Supported\' must be returned." )]
datetime TimeoutPeriod);
[Description (
"The current operating system power saving state of the "
"associated Managed System Element." ),
ValueMap { "0", "1", "2", "3", "..", "0x7FFF..0xFFFF" },
Values { "Unknown", "Unsupported", "Full Power",
"OS power saving", "DMTF Reserved",
"Vendor Specific" },
ModelCorrespondence {
"CIM_PowerManagementCapabilities.OSPowerSavingStateSupported",
"CIM_AssociatedPowerManagementService.PowerState" }]
uint16 OSPowerSavingState;
};