From c8716084e9995cfe6112ee5e25b949303d3b3f80 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 21 Jan 2026 11:32:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=8B=96=E6=8B=BD=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/deviceGroup.ts | 11 ++ .../DraggableDeviceGroupDraggable/index.vue | 58 ++++++-- .../device/components/replay-video/index.vue | 2 +- .../replay-video/replay-video-dialog.vue | 8 +- src/views/device/deviceGroup/index.vue | 4 +- .../camera-table-dialog.vue | 15 +- src/views/device/devicePlaybackGroup/form.vue | 132 ++++++++++++++++++ .../device/devicePlaybackGroup/index.vue | 48 ++++++- 8 files changed, 253 insertions(+), 25 deletions(-) create mode 100644 src/views/device/devicePlaybackGroup/form.vue diff --git a/src/api/device/deviceGroup.ts b/src/api/device/deviceGroup.ts index 375588f..66d6b2f 100644 --- a/src/api/device/deviceGroup.ts +++ b/src/api/device/deviceGroup.ts @@ -44,6 +44,17 @@ export function editGroupItem(data: any) { }) } +/** + * 修改分组排序 + */ +export function editGroupSort(data: any) { + return request({ + url: '/admin/device/deviceGroup/editGroupSort', + method: 'post', + data: data + }) +} + /** * 添加设施分组子项 */ diff --git a/src/components/DraggableDeviceGroupDraggable/index.vue b/src/components/DraggableDeviceGroupDraggable/index.vue index 913e1c1..24bf9af 100644 --- a/src/components/DraggableDeviceGroupDraggable/index.vue +++ b/src/components/DraggableDeviceGroupDraggable/index.vue @@ -90,7 +90,7 @@ \ No newline at end of file diff --git a/src/views/device/devicePlaybackGroup/index.vue b/src/views/device/devicePlaybackGroup/index.vue index dc0dbb4..7f16ac2 100644 --- a/src/views/device/devicePlaybackGroup/index.vue +++ b/src/views/device/devicePlaybackGroup/index.vue @@ -29,6 +29,41 @@ @queryTable="getDataList"> + + + + + + + + + + + + + + + @@ -39,6 +74,9 @@ import * as deviceGroupApi from "/@/api/device/deviceGroup"; import { useMessage, useMessageBox } from "/@/hooks/message"; import { useDict } from '/@/hooks/dict'; +const FormDialog = defineAsyncComponent(() => import('./form.vue')); +const CameraTableDialog = defineAsyncComponent(() => import('./camera-table-dialog.vue')); + // 定义查询字典 const { device_group_type, panel_type } = useDict("device_group_type", "panel_type") // 定义变量内容 @@ -52,7 +90,9 @@ const selectObjs = ref([]) as any const multiple = ref(true) const state: BasicTableProps = reactive({ - queryForm: {}, + queryForm: { + bizType: 3 + }, pageList: deviceGroupApi.fetchList }) @@ -66,6 +106,12 @@ const { tableStyle } = useTable(state) +// 多选事件 +const selectionChangHandle = (objs: { id: string }[]) => { + selectObjs.value = objs.map(({ id }) => id); + multiple.value = !objs.length; +}; + // 清空搜索条件 const resetQuery = () => { // 清空搜索条件