feat(线缆管理): 新增向导式接线创建功能
- 新增四步向导流程,简化接线创建过程 - 添加线缆标签、颜色、安装信息等新字段 - 实现端口可视化面板和冲突检测功能 - 新增耗材日志设备关联字段 - 添加耗材导入后台任务管理 - 更新线缆管理文档和使用指南
This commit is contained in:
@@ -53,6 +53,31 @@ const Cable = sequelize.define(
|
||||
type: DataTypes.TEXT,
|
||||
allowNull: true,
|
||||
},
|
||||
cableLabel: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '线缆标签/编号',
|
||||
},
|
||||
cableColor: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '线缆颜色(便于识别)',
|
||||
},
|
||||
installedBy: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '安装人',
|
||||
},
|
||||
installedAt: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: true,
|
||||
comment: '安装时间',
|
||||
},
|
||||
lastTestedAt: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: true,
|
||||
comment: '上次测试时间',
|
||||
},
|
||||
},
|
||||
{
|
||||
tableName: 'cables',
|
||||
@@ -63,6 +88,7 @@ const Cable = sequelize.define(
|
||||
{ fields: ['status'] },
|
||||
{ fields: ['cableType'] },
|
||||
{ fields: ['sourceDeviceId', 'targetDeviceId'] },
|
||||
{ fields: ['cableLabel'] },
|
||||
],
|
||||
}
|
||||
);
|
||||
|
||||
@@ -96,6 +96,36 @@ const ConsumableLog = sequelize.define(
|
||||
defaultValue: [],
|
||||
comment: '本次操作的SN序列号列表',
|
||||
},
|
||||
deviceId: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '目标设备ID(出库时关联)',
|
||||
},
|
||||
deviceName: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '目标设备名称',
|
||||
},
|
||||
rackId: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '机柜ID',
|
||||
},
|
||||
rackName: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '机柜名称',
|
||||
},
|
||||
roomId: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '机房ID',
|
||||
},
|
||||
roomName: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true,
|
||||
comment: '机房名称',
|
||||
},
|
||||
},
|
||||
{
|
||||
tableName: 'consumable_logs',
|
||||
@@ -109,6 +139,7 @@ const ConsumableLog = sequelize.define(
|
||||
{ fields: ['originalLogId'] },
|
||||
{ fields: ['isEditable'] },
|
||||
{ fields: ['isConsumableDeleted'] },
|
||||
{ fields: ['deviceId'] },
|
||||
],
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user