diff --git a/index.html b/index.html index 245a4a9..76edf62 100644 --- a/index.html +++ b/index.html @@ -166,6 +166,7 @@ + + + diff --git a/src/views/iot/tplink/camera/components/CameraBlockForm.vue b/src/views/iot/tplink/camera/components/CameraBlockForm.vue new file mode 100644 index 0000000..b548c2f --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraBlockForm.vue @@ -0,0 +1,305 @@ + + + + + + + + + 当镜头被其它物体遮挡时,发生报警。 + + + + + 镜头遮挡 + + + + + + + + + + 灵敏度 + + + changeSensitivity(value)"/> + + + changeSensitivity(value)"/> + + + + + + + + + 处理方式 + + + + + + + + 消息提醒(触发事件后,设备会上传云端信息) + + + + + + + + + + 白光告警(触发事件后,设备会发出白光告警) + + + + + + + + + + 声音告警(触发事件后,设备会发出声音告警) + + + + + + + 报警声音 + + + + + + 试听 + + + + + + + 播放次数 + + + + + + + + + + + + + 保存 + + + + + + + + + + + + {{item.label}} + 试听 + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraCommonForm.vue b/src/views/iot/tplink/camera/components/CameraCommonForm.vue new file mode 100644 index 0000000..a5cf3fe --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraCommonForm.vue @@ -0,0 +1,455 @@ + + + + + + + + + 设置视频呈现的效果 + + + + + + + + + + + 画面镜像 + + + changeSwitch('flip_type', value)"> + 关闭 + 左右 + 上下 + 中心 + + + + 画面翻转 + + + changeSwitch('rotate_type', value)"> + 关闭 + 上下翻转 + 左翻转90° + 右翻转90° + + + + + + + 恢复默认 + + + + + + + 画面调节 + + + + + 亮度 + + + changeCommon('luma', value)"/> + + + changeCommon('luma', value)"/> + + + + + + + 对比度 + + + changeCommon('contrast', value)"/> + + + changeCommon('contrast', value)"/> + + + + + + + 饱和度 + + + changeCommon('saturation', value)"/> + + + changeCommon('saturation', value)"/> + + + + + + + 锐度 + + + changeCommon('sharpness', value)"/> + + + changeCommon('sharpness', value)"/> + + + + + + + 宽动态 + + + changeCommon('wide_dynamic', value)"> + 关闭 + 开启 + + + + + + + + + changeCommon('wd_gain', value)"/> + + + changeCommon('wd_gain', value)"/> + + + + + + + 照明设置 + + + + + 照明模式 + + + changeSwitch('night_vision_mode', value)"> + 白光照明 + 红外照明 + 移动侦测全彩 + + + + + + + + 防红外过曝 + + + changeCommon('smartir', value)"> + 自动-增强模式 + 自动-标准模式 + 手动 + + + + + + + + 防过曝等级 + + + changeCommon('smartir_level', value)"/> + + + changeCommon('smartir_level', value)"/> + + + + + + + 白光强度 + + + changeCommon('smartwtl', value)"> + 智能白光-柔和 + 智能白光-标准 + 手动 + + + + + + + + 白光等级 + + + changeCommon('smartwtl_digital_level', value)"/> + + + changeCommon('smartwtl_digital_level', value)"/> + + + + + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraInfoDrawer.vue b/src/views/iot/tplink/camera/components/CameraInfoDrawer.vue new file mode 100644 index 0000000..9172307 --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraInfoDrawer.vue @@ -0,0 +1,124 @@ + + + + + 立即重启 + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraInfoList.vue b/src/views/iot/tplink/camera/components/CameraInfoList.vue new file mode 100644 index 0000000..2a1fa65 --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraInfoList.vue @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraLeftTree.vue b/src/views/iot/tplink/camera/components/CameraLeftTree.vue new file mode 100644 index 0000000..8e2f93f --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraLeftTree.vue @@ -0,0 +1,205 @@ + + + + + 同步项目 + + 同步区域 + + + + + + + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraLightAlarmForm.vue b/src/views/iot/tplink/camera/components/CameraLightAlarmForm.vue new file mode 100644 index 0000000..a1e0316 --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraLightAlarmForm.vue @@ -0,0 +1,713 @@ + + + + + + + + + 白光报警 + + + + + 白光报警 + + + + + + + + + + + + 布防时间设置 + + + + + + + + 仅在以下时间段进行白光报警 + + 清空计划 + + + + + + + + + + + + + + + + {{ index }} + + + + 星期一 + 星期二 + 星期三 + 星期四 + 星期五 + 星期六 + 星期日 + + + + + + + + + + + + + + + + + + + + + 保存 + + + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraMultitransForm.vue b/src/views/iot/tplink/camera/components/CameraMultitransForm.vue new file mode 100644 index 0000000..2e8d5d7 --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraMultitransForm.vue @@ -0,0 +1,195 @@ + + + + + + + + 回放倍速 + + 0.0625 + 0.125 + 0.25 + 0.5 + 1 + 2 + 4 + 8 + 16 + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraMultitransModal.vue b/src/views/iot/tplink/camera/components/CameraMultitransModal.vue new file mode 100644 index 0000000..66db654 --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraMultitransModal.vue @@ -0,0 +1,67 @@ + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraOsdForm.vue b/src/views/iot/tplink/camera/components/CameraOsdForm.vue new file mode 100644 index 0000000..d923bde --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraOsdForm.vue @@ -0,0 +1,305 @@ + + + + + + + + + + 设置视频呈现的效果 + + + + + + + + {{formData.dateData}} + {{formData.weekData}} + {{formData.timeData}} + + + {{formData.labelData}} + + + + + + + + + + 显示日期 + + + {{formData.dateData}} {{formData.timeData}} + + + + + + + + + + 显示星期 + + + {{formData.weekData}} + + + + + + + + + + 通道名称 + + + + + + + + + + + 保存 + + + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraPictureConfig.vue b/src/views/iot/tplink/camera/components/CameraPictureConfig.vue new file mode 100644 index 0000000..61bdc7d --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraPictureConfig.vue @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraPlaybackForm.vue b/src/views/iot/tplink/camera/components/CameraPlaybackForm.vue new file mode 100644 index 0000000..31f8d4d --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraPlaybackForm.vue @@ -0,0 +1,197 @@ + + + + + + + + 回放倍速 + + 0.0625 + 0.125 + 0.25 + 0.5 + 1 + 2 + 4 + 8 + 16 + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraPlaybackModal.vue b/src/views/iot/tplink/camera/components/CameraPlaybackModal.vue new file mode 100644 index 0000000..6d6d0fc --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraPlaybackModal.vue @@ -0,0 +1,67 @@ + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraPreviewForm.vue b/src/views/iot/tplink/camera/components/CameraPreviewForm.vue new file mode 100644 index 0000000..7b88c39 --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraPreviewForm.vue @@ -0,0 +1,318 @@ + + + + + + + + + 播放 + + + 暂停 + + + {{ resolution }} + + + 巡航* + + + 电话* + + 分屏 + + 原图 + 360全景 + 180全景 + 四分屏 + 全景拉伸 + + + + + + 截图 + + + 录制 + + + 录制 + + + + 报警 + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraPreviewModal.vue b/src/views/iot/tplink/camera/components/CameraPreviewModal.vue new file mode 100644 index 0000000..8491d96 --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraPreviewModal.vue @@ -0,0 +1,67 @@ + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraRecordList.vue b/src/views/iot/tplink/camera/components/CameraRecordList.vue new file mode 100644 index 0000000..d8bfa2b --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraRecordList.vue @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraSoundAlarmForm.vue b/src/views/iot/tplink/camera/components/CameraSoundAlarmForm.vue new file mode 100644 index 0000000..72e644b --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraSoundAlarmForm.vue @@ -0,0 +1,713 @@ + + + + + + + + + 声音报警 + + + + + 声音报警 + + + + + + + + + + + + 布防时间设置 + + + + + + + + 仅在以下时间段进行声音报警 + + 清空计划 + + + + + + + + + + + + + + + + {{ index }} + + + + 星期一 + 星期二 + 星期三 + 星期四 + 星期五 + 星期六 + 星期日 + + + + + + + + + + + + + + + + + + + + + 保存 + + + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/components/CameraUploadForm.vue b/src/views/iot/tplink/camera/components/CameraUploadForm.vue new file mode 100644 index 0000000..0a0ec9e --- /dev/null +++ b/src/views/iot/tplink/camera/components/CameraUploadForm.vue @@ -0,0 +1,210 @@ + + + + + + + + + + 定时录像 + 移动侦测录像 + 全部 + + + + + + + + + + + + + + + + + + + + 回放上传 + 停止上传 + + + + + + + + + + + + + + + + + + + diff --git a/src/views/iot/tplink/camera/icons/plan_set.png b/src/views/iot/tplink/camera/icons/plan_set.png new file mode 100644 index 0000000..75d1b81 Binary files /dev/null and b/src/views/iot/tplink/camera/icons/plan_set.png differ diff --git a/src/views/iot/tplink/camera/index.vue b/src/views/iot/tplink/camera/index.vue new file mode 100644 index 0000000..10d0c2f --- /dev/null +++ b/src/views/iot/tplink/camera/index.vue @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/iot/tplink/project/ProjectInfo.api.ts b/src/views/iot/tplink/project/ProjectInfo.api.ts new file mode 100644 index 0000000..1061dff --- /dev/null +++ b/src/views/iot/tplink/project/ProjectInfo.api.ts @@ -0,0 +1,18 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/iot/projectInfo/list', + sync = '/iot/projectInfo/sync', +} + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 项目信息同步 + * @param params + */ +export const sync = (params) => defHttp.get({ url: Api.sync, params }); diff --git a/src/views/iot/tplink/project/ProjectInfo.data.ts b/src/views/iot/tplink/project/ProjectInfo.data.ts new file mode 100644 index 0000000..9b1b2ea --- /dev/null +++ b/src/views/iot/tplink/project/ProjectInfo.data.ts @@ -0,0 +1,130 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '项目序号', + align: "center", + dataIndex: 'projectId' + }, + { + title: '项目名称', + align: "center", + dataIndex: 'projectName' + }, + { + title: '创建时间', + align: "center", + dataIndex: 'createTimeStr' + }, + { + title: '设备数量', + align: "center", + dataIndex: 'deviceNum' + }, + { + title: '离线设备数', + align: "center", + dataIndex: 'offlineNum' + }, + { + title: '异常设备数', + align: "center", + dataIndex: 'abnormalNum' + }, + { + title: '运行天数', + align: "center", + dataIndex: 'runningTimeStr' + }, + { + title: '状态', + align: "center", + dataIndex: 'status', + customRender:({record})=>{ + return record.status?(record.status=='1'?'正常':'冻结'):''; + }, + } +]; + +export const searchFormSchema: FormSchema[] = [ + { + label: '名称', + field: 'projectName', + component: 'Input', + //colProps: { span: 6 }, + }, + { + label: '状态', + field: 'status', + component: 'JDictSelectTag', + componentProps: { + placeholder: '请选择状态', + options: [ + { label: '正常', value: '1' }, + { label: '冻结', value: '2' }, + ], + }, + //colProps: { span: 6 }, + } +]; + +export const formSchema: FormSchema[] = [ + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, + { + label: '项目序号', + field: 'projectId', + component: 'Input', + }, + { + label: '项目名称', + field: 'projectName', + component: 'Input', + }, + { + label: '创建时间', + field: 'createTimeStr', + component: 'Input', + }, + { + label: '设备数量', + field: 'deviceNum', + component: 'Input', + }, + { + label: '离线设备数', + field: 'offlineNum', + component: 'Input', + }, + { + label: '异常设备数', + field: 'abnormalNum', + component: 'Input', + }, + { + label: '运行天数', + field: 'runningTimeStr', + component: 'Input', + }, + { + label: '状态', + field: 'status', + component: 'JDictSelectTag', + defaultValue: 1, + componentProps: ({}) => { + return { + options: [ + { label: '正常', value: 1, key: '1' }, + { label: '冻结', value: 2, key: '2' }, + ] + }; + }, + }, +]; + diff --git a/src/views/iot/tplink/project/ProjectInfoList.vue b/src/views/iot/tplink/project/ProjectInfoList.vue new file mode 100644 index 0000000..462fdd6 --- /dev/null +++ b/src/views/iot/tplink/project/ProjectInfoList.vue @@ -0,0 +1,153 @@ + + + + + + + + 同步 + + + + + + + + + + + + + + + + + diff --git a/src/views/iot/tplink/project/components/ProjectInfoDrawer.vue b/src/views/iot/tplink/project/components/ProjectInfoDrawer.vue new file mode 100644 index 0000000..298342f --- /dev/null +++ b/src/views/iot/tplink/project/components/ProjectInfoDrawer.vue @@ -0,0 +1,77 @@ + + + + + + + + + diff --git a/src/views/iot/tplink/region/RegionInfo.api.ts b/src/views/iot/tplink/region/RegionInfo.api.ts new file mode 100644 index 0000000..5978012 --- /dev/null +++ b/src/views/iot/tplink/region/RegionInfo.api.ts @@ -0,0 +1,18 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/iot/regionInfo/list', + sync = '/iot/regionInfo/sync', +} + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 项目信息同步 + * @param params + */ +export const sync = (params) => defHttp.get({ url: Api.sync, params }); diff --git a/src/views/iot/tplink/region/RegionInfo.data.ts b/src/views/iot/tplink/region/RegionInfo.data.ts new file mode 100644 index 0000000..57d5be1 --- /dev/null +++ b/src/views/iot/tplink/region/RegionInfo.data.ts @@ -0,0 +1,108 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; + +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '区域序号', + align: "center", + dataIndex: 'regionId' + }, + { + title: '区域名称', + align: "center", + dataIndex: 'regionName' + }, + { + title: '区域层级', + align: "center", + dataIndex: 'regionLevel' + }, + { + title: '项目名称', + align: "center", + dataIndex: 'projectName' + }, + { + title: '更新时间', + align: "center", + dataIndex: 'updateTime' + }, + { + title: '区域次序', + align: "center", + dataIndex: 'sort' + }, +]; + +export const searchFormSchema: FormSchema[] = [ + { + label: '项目', + field: 'projectId', + component: 'JDictSelectTag', + componentProps: { + dictCode: 'nu_iot_tplink_project,project_name,project_id', + placeholder: '请选择项目', + }, + //colProps: { span: 6 }, + }, +]; + +export const formSchema: FormSchema[] = [ + { + label: '', + field: 'id', + component: 'Input', + show: false, + }, + { + label: '项目序号', + field: 'projectId', + component: 'Input' + }, + { + label: '项目名称', + field: 'projectName', + component: 'Input', + }, + { + label: '创建时间', + field: 'createTimeStr', + component: 'Input', + }, + { + label: '设备数量', + field: 'deviceNum', + component: 'Input', + }, + { + label: '离线设备数', + field: 'offlineNum', + component: 'Input', + }, + { + label: '异常设备数', + field: 'abnormalNum', + component: 'Input', + }, + { + label: '运行天数', + field: 'runningTimeStr', + component: 'Input', + }, + { + label: '状态', + field: 'status', + component: 'JDictSelectTag', + defaultValue: 1, + componentProps: ({}) => { + return { + options: [ + { label: '正常', value: 1, key: '1' }, + { label: '冻结', value: 2, key: '2' }, + ] + }; + }, + }, +]; + diff --git a/src/views/iot/tplink/region/RegionInfoList.vue b/src/views/iot/tplink/region/RegionInfoList.vue new file mode 100644 index 0000000..5b6cae2 --- /dev/null +++ b/src/views/iot/tplink/region/RegionInfoList.vue @@ -0,0 +1,161 @@ + + + + + + + + 同步 + + + + + + + + + + + + + + + +