From 4a0fcff2482fd78c31820e0d02889d00a06889be Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 9 Oct 2024 14:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/repair/repairworker/index.js | 53 +++++++ src/views/repair/repairworker/WorkerForm.vue | 110 ++++++++++++++ src/views/repair/repairworker/index.vue | 150 +++++++++++++++++++ 3 files changed, 313 insertions(+) create mode 100644 src/api/repair/repairworker/index.js create mode 100644 src/views/repair/repairworker/WorkerForm.vue create mode 100644 src/views/repair/repairworker/index.vue diff --git a/src/api/repair/repairworker/index.js b/src/api/repair/repairworker/index.js new file mode 100644 index 0000000..0ffa801 --- /dev/null +++ b/src/api/repair/repairworker/index.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 创建维修工人 +export function createWorker(data) { + return request({ + url: '/repair/worker/create', + method: 'post', + data: data + }) +} + +// 更新维修工人 +export function updateWorker(data) { + return request({ + url: '/repair/worker/update', + method: 'put', + data: data + }) +} + +// 删除维修工人 +export function deleteWorker(id) { + return request({ + url: '/repair/worker/delete?id=' + id, + method: 'delete' + }) +} + +// 获得维修工人 +export function getWorker(id) { + return request({ + url: '/repair/worker/get?id=' + id, + method: 'get' + }) +} + +// 获得维修工人分页 +export function getWorkerPage(params) { + return request({ + url: '/repair/worker/page', + method: 'get', + params + }) +} +// 导出维修工人 Excel +export function exportWorkerExcel(params) { + return request({ + url: '/repair/worker/export-excel', + method: 'get', + params, + responseType: 'blob' + }) +} \ No newline at end of file diff --git a/src/views/repair/repairworker/WorkerForm.vue b/src/views/repair/repairworker/WorkerForm.vue new file mode 100644 index 0000000..ec7f1ea --- /dev/null +++ b/src/views/repair/repairworker/WorkerForm.vue @@ -0,0 +1,110 @@ + + + \ No newline at end of file diff --git a/src/views/repair/repairworker/index.vue b/src/views/repair/repairworker/index.vue new file mode 100644 index 0000000..d55de83 --- /dev/null +++ b/src/views/repair/repairworker/index.vue @@ -0,0 +1,150 @@ + + + \ No newline at end of file