From 169e54a96faf37bd2728043fcef02972a1f168fe Mon Sep 17 00:00:00 2001 From: zc Date: Thu, 10 Jul 2025 23:24:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B4=E5=AE=89=E5=87=BA=E9=97=A8=E8=AF=81?= =?UTF-8?q?=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/visCarryStuff/visCarryStuff.js | 18 + src/api/visCarryStuff/visStuffRecord.js | 27 + src/views/face/record/index.vue | 3 +- src/views/system/dkRecord/index.vue | 5 + src/views/visCarryStuff/record/index.vue | 374 +---- .../visCarryStuff/visCarryStuff/index.vue | 1220 +++++------------ 6 files changed, 480 insertions(+), 1167 deletions(-) create mode 100644 src/api/visCarryStuff/visCarryStuff.js create mode 100644 src/api/visCarryStuff/visStuffRecord.js diff --git a/src/api/visCarryStuff/visCarryStuff.js b/src/api/visCarryStuff/visCarryStuff.js new file mode 100644 index 0000000..2bebfe7 --- /dev/null +++ b/src/api/visCarryStuff/visCarryStuff.js @@ -0,0 +1,18 @@ +import request from '@/utils/request' + +// 查询访客信息列表 +export function list(query) { + return request({ + url: '/system/stuff/list', + method: 'get', + params: query + }) +} + +// 查询访客信息详细 +export function getInfo(id) { + return request({ + url: '/system/stuff/' + id, + method: 'get' + }) +} diff --git a/src/api/visCarryStuff/visStuffRecord.js b/src/api/visCarryStuff/visStuffRecord.js new file mode 100644 index 0000000..43f1a31 --- /dev/null +++ b/src/api/visCarryStuff/visStuffRecord.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +// 查询出门记录列表 +export function list(query) { + return request({ + url: '/system/exitRecord/list', + method: 'get', + params: query + }) +} + +// 查询访客信息详细 +export function getInfo(id) { + return request({ + url: '/system/exitRecord/' + id, + method: 'get' + }) +} + +// 删除访客信息 +export function deleteRecord(id) { + return request({ + url: '/system/exitRecord/' + id, + method: 'delete' + }) +} + diff --git a/src/views/face/record/index.vue b/src/views/face/record/index.vue index 21612ea..613ab4c 100644 --- a/src/views/face/record/index.vue +++ b/src/views/face/record/index.vue @@ -177,8 +177,7 @@ - - + · diff --git a/src/views/system/dkRecord/index.vue b/src/views/system/dkRecord/index.vue index 2f90ea4..1e2dd57 100644 --- a/src/views/system/dkRecord/index.vue +++ b/src/views/system/dkRecord/index.vue @@ -441,8 +441,13 @@ export default { this.handleQuery(); }, dataChange(e){ + if (e) { this.queryParams.showDateState = moment(e[0]).format('yyyy-MM-DD HH:mm'); this.queryParams.showDateEnd = moment(e[1]).format('yyyy-MM-DD HH:mm'); + } else { + delete this.queryParams.showDateState; + delete this.queryParams.showDateEnd; + } }, // 多选框选中数据 handleSelectionChange(selection) { diff --git a/src/views/visCarryStuff/record/index.vue b/src/views/visCarryStuff/record/index.vue index 46fa074..e3935b4 100644 --- a/src/views/visCarryStuff/record/index.vue +++ b/src/views/visCarryStuff/record/index.vue @@ -1,22 +1,43 @@