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 @@ + + + + + + + + + + + + + + + + + + + + + + + + 取消 + + + 确定 + + + + + + + + + + + + + + + + 取消 + + + 确定 + + + + + + + + + +