Commit Graph

13 Commits (ef57c96b2fab22524317c11dff89b19c2b947f96)

Author SHA1 Message Date
YunaiV ef57c96b2f fix(iot): 修复 6 处 bug(P1×5 + P3×1)
- product/product/data.ts: 网关子设备不显示联网方式
  show 条件由 != GATEWAY 改为 != GATEWAY_SUB(原写法漏判子设备)
- home/message-trend-card.vue: onMounted 兜底首次拉取
  ShortcutDateRangePicker 早期 emit 触发的请求落在 useEcharts
  isActiveRef=false 阶段会被静默丢弃;并加 isFirstMount guard 跳过
  子组件首次 emit,消除首次进入的双请求
- ota/firmware/data.ts: FileUpload accept 改回 ['bin','zip','pdf']
  并同步 helpText,对齐 vue3 源约定
- device/device/index.vue: 批量删除补 confirm 二次确认弹窗,
  与 system 模块批删风格一致,避免一键误删
- device/device/detail/modules/modbus-point-form.vue: 字节序仅在
  「为空 / 不属于新 rawDataType 合法选项」才重置,避免编辑回填时
  setValues 触发 handleValuesChange 把已保存字节序覆盖

antd + ele 两端同步。
2026-05-23 22:04:08 +08:00
YunaiV d1a2601b6c fix(iot): alert 模块对齐后端 VO + 搜索体验对齐 vben 实践(P1)
- alert/config API 删除多余字段 updateTime
- alert/record API 删除多余字段 deviceName / productName / processTime
- alert/record 搜索表单告警级别字段 configLevel → level ,
  对齐后端 IotAlertRecordPageReqVO.level(之前提交后端不会按级别筛选)
- alert/record 搜索表单设备字段改用 ApiSelect + getSimpleDeviceList 全量加载,
  showSearch / filterable 模糊搜索,对齐 vben 项目 13+ 处 ApiSelect 主流实践
- alert/config + alert/record 列表移除空跑 checkbox 列(无批量删除接口)
2026-05-21 16:39:30 +08:00
YunaiV 58f2e23654 fix: iot 补齐 vue3 源缺失的表单校验(P1)
- 物模型功能定义「数据类型」字段补 required 必填校验
- 产品选择器(ProductSelect)补搜索能力:antd 加 show-search + option-filter-prop ,ele 加 filterable
- 设备表单 onConfirm 增加 advancedFormApi.validate() 调用,
  否则高级表单(含经纬度等字段)的 schema rules 不会触发
- 设备经纬度增加「成对填写」跨字段校验:仅填一项时给 warning 提示,
  与 vue3 源 DeviceForm.vue 行为对齐
2026-05-21 14:43:06 +08:00
YunaiV e7a61ce150 feat(iot): 优化 antd 里的整体代码风格。 2026-05-20 00:41:06 +08:00
YunaiV 13f81b3130 review:【antd】【iot】代码实现 2025-12-21 23:04:57 +08:00
haohao 5cb412a4da refactor:【antd】【iot】更新首页必要的 ReqVO、RespVO 2025-12-15 21:51:09 +08:00
xingyu4j 50ba0c137a fix: antd lint 2025-11-24 14:34:38 +08:00
YunaiV 42697ec614 review:【antd】【iot】首页的迁移 2025-11-23 18:51:16 +08:00
haohao c4ec1748a8 refactor:【antd】【iot】更新消息趋势卡片组件,替换日期选择器为快捷日期范围选择器 2025-11-23 16:02:21 +08:00
haohao 7d8c57711f refactor:【antd】【iot】优化消息趋势卡片组件,调整图表渲染逻辑 2025-11-23 15:44:24 +08:00
haohao a1e6982a28 refactor:【antd】【iot】重构首页统计组件,优化图表配置和数据加载逻辑,移除未使用的比较卡片组件 2025-11-23 15:07:21 +08:00
YunaiV c38d746c25 review:【antd】【iot】首页统计 2025-11-21 09:17:19 +08:00
haohao 7e6dd0a4df refactor:【antd】【iot】统一组件文件命名规则,调整导入路径以匹配小写格式 2025-11-15 12:03:48 +08:00