依据:
畜牧监控功能需求.md(v1.1 + v1.2)、畜牧监控技术方案.md(v1.2);布局对齐dataModel/pasture/index.vue(双el-card+ 同步按钮);字段 小驼峰。
| 项 | 说明 |
|---|---|
| Vue 路径 | ruoyi-ui/src/views/videoSurveillance/livestockMonitor/index.vue |
| 组件名 | VideoSurveillanceLivestockMonitor |
| 菜单配置 | 组件路径:videoSurveillance/livestockMonitor/index(「视频监控系统」目录下) |
| 权限前缀 | videoSurveillance:livestockMonitor:list\|query\|add\|edit\|remove\|sync |
| 项 | 说明 |
|---|---|
| 文件 | ruoyi-ui/src/api/videoSurveillance/livestockMonitor.js |
| Base | /videoSurveillance/livestockMonitor |
| 方法 | HTTP | 说明 |
|---|---|---|
listLivestockMonitor |
GET | /list |
getLivestockMonitor |
GET | /{id} |
addLivestockMonitor |
POST | / |
updateLivestockMonitor |
PUT | / |
delLivestockMonitor |
DELETE | /{ids} |
listLivestockMonitorOwnerOptions |
GET | /ownerOptions?keyword= |
syncLivestockMonitor |
POST | /sync(第三方同步) |
ownerOptions 远程下拉);搜索、重置、同步(sync 权限)、新增。el-tag + 名称)、安装位置。| 规则 | 实现 |
|---|---|
| 主体下拉 | ownerType-ownerId 复合 value;listLivestockMonitorOwnerOptions;remote + 300ms 防抖 |
| 列表主体筛选 | queryOwnerKey 解析为 ownerType、ownerId |
| 第三方同步 | handleSync → runSyncWithLoading(() => syncLivestockMonitor());展示 insert/update/fail 统计 |
| 同步 loading | videoSurveillanceLocaleMixin.runSyncWithLoading + vsCommon('syncLoading') |
| 实时监控 | handleLiveView → $modal.msgWarning(msgLiveNotOpen) |
| 删除 | 二次确认后 delLivestockMonitor(id) |
| 项 | 说明 |
|---|---|
| 语言包 | videoSurveillance.livestockMonitor、videoSurveillance.common |
| 文件 | lang/zh/videoSurveillance.js、lang/bo/videoSurveillance.js |
| Mixin | videoSurveillanceLocaleMixin:vsNs = 'livestockMonitor',vsT / vsCommon,runSyncWithLoading |
| 同步文案 | btnSync、syncSummary、syncTimeHint;common.syncLoading |
biz_livestock_monitor 表(见 sql/biz_livestock_monitor.sql)。videoSurveillance:livestockMonitor:sync。third-party.farming:mode=stub 联调(样例 JSON);生产 mode=http + base-url。video_url;失败明细在 failMessages 中展示。| 类型 | 路径 |
|---|---|
| 页面 | ruoyi-ui/src/views/videoSurveillance/livestockMonitor/index.vue |
| API | ruoyi-ui/src/api/videoSurveillance/livestockMonitor.js |
| Mixin | ruoyi-ui/src/mixins/videoSurveillanceLocaleMixin.js |
| i18n | ruoyi-ui/src/lang/zh/videoSurveillance.js、lang/bo/videoSurveillance.js |
| 版本 | 说明 |
|---|---|
| 1.0 | 初版:监控点位 CRUD;主体合并远程下拉;汉藏 i18n |
| 1.1 | 对齐后端:移除 IP 字段依赖;列表无 IP |
| 1.2 | 增加 同步 按钮与 syncLivestockMonitor;runSyncWithLoading;同步结果提示 |