From c0c800bbc79ae4af5809300f411e9f288eec7d3b Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 27 Nov 2025 13:49:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=80=83=E5=8B=A4=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/attMacManage.js | 80 +++++ .../AttMacManage/components/leftTree.vue | 159 ++++++++++ .../AttMacManage/components/rightTable.vue | 294 ++++++++++++++++++ src/views/system/AttMacManage/index.vue | 266 ++++++++++++++++ 4 files changed, 799 insertions(+) create mode 100644 src/api/system/attMacManage.js create mode 100644 src/views/system/AttMacManage/components/leftTree.vue create mode 100644 src/views/system/AttMacManage/components/rightTable.vue create mode 100644 src/views/system/AttMacManage/index.vue diff --git a/src/api/system/attMacManage.js b/src/api/system/attMacManage.js new file mode 100644 index 0000000..11eb71b --- /dev/null +++ b/src/api/system/attMacManage.js @@ -0,0 +1,80 @@ +import request from '@/utils/request' + +// 获取工程和考勤机树形数据 +export function getProjectAndMacTreeAPI() { + return request({ + url: '/system/attMacManage/tree', + method: 'get', + }) +} + +// 根据考勤机编号获取人员列表 +export function getPersonListByMacNoAPI(params) { + return request({ + url: '/system/attMacManage/personList', + method: 'get', + params, + }) +} + +// 获取所有人员列表 +export function getAllPersonListAPI(params) { + return request({ + url: '/system/attMacManage/allPersonList', + method: 'get', + params, + }) +} + +// 删除人员 +export function deletePersonAPI(id) { + return request({ + url: '/system/attMacManage/deletePerson/' + id, + method: 'post', + }) +} + +// 批量删除人员 +export function batchDeletePersonAPI(ids) { + return request({ + url: '/system/attMacManage/batchDeletePerson', + method: 'post', + data: { ids }, + }) +} + +// 下发 +export function sendDownAPI(data) { + return request({ + url: '/system/attMacManage/sendDown', + method: 'post', + data, + }) +} + +// 配置 +export function configAPI(data) { + return request({ + url: '/system/attMacManage/config', + method: 'post', + data, + }) +} + +// 刷新 +export function refreshAPI(macNo) { + return request({ + url: '/system/attMacManage/refresh', + method: 'post', + data: { macNo }, + }) +} + +// 重启 +export function restartAPI(macNo) { + return request({ + url: '/system/attMacManage/restart', + method: 'post', + data: { macNo }, + }) +} diff --git a/src/views/system/AttMacManage/components/leftTree.vue b/src/views/system/AttMacManage/components/leftTree.vue new file mode 100644 index 0000000..ebeb003 --- /dev/null +++ b/src/views/system/AttMacManage/components/leftTree.vue @@ -0,0 +1,159 @@ + + + + 工程考勤机 + + + + + + + + {{ node.label }} + + + + + + + + + diff --git a/src/views/system/AttMacManage/components/rightTable.vue b/src/views/system/AttMacManage/components/rightTable.vue new file mode 100644 index 0000000..6e74a98 --- /dev/null +++ b/src/views/system/AttMacManage/components/rightTable.vue @@ -0,0 +1,294 @@ + + + + 人员列表 + + + + + + 批量删除 + + + 下发 + + + 配置 + + + 刷新 + + + 重启 + + + + + 删除 + + + + + + + + + + diff --git a/src/views/system/AttMacManage/index.vue b/src/views/system/AttMacManage/index.vue new file mode 100644 index 0000000..b045b68 --- /dev/null +++ b/src/views/system/AttMacManage/index.vue @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + + + + + + 取消 + + + 确定 + + + + + + + + + + + + + + + + 取消 + + + 确定 + + + + + + + + + +