diff --git a/src/api/system/attMacManage.js b/src/api/system/attMacManage.js new file mode 100644 index 0000000..8271e33 --- /dev/null +++ b/src/api/system/attMacManage.js @@ -0,0 +1,117 @@ +import request from '@/utils/request' + +// 获取工程和考勤机树形数据 +export function getProjectAndMacTreeAPI() { + return request({ + url: '/bmw/kqManager/getProKqjTree', + method: 'get', + }) +} + +// 根据考勤机编号获取人员列表 +export function getPersonListByMacNoAPI(params) { + return request({ + url: '/bmw/kqManager/getWorkerByDeviceId', + method: 'get', + params, + }) +} + +// 获取所有人员列表 +export function getAllPersonListAPI(params) { + return request({ + url: '/bmw/kqManager/getProDeviceWorker', + method: 'get', + params, + }) +} + +// 删除人员 +export function deletePersonAPI(data) { + return request({ + url: '/bmw/kqManager/delWorkerByDevice', + method: 'post', + data, + }) +} + +// 批量删除人员 +export function batchDeletePersonAPI(ids) { + return request({ + url: '/system/attMacManage/batchDeletePerson', + method: 'post', + data: { ids }, + }) +} + +// 下发 +export function sendDownAPI(data) { + return request({ + url: '/bmw/kqManager/pushWorkerByDevice', + method: 'post', + data, + }) +} + +// 配置 +export function configAPI(data) { + return request({ + url: '/system/attMacManage/config', + method: 'post', + data, + }) +} + +// 刷新 +export function refreshAPI(macNo) { + return request({ + url: '/bmw/kqManager/refreshDevice', + method: 'post', + data: { deviceCode: macNo }, + }) +} + +// 重启 +export function restartAPI(macNo) { + return request({ + url: '/bmw/kqManager/restartDevice', + method: 'post', + data: { deviceCode: macNo }, + }) +} + +// 获取任务列表 +export function getTaskListAPI(params) { + return request({ + url: '/bmw/kqManager/getTaskList', + method: 'get', + params, + }) +} + +// 删除任务 +export function deleteTaskAPI(data) { + return request({ + url: '/bmw/kqManager/delTaskById', + method: 'post', + data, + }) +} + +// 获取任务历史列表 +export function getTaskHistoryListAPI(params) { + return request({ + url: '/bmw/kqManager/getHisTaskList', + method: 'get', + params, + }) +} + +// 批量删除任务 +export function batchDeleteTaskAPI(data) { + return request({ + url: '/bmw/kqManager/delHisTaskById', + method: 'post', + data, + }) +} diff --git a/src/views/system/AttMacManage/components/leftTree.vue b/src/views/system/AttMacManage/components/leftTree.vue new file mode 100644 index 0000000..a58516b --- /dev/null +++ b/src/views/system/AttMacManage/components/leftTree.vue @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + {{ 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..725fd8a --- /dev/null +++ b/src/views/system/AttMacManage/components/rightTable.vue @@ -0,0 +1,833 @@ + + + + + + + + 批量删除 + + + 下发 + + + 配置 + + + {{ + refreshCountdown > 0 + ? `刷新(${refreshCountdown}s)` + : '刷新' + }} + + + {{ + restartCountdown > 0 + ? `重启(${restartCountdown}s)` + : '重启' + }} + + + + + 删除 + + + + + + + + + + 在库 + + + 不在库 + + + + + + + + + + + + + {{ `${allSelect ? '取消全选' : '全选'}` }} + + + + + + {{ item.name }} + + + + + + + {{ item.name }} + + + + + + + 取消 + + + 确定 + + + + + + + + + + + + + + + + + + + + + 取消 + + + 确定 + + + + + + + + + + diff --git a/src/views/system/AttMacManage/components/taskHistoryList.vue b/src/views/system/AttMacManage/components/taskHistoryList.vue new file mode 100644 index 0000000..05a460e --- /dev/null +++ b/src/views/system/AttMacManage/components/taskHistoryList.vue @@ -0,0 +1,274 @@ + + + + + + + + 批量删除 + + + + + 待执行 + + + 执行中 + + + 已完成 + + + 任务繁忙-人员占用 + + + 失败 + + + + + + + + + + + diff --git a/src/views/system/AttMacManage/components/taskList.vue b/src/views/system/AttMacManage/components/taskList.vue new file mode 100644 index 0000000..8f46f2e --- /dev/null +++ b/src/views/system/AttMacManage/components/taskList.vue @@ -0,0 +1,271 @@ + + + + + + + + 批量删除 + + + + + 待执行 + + + 执行中 + + + 已完成 + + + 任务繁忙-人员占用 + + + 失败 + + + + + + + + + + + diff --git a/src/views/system/AttMacManage/index.vue b/src/views/system/AttMacManage/index.vue new file mode 100644 index 0000000..475a8e4 --- /dev/null +++ b/src/views/system/AttMacManage/index.vue @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + 人员列表 + 任务列表 + 任务历史 + + + + + + 当前节点: + {{ + selectedNodeName || '未选择' + }} + + + + + + + + + + + + + + + +