diff --git a/src/views/iot/tplink/camera/camera.api.ts b/src/views/iot/tplink/camera/camera.api.ts index a04d781..54dd826 100644 --- a/src/views/iot/tplink/camera/camera.api.ts +++ b/src/views/iot/tplink/camera/camera.api.ts @@ -12,8 +12,11 @@ enum Api { edit = '/iot/tplink/cameraInfo/edit', rebootDevice = '/iot/tplink/cameraInfo/rebootDevice', previewUrl = '/iot/tplink/cameraInfo/getPreviewUrl', + getDeviceDetails = '/iot/tplink/cameraInfo/getDeviceDetails', getImageCommon = '/iot/tplink/cameraInfo/getImageCommon', setImageCommon = '/iot/tplink/cameraInfo/setImageCommon', + getImageSwitch = '/iot/tplink/cameraInfo/getImageSwitch', + setImageSwitch = '/iot/tplink/cameraInfo/setImageSwitch', getOsdCapability = '/iot/tplink/cameraInfo/getOsdCapability', getOsd = '/iot/tplink/cameraInfo/getOsd', setOsd = '/iot/tplink/cameraInfo/setOsd', @@ -112,6 +115,12 @@ export const rebootDevice = (params) => { return defHttp.post({ url: Api.rebootDevice, params }); } +/** + * 获取设备信息 + * @param params + */ +export const getDeviceDetails = (params) => defHttp.get({ url: Api.getDeviceDetails, params }); + /** * 获取画面基本信息 * @param params @@ -124,6 +133,18 @@ export const getImageCommon = (params) => defHttp.post({ url: Api.getImageCommon */ export const setImageCommon = (params) => defHttp.post({ url: Api.setImageCommon, params }); +/** + * 获取画面基本信息 + * @param params + */ +export const getImageSwitch = (params) => defHttp.post({ url: Api.getImageSwitch, params }); + +/** + * 设置画面基本信息 + * @param params + */ +export const setImageSwitch = (params) => defHttp.post({ url: Api.setImageSwitch, params }); + /** * 获取OSD能力集参数 * @param params diff --git a/src/views/iot/tplink/camera/components/CameraInfoList.vue b/src/views/iot/tplink/camera/components/CameraInfoList.vue index b71fd07..9f110a5 100644 --- a/src/views/iot/tplink/camera/components/CameraInfoList.vue +++ b/src/views/iot/tplink/camera/components/CameraInfoList.vue @@ -34,7 +34,7 @@ - SN:{{ item.sn ? item.sn : '未配置' }} + SN:{{ item.mac ? item.mac : '未配置' }} 设备名称:{{ item.deviceName }} @@ -105,11 +105,11 @@