From b55c7de2d6bc25a23a3fd015812539f9e439ef39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Mon, 30 Jun 2025 09:26:40 +0800 Subject: [PATCH 1/5] =?UTF-8?q?tplink=E6=8E=A5=E5=8F=A3=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/tplink/camera/camera.api.ts | 90 +++++++++++-------- src/views/iot/tplink/plan/plan.api.ts | 20 ++--- .../iot/tplink/project/ProjectInfo.api.ts | 10 +-- src/views/iot/tplink/region/RegionInfo.api.ts | 20 ++--- 4 files changed, 78 insertions(+), 62 deletions(-) diff --git a/src/views/iot/tplink/camera/camera.api.ts b/src/views/iot/tplink/camera/camera.api.ts index b32ffef..3a7bc03 100644 --- a/src/views/iot/tplink/camera/camera.api.ts +++ b/src/views/iot/tplink/camera/camera.api.ts @@ -1,43 +1,45 @@ import { defHttp } from '/@/utils/http/axios'; enum Api { - queryProjectTreeSync = '/iot/projectInfo/queryRegionTreeSync', - queryRegionTreeSync = '/iot/regionInfo/queryRegionTreeSync', - syncProject = '/iot/projectInfo/sync', - syncRegion = '/iot/regionInfo/sync', - list = '/iot/cameraInfo/list', - ipcCapability = '/iot/cameraInfo/getIpcCapability', - nuList = '/iot/cameraInfo/nuList', - edit = '/iot/cameraInfo/edit', - rebootDevice = '/iot/cameraInfo/rebootDevice', - previewUrl = '/iot/cameraInfo/getPreviewUrl', - getImageCommon = '/iot/cameraInfo/getImageCommon', - setImageCommon = '/iot/cameraInfo/setImageCommon', - getOsdCapability = '/iot/cameraInfo/getOsdCapability', - getOsd = '/iot/cameraInfo/getOsd', - setOsd = '/iot/cameraInfo/setOsd', - getTamperDet = '/iot/cameraInfo/getTamperDet', - setTamperDet = '/iot/cameraInfo/setTamperDet', - getTamperNotif = '/iot/cameraInfo/getTamperNotif', - setTamperNotif = '/iot/cameraInfo/setTamperNotif', - testAudio = '/iot/cameraInfo/testAudio', - getAlarmInfo = '/iot/cameraInfo/getAlarmInfo', - setAlarmInfo = '/iot/cameraInfo/setAlarmInfo', - getAlarmPlan = '/iot/cameraInfo/getAlarmPlan', - setAlarmPlan = '/iot/cameraInfo/setAlarmPlan', - getVideoParams = '/iot/cameraInfo/getVideoParams', - setVideoParams = '/iot/cameraInfo/setVideoParams', - configRecovery = '/iot/cameraInfo/configRecovery', - searchVideo = '/iot/cameraInfo/searchVideo', - getPlaybackUrlList = '/iot/cameraInfo/getPlaybackUrlList', - deletePlaybackChn = '/iot/cameraInfo/deletePlaybackChn', - getMultitransUrl = '/iot/cameraInfo/getMultitransUrl', - getRecordCfgs = '/iot/cameraInfo/getRecordCfgs', - setRecordCfgs = '/iot/cameraInfo/setRecordCfgs', - getBatchProgress = '/iot/cameraInfo/getBatchProgress', - uploadToServer = '/iot/cameraInfo/uploadToServer', - stopUploadToServer = '/iot/cameraInfo/stopUploadToServer', - getUploadToServerProcess = '/iot/cameraInfo/getUploadToServerProcess', + queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync', + queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync', + syncProject = '/iot/tplink/projectInfo/sync', + syncRegion = '/iot/tplink/regionInfo/sync', + list = '/iot/tplink/cameraInfo/list', + syncProjectIpcDevice = '/iot/tplink/cameraInfo/syncProjectIpcDevice', + ipcCapability = '/iot/tplink/cameraInfo/getIpcCapability', + nuList = '/iot/tplink/cameraInfo/nuList', + edit = '/iot/tplink/cameraInfo/edit', + rebootDevice = '/iot/tplink/cameraInfo/rebootDevice', + previewUrl = '/iot/tplink/cameraInfo/getPreviewUrl', + getImageCommon = '/iot/tplink/cameraInfo/getImageCommon', + setImageCommon = '/iot/tplink/cameraInfo/setImageCommon', + getOsdCapability = '/iot/tplink/cameraInfo/getOsdCapability', + getOsd = '/iot/tplink/cameraInfo/getOsd', + setOsd = '/iot/tplink/cameraInfo/setOsd', + getTamperDet = '/iot/tplink/cameraInfo/getTamperDet', + setTamperDet = '/iot/tplink/cameraInfo/setTamperDet', + getTamperNotif = '/iot/tplink/cameraInfo/getTamperNotif', + setTamperNotif = '/iot/tplink/cameraInfo/setTamperNotif', + testAudio = '/iot/tplink/cameraInfo/testAudio', + getAlarmInfo = '/iot/tplink/cameraInfo/getAlarmInfo', + setAlarmInfo = '/iot/tplink/cameraInfo/setAlarmInfo', + getAlarmPlan = '/iot/tplink/cameraInfo/getAlarmPlan', + setAlarmPlan = '/iot/tplink/cameraInfo/setAlarmPlan', + getVideoParams = '/iot/tplink/cameraInfo/getVideoParams', + setVideoParams = '/iot/tplink/cameraInfo/setVideoParams', + configRecovery = '/iot/tplink/cameraInfo/configRecovery', + searchVideo = '/iot/tplink/cameraInfo/searchVideo', + getPlaybackUrlList = '/iot/tplink/cameraInfo/getPlaybackUrlList', + deletePlaybackChn = '/iot/tplink/cameraInfo/deletePlaybackChn', + getMultitransUrl = '/iot/tplink/cameraInfo/getMultitransUrl', + getRecordCfgs = '/iot/tplink/cameraInfo/getRecordCfgs', + setRecordCfgs = '/iot/tplink/cameraInfo/setRecordCfgs', + getBatchProgress = '/iot/tplink/cameraInfo/getBatchProgress', + uploadToServer = '/iot/tplink/cameraInfo/uploadToServer', + stopUploadToServer = '/iot/tplink/cameraInfo/stopUploadToServer', + getUploadToServerProcess = '/iot/tplink/cameraInfo/getUploadToServerProcess', + motionCtrl = '/iot/tplink/cameraInfo/motionCtrl', } @@ -72,6 +74,13 @@ export const syncRegion = (params?) => defHttp.get({ url: Api.syncRegion, params */ export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 同步此项目下的IPC设备 + * @param params + */ +export const syncProjectIpcDevice = (params) => defHttp.get({ url: Api.syncProjectIpcDevice, params }); + /** * 获取IPC能力集 * @param params @@ -266,3 +275,10 @@ export const stopUploadToServer = (params) => defHttp.get({ url: Api.stopUploadT */ export const getUploadToServerProcess = (params) => defHttp.get({ url: Api.getUploadToServerProcess, params }); +/** + * 控制球机转动 + * @param params + */ +export const motionCtrl = (params) => defHttp.get({ url: Api.motionCtrl, params }); + + diff --git a/src/views/iot/tplink/plan/plan.api.ts b/src/views/iot/tplink/plan/plan.api.ts index 1567ff9..8209a67 100644 --- a/src/views/iot/tplink/plan/plan.api.ts +++ b/src/views/iot/tplink/plan/plan.api.ts @@ -2,16 +2,16 @@ import { defHttp } from '/@/utils/http/axios'; import {Modal} from "ant-design-vue"; enum Api { - queryProjectTreeSync = '/iot/projectInfo/queryRegionTreeSync', - queryRegionTreeSync = '/iot/regionInfo/queryRegionTreeSync', - queryTreeList = '/iot/cameraInfo/queryTreeList', - getStorageDevice = '/iot/cameraInfo/getStorageDevice', - getAllRecordPlans = '/iot/cameraInfo/getAllRecordPlans', - getRecordCfgs = '/iot/cameraInfo/getRecordCfgs', - addRecordCfgs = '/iot/cameraInfo/addRecordCfgs', - setRecordCfgs = '/iot/cameraInfo/setRecordCfgs', - delRecordCfgs = '/iot/cameraInfo/delRecordCfgs', - getBatchProgress = '/iot/cameraInfo/getBatchProgress', + queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync', + queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync', + queryTreeList = '/iot/tplink/cameraInfo/queryTreeList', + getStorageDevice = '/iot/tplink/cameraInfo/getStorageDevice', + getAllRecordPlans = '/iot/tplink/cameraInfo/getAllRecordPlans', + getRecordCfgs = '/iot/tplink/cameraInfo/getRecordCfgs', + addRecordCfgs = '/iot/tplink/cameraInfo/addRecordCfgs', + setRecordCfgs = '/iot/tplink/cameraInfo/setRecordCfgs', + delRecordCfgs = '/iot/tplink/cameraInfo/delRecordCfgs', + getBatchProgress = '/iot/tplink/cameraInfo/getBatchProgress', } /** diff --git a/src/views/iot/tplink/project/ProjectInfo.api.ts b/src/views/iot/tplink/project/ProjectInfo.api.ts index ace8090..09bcb52 100644 --- a/src/views/iot/tplink/project/ProjectInfo.api.ts +++ b/src/views/iot/tplink/project/ProjectInfo.api.ts @@ -1,11 +1,11 @@ import { defHttp } from '/@/utils/http/axios'; enum Api { - list = '/iot/projectInfo/list', - sync = '/iot/projectInfo/sync', - add = '/iot/projectInfo/add', - edit = '/iot/projectInfo/edit', - delete = '/iot/projectInfo/delete', + list = '/iot/tplink/projectInfo/list', + sync = '/iot/tplink/projectInfo/sync', + add = '/iot/tplink/projectInfo/add', + edit = '/iot/tplink/projectInfo/edit', + delete = '/iot/tplink/projectInfo/delete', } /** diff --git a/src/views/iot/tplink/region/RegionInfo.api.ts b/src/views/iot/tplink/region/RegionInfo.api.ts index dd74287..06284e3 100644 --- a/src/views/iot/tplink/region/RegionInfo.api.ts +++ b/src/views/iot/tplink/region/RegionInfo.api.ts @@ -1,16 +1,16 @@ import { defHttp } from '/@/utils/http/axios'; enum Api { - queryProjectTreeSync = '/iot/projectInfo/queryRegionTreeSync', - queryRegionTreeSync = '/iot/regionInfo/queryRegionTreeSync', - syncProject = '/iot/projectInfo/sync', - syncRegion = '/iot/regionInfo/sync', - syncRegionChildren = '/iot/regionInfo/syncChildren', - list = '/iot/regionInfo/list', - sync = '/iot/regionInfo/sync', - add = '/iot/regionInfo/add', - edit = '/iot/regionInfo/edit', - delete = '/iot/regionInfo/delete', + queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync', + queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync', + syncProject = '/iot/tplink/projectInfo/sync', + syncRegion = '/iot/tplink/regionInfo/sync', + syncRegionChildren = '/iot/tplink/regionInfo/syncChildren', + list = '/iot/tplink/regionInfo/list', + sync = '/iot/tplink/regionInfo/sync', + add = '/iot/tplink/regionInfo/add', + edit = '/iot/tplink/regionInfo/edit', + delete = '/iot/tplink/regionInfo/delete', queryChildrenByParentId = '/sys/sysDepart/queryChildrenByParentId', } From eaef9c6fc475141ed0d47777feb1bcae57bd1342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Mon, 30 Jun 2025 11:48:06 +0800 Subject: [PATCH 2/5] =?UTF-8?q?tplink=E8=8E=B7=E5=8F=96=E6=8A=A4=E7=90=86?= =?UTF-8?q?=E5=8D=95=E5=85=83=E4=BF=A1=E6=81=AF=E8=B7=AF=E5=BE=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/common/api.ts b/src/api/common/api.ts index 008a9e3..9f1e975 100644 --- a/src/api/common/api.ts +++ b/src/api/common/api.ts @@ -15,7 +15,7 @@ enum Api { getDictItems = '/sys/dict/getDictItems/', getTableList = '/sys/user/queryUserComponentData', getCategoryData = '/sys/category/loadAllData', - getNuList = '/iot/cameraInfo/nuList', //后期调整 + getNuList = '/iot/tplink/cameraInfo/nuList', //后期调整 getOrgInfo = '/api/common/getOrgInfo',//根据机构编码获取机构信息 } @@ -172,4 +172,4 @@ export const uploadMyFile = (url, data) => { */ export const getOrgInfo = (params) => { return defHttp.get({ url: Api.getOrgInfo, params }); -}; \ No newline at end of file +}; From 10f0f5cbb8be4255165c9de0e83b45f86ac794b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Mon, 30 Jun 2025 14:23:57 +0800 Subject: [PATCH 3/5] =?UTF-8?q?tplink=E6=91=84=E5=83=8F=E5=A4=B4=E5=8F=98?= =?UTF-8?q?=E7=84=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../camera/components/CameraCommonForm.vue | 54 ++-- .../camera/components/CameraLeftTree.vue | 24 +- .../camera/components/CameraOsdForm.vue | 12 +- .../camera/components/CameraPictureConfig.vue | 54 ++-- .../camera/components/CameraPreviewForm.vue | 266 ++++++++++++++---- .../camera/components/CameraPreviewModal.vue | 12 +- .../camera/components/CameraRecordList.vue | 1 + 7 files changed, 309 insertions(+), 114 deletions(-) diff --git a/src/views/iot/tplink/camera/components/CameraCommonForm.vue b/src/views/iot/tplink/camera/components/CameraCommonForm.vue index f2d40c9..4c34cba 100644 --- a/src/views/iot/tplink/camera/components/CameraCommonForm.vue +++ b/src/views/iot/tplink/camera/components/CameraCommonForm.vue @@ -1,6 +1,6 @@ -