From 0a17d3589e508ffd3ac4a822d65fa550e30b0d8e Mon Sep 17 00:00:00 2001 From: lzyyj Date: Wed, 16 Oct 2024 11:22:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8B=98=E5=AF=9F=E4=BA=BA=E5=91=98=E6=8E=92?= =?UTF-8?q?=E7=8F=AD=EF=BC=8C=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90=EF=BC=8C?= =?UTF-8?q?=E6=9C=89=E9=81=97=E7=95=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/scheduling.js | 9 ++ src/api/modules/schedulingUser.js | 4 +- src/views/scheduling/reconnaissance.vue | 155 ++++++++++-------------- 3 files changed, 72 insertions(+), 96 deletions(-) diff --git a/src/api/modules/scheduling.js b/src/api/modules/scheduling.js index 5b29b55..53aa590 100644 --- a/src/api/modules/scheduling.js +++ b/src/api/modules/scheduling.js @@ -10,6 +10,15 @@ export function getScheduleList(params) { }); } +// 添加排班 +export function addSchedule(params) { + return service({ + method: "post", + url: `${API_BASE_URL}`, + data: params, + }); +} + // 修改排班 export function updateSchedule(params) { return service({ diff --git a/src/api/modules/schedulingUser.js b/src/api/modules/schedulingUser.js index 25bdcc7..26d2809 100644 --- a/src/api/modules/schedulingUser.js +++ b/src/api/modules/schedulingUser.js @@ -5,7 +5,7 @@ const API_BASE_URL = '/user'; export function listSurveyorsUser(query) { return service({ method: "get", - url: `${API_BASE_URL}/`, + url: `${API_BASE_URL}/surveyors`, params: query }); } @@ -14,7 +14,7 @@ export function listSurveyorsUser(query) { export function listMaintenanceUser(query) { return service({ method: "get", - url: `${API_BASE_URL}/`, + url: `${API_BASE_URL}/maintenance`, params: query }); } diff --git a/src/views/scheduling/reconnaissance.vue b/src/views/scheduling/reconnaissance.vue index d60983f..f4e7c08 100644 --- a/src/views/scheduling/reconnaissance.vue +++ b/src/views/scheduling/reconnaissance.vue @@ -38,7 +38,7 @@ - + 查询 + + 时段管理 + + + 排班管理 + @@ -100,7 +106,7 @@
取消 - 确认 + 确认
@@ -110,11 +116,11 @@ @@ -155,7 +160,7 @@ - + 创建时段 @@ -214,7 +219,8 @@ -
+
+