diff --git a/src/api/area/areaHouse.ts b/src/api/area/areaHouse.ts index 46ae211..86e0908 100644 --- a/src/api/area/areaHouse.ts +++ b/src/api/area/areaHouse.ts @@ -1,6 +1,17 @@ import request from "/@/utils/request" +/** + * 房间绑定设备 + */ +export function houseDeviceList(data: any) { + return request({ + url: '/admin/areaHouse/houseDeviceList', + method: 'post', + data + }) +} + /** * 房间绑定设备 */ diff --git a/src/api/device/deviceManage.ts b/src/api/device/deviceManage.ts index 7a2542d..e7b63c6 100644 --- a/src/api/device/deviceManage.ts +++ b/src/api/device/deviceManage.ts @@ -1,13 +1,21 @@ import request from "/@/utils/request" +export function channelTree(query: any) { + return request({ + url: '/admin/deviceManage/channelTree', + method: 'post', + data: query + }) +} + export function cameraPage(query: any) { return request({ url: '/admin/deviceManage/cameraPage', method: 'post', params: { - current: query.current, - size: query.size, - }, + current: query.current, + size: query.size, + }, data: query }) } @@ -18,9 +26,9 @@ export function fetchList(query: any) { url: '/admin/deviceManage/page', method: 'post', params: { - current: query.current, - size: query.size, - }, + current: query.current, + size: query.size, + }, data: query }) } @@ -30,9 +38,9 @@ export function select(query: any) { url: '/admin/deviceManage/select', method: 'post', params: { - current: query.current, - size: query.size, - }, + current: query.current, + size: query.size, + }, data: query }) } @@ -53,6 +61,14 @@ export function getObj(id?: string) { }) } +export function getByCode(params: any) { + return request({ + url: '/admin/deviceManage/getByCode', + method: 'get', + params: params + }) +} + export function delObjs(ids?: Object) { return request({ url: '/admin/deviceManage', diff --git a/src/components/Select/SelectTreeChannel.vue b/src/components/Select/SelectTreeChannel.vue new file mode 100644 index 0000000..57625a0 --- /dev/null +++ b/src/components/Select/SelectTreeChannel.vue @@ -0,0 +1,81 @@ + + + + + \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index 0162502..107f23a 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -25,6 +25,7 @@ import TagUserStatus from "/@/components/Tag/TagUserStatus.vue" import SelectArea from "/@/components/Select/SelectArea.vue" import SelectDevice from "/@/components/Select/SelectDevice.vue" import SelectDutyType from "/@/components/Select/SelectDutyType.vue" +import SelectTreeChannel from "/@/components/Select/SelectTreeChannel.vue" import ColumnBtn from "/@/components/Column/ColumnBtn.vue" @@ -80,6 +81,7 @@ export default { app.component('SelectArea', SelectArea); app.component('SelectDevice', SelectDevice); app.component('SelectDutyType', SelectDutyType); + app.component('SelectTreeChannel', SelectTreeChannel); app.component('ColumnBtn', ColumnBtn); diff --git a/src/views/area/_components/bindCameraForm.vue b/src/views/area/_components/bindCameraForm.vue index 106075f..ae6b4e3 100644 --- a/src/views/area/_components/bindCameraForm.vue +++ b/src/views/area/_components/bindCameraForm.vue @@ -14,10 +14,28 @@ - - + + + +
+ + + + + + + + + + + + + + + +
- - - - diff --git a/src/views/car/carAlarm/index.vue b/src/views/car/carAlarm/index.vue index 617fe53..ae3d1d8 100644 --- a/src/views/car/carAlarm/index.vue +++ b/src/views/car/carAlarm/index.vue @@ -81,9 +81,24 @@ + + + + + + @@ -95,9 +110,14 @@ import { parseTime } from "/@/utils/formatTime" import * as CarAccessApi from "/@/api/car/carAccess"; +const ReplayVideoDialog = defineAsyncComponent(() => import("../../device/components/replay-video/replay-video-dialog.vue")); + +const replayVideoDialogRef = ref() + // 搜索变量 const queryRef = ref() const showSearch = ref(true) + // 多选变量 const selectObjs = ref([]) as any const multiple = ref(true) diff --git a/src/views/device/components/preview-video/index.vue b/src/views/device/components/preview-video/index.vue index 466b305..7415cd2 100644 --- a/src/views/device/components/preview-video/index.vue +++ b/src/views/device/components/preview-video/index.vue @@ -1,5 +1,5 @@ @@ -128,9 +139,13 @@ import { parseTime } from "/@/utils/formatTime" import * as DoorRecordApi from "/@/api/door/doorRecord"; +const ReplayVideoDialog = defineAsyncComponent(() => import("../../device/components/replay-video/replay-video-dialog.vue")); + // 定义查询字典 const { dh_card_status, dh_card_type, dh_enter_or_exit, door_alarm_type, dh_door_open_type } = useDict("dh_card_status", "dh_card_type", "dh_enter_or_exit", "door_alarm_type", "dh_door_open_type") +const replayVideoDialogRef = ref() + // 定义变量内容 const formDialogRef = ref()