All checks were successful
continuous-integration/drone/push Build is passing
- Add migration script to introduce rack_type field (0=ODF, 1=optical box) - Add RackType, LeftPortsCount, RightPortsCount properties to OdfRacks model and DTOs - Add rack type selector and port count inputs to OdfRackForm component - Display rack type labels in OdfRacks management table - Add rack type badges to uni-app rack list cards - Implement dual-column layout for optical box type in rack detail page with left/right port sections - Add optical box port naming format (A-1, A-2, etc.) with row-based labeling - Add visual distinction with background colors (left: #E3F2FD, right: #FFF3E0) and center divider - Update import/export DTOs to support rack type and optical box port naming - Mark all v1.0.2.1 tasks as completed
57 lines
1.2 KiB
C#
57 lines
1.2 KiB
C#
|
||
namespace ZR.Model.Business
|
||
{
|
||
/// <summary>
|
||
/// 机架列表
|
||
/// </summary>
|
||
[SugarTable("odf_racks")]
|
||
public class OdfRacks
|
||
{
|
||
/// <summary>
|
||
/// Id
|
||
/// </summary>
|
||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||
public int Id { get; set; }
|
||
|
||
/// <summary>
|
||
/// 机房
|
||
/// </summary>
|
||
public int RoomId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 序号
|
||
/// </summary>
|
||
public int SequenceNumber { get; set; }
|
||
|
||
/// <summary>
|
||
/// ODF名称
|
||
/// </summary>
|
||
public string RackName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 框数量(固定9框)
|
||
/// </summary>
|
||
public int? FrameCount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间
|
||
/// </summary>
|
||
public DateTime? CreatedAt { get; set; }
|
||
|
||
/// <summary>
|
||
/// 修改时间
|
||
/// </summary>
|
||
public DateTime? UpdatedAt { get; set; }
|
||
|
||
/// <summary>
|
||
/// 部门
|
||
/// </summary>
|
||
public long DeptId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 机架类型:0=ODF机架, 1=光交箱
|
||
/// </summary>
|
||
public int RackType { get; set; }
|
||
|
||
}
|
||
} |