feat: 实现ID生成器并重构模型ID生成逻辑
refactor: 统一ID生成方式,使用新的idGenerator模块 refactor: 重构模型ID生成逻辑,允许空ID并在创建前自动生成 fix(roomSchema): 使机房ID字段变为可选并更新前端表单验证 style: 格式化代码并优化导入语句 test: 添加操作日志集成测试文件 docs: 添加错误处理模块文档
This commit is contained in:
@@ -778,9 +778,9 @@ function RoomManagement() {
|
||||
<Form.Item
|
||||
name="roomId"
|
||||
label="机房ID"
|
||||
rules={[{ required: true, message: '请输入机房ID' }]}
|
||||
rules={[]}
|
||||
>
|
||||
<Input placeholder="请输入机房ID" style={{ borderRadius: '8px' }} />
|
||||
<Input placeholder="不填写则自动生成" style={{ borderRadius: '8px' }} />
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
|
||||
Reference in New Issue
Block a user