From 229c4c98a0ba6b7c494d6d369baceb73bfa27cb0 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 20 Aug 2025 19:13:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=91=84=E5=83=8F=E5=A4=B4=E5=88=86?= =?UTF-8?q?=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/device/deviceGroup.ts | 68 +++++++ src/views/car/carRecord/index.vue | 9 +- .../deviceGroup/camera-table-dialog.vue | 118 +++++++++++++ src/views/device/deviceGroup/form.vue | 117 ++++++++++++ src/views/device/deviceGroup/index.vue | 167 ++++++++++++++++++ src/views/door/doorAlarm/index.vue | 44 ++--- src/views/door/doorBeLate/index.vue | 16 -- 7 files changed, 499 insertions(+), 40 deletions(-) create mode 100644 src/api/device/deviceGroup.ts create mode 100644 src/views/device/deviceGroup/camera-table-dialog.vue create mode 100644 src/views/device/deviceGroup/form.vue create mode 100644 src/views/device/deviceGroup/index.vue diff --git a/src/api/device/deviceGroup.ts b/src/api/device/deviceGroup.ts new file mode 100644 index 0000000..65bd6a2 --- /dev/null +++ b/src/api/device/deviceGroup.ts @@ -0,0 +1,68 @@ +import request from "/@/utils/request" + +/** + * 删除设施分组子项 + */ +export function delGroupItemIds(data: any) { + return request({ + url: '/admin/device/deviceGroup/delGroupItemIds', + method: 'delete', + data: data + }) +} + +export function getDeviceGroupList(query: any) { + return request({ + url: '/admin/device/deviceGroup/getDeviceGroupList', + method: 'get', + params: query + }) +} + +export function syncAreaGroyup() { + return request({ + url: '/admin/device/deviceGroup/syncAreaGroyup', + method: 'get', + params: {} + }) +} + +export function fetchList(query?: Object) { + return request({ + url: '/admin/device/deviceGroup/page', + method: 'get', + params: query + }) +} + +export function addObj(obj?: Object) { + return request({ + url: '/admin/device/deviceGroup', + method: 'post', + data: obj + }) +} + +export function getObj(id?: string) { + return request({ + url: '/admin/device/deviceGroup/' + id, + method: 'get' + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: '/admin/device/deviceGroup', + method: 'delete', + data: ids + }) +} + +export function putObj(obj?: Object) { + return request({ + url: '/admin/device/deviceGroup', + method: 'put', + data: obj + }) +} + diff --git a/src/views/car/carRecord/index.vue b/src/views/car/carRecord/index.vue index f76c609..2528752 100644 --- a/src/views/car/carRecord/index.vue +++ b/src/views/car/carRecord/index.vue @@ -6,6 +6,9 @@ + + + @@ -50,9 +53,9 @@ - + - + @@ -119,7 +122,7 @@ import { useDict } from '/@/hooks/dict'; // 引入组件 const FormDialog = defineAsyncComponent(() => import('./form.vue')); // 定义查询字典 -const { dh_car_color, dh_enter_or_exit, dh_car_num_color, dh_car_direct } = useDict("dh_car_color", "dh_enter_or_exit", "dh_car_num_color", "dh_car_direct") +const { dh_car_color, dh_car_inner_category, dh_car_num_color, dh_car_direct } = useDict("dh_car_color", "dh_car_inner_category", "dh_car_num_color", "dh_car_direct") // 定义变量内容 diff --git a/src/views/device/deviceGroup/camera-table-dialog.vue b/src/views/device/deviceGroup/camera-table-dialog.vue new file mode 100644 index 0000000..f6fea45 --- /dev/null +++ b/src/views/device/deviceGroup/camera-table-dialog.vue @@ -0,0 +1,118 @@ + + + + + + + + + + + + {{ $t('common.queryBtn') }} + + {{ $t('common.resetBtn') }} + + + + + + + + + + + {{ row.deviceIp }} + :{{ row.devicePort }} + + + + + + 删除 + + + + + + + + + + \ No newline at end of file diff --git a/src/views/device/deviceGroup/form.vue b/src/views/device/deviceGroup/form.vue new file mode 100644 index 0000000..4321ef4 --- /dev/null +++ b/src/views/device/deviceGroup/form.vue @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + 排序 + + + + + + + + + + + 取消 + 确认 + + + + + + \ No newline at end of file diff --git a/src/views/device/deviceGroup/index.vue b/src/views/device/deviceGroup/index.vue new file mode 100644 index 0000000..7751f88 --- /dev/null +++ b/src/views/device/deviceGroup/index.vue @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + {{ $t('common.queryBtn') }} + + {{ $t('common.resetBtn') }} + + + + + + + 同步房屋分组 + + + 新 增 + + + 删除 + + + + + + + + + + + + + + + + + + 摄像头 + + + 编辑 + + + 删除 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/door/doorAlarm/index.vue b/src/views/door/doorAlarm/index.vue index 264489b..7266fde 100644 --- a/src/views/door/doorAlarm/index.vue +++ b/src/views/door/doorAlarm/index.vue @@ -3,27 +3,29 @@ - - - - - - - - - - - - - - - {{ $t('common.queryBtn') }} - - {{ $t('common.resetBtn') }} - + + + + + + + + + + + + + + + + {{ $t('common.queryBtn') }} + + {{ $t('common.resetBtn') }} + + {{ row.weekStr }} - - - - {{ row.morningPreCount }} - 次 - - - - - - - {{ row.afternoonPreCount }} - 人 - - -