同步:iot 模块同步至 yudao/master 最新

- 新增 Modbus 支持:config/point API + 3 个表单/列表组件
  - apps/web-antd/src/api/iot/device/modbus/{config,point}/index.ts
  - apps/web-antd/src/views/iot/device/device/detail/modules/modbus-*.vue
- 设备详情页与子设备列表按 upstream 更新对齐
- 产品/数据类型、物模型常量更新
- packages/constants/dict-enum: 新增 IOT_MODBUS_MODE / IOT_MODBUS_FRAME_FORMAT,
  IOT_CODEC_TYPE 重命名为 IOT_SERIALIZE_TYPE(本地无引用)

对比 yudao/master 范围:
  git diff 36aa19537..yudao/master -- 'apps/web-antd/src/{views,api}/iot'

类型检查:对 iot 模块净引入 4/净修复 4,均为 upstream 本身的历史问题。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
lzh
2026-04-17 10:02:02 +08:00
parent ddd305fef0
commit e49a1db57e
13 changed files with 1188 additions and 20 deletions

View File

@@ -150,7 +150,7 @@ const AI_DICT = {
const IOT_DICT = {
IOT_ALERT_LEVEL: 'iot_alert_level', // IoT 告警级别
IOT_ALERT_RECEIVE_TYPE: 'iot_alert_receive_type', // IoT 告警接收类型
IOT_CODEC_TYPE: 'iot_codec_type', // IOT 数据格式(编解码器类型
IOT_SERIALIZE_TYPE: 'iot_serialize_type', // IOT 序列化类型
IOT_DATA_FORMAT: 'iot_data_format', // IOT 数据格式
IOT_DATA_SINK_TYPE_ENUM: 'iot_data_sink_type_enum', // IoT 数据流转目的类型
IOT_DATA_TYPE: 'iot_data_type', // IOT 数据类型
@@ -171,6 +171,8 @@ const IOT_DICT = {
IOT_THING_MODEL_UNIT: 'iot_thing_model_unit', // IOT 物模型单位
IOT_UNIT_TYPE: 'iot_unit_type', // IOT 单位类型
IOT_VALIDATE_TYPE: 'iot_validate_type', // IOT 数据校验级别
IOT_MODBUS_MODE: 'iot_modbus_mode', // IoT Modbus 工作模式
IOT_MODBUS_FRAME_FORMAT: 'iot_modbus_frame_format', // IoT Modbus 帧格式
} as const;
/** 字典类型枚举 - 统一导出 */