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