diff --git a/src/api/modules/scheduling.js b/src/api/modules/scheduling.js
index e05f5cc..5b29b55 100644
--- a/src/api/modules/scheduling.js
+++ b/src/api/modules/scheduling.js
@@ -2,11 +2,11 @@ import service from "../request.js";
const API_BASE_URL = '/schedule';
// 添加排班
-export function getScheduleList(query) {
+export function getScheduleList(params) {
return service({
- method: "post",
- url: `${API_BASE_URL}/list`,
- data: query,
+ method: "get",
+ url: `${API_BASE_URL}/${params.timeQuantumId}`,
+ params: params
});
}
@@ -22,8 +22,8 @@ export function updateSchedule(params) {
// 删除排班
export function delSchedule(params) {
return service({
- method: "put",
+ method: "delete",
url: `${API_BASE_URL}`,
data: params,
});
-}
\ No newline at end of file
+}
diff --git a/src/api/modules/schedulingTime.js b/src/api/modules/schedulingTime.js
new file mode 100644
index 0000000..98bc4b8
--- /dev/null
+++ b/src/api/modules/schedulingTime.js
@@ -0,0 +1,36 @@
+import service from "../request.js";
+const API_BASE_URL = '/time/quantum';
+
+// 获取排班时段列表
+export function listQuantum() {
+ return service({
+ method: "get",
+ url: `${API_BASE_URL}`
+ });
+}
+
+// 修改排班时段
+export function addQuantum(params) {
+ return service({
+ method: "post",
+ url: `${API_BASE_URL}`,
+ data: params,
+ });
+}
+
+// 修改排班时段
+export function updateQuantum(params) {
+ return service({
+ method: "put",
+ url: `${API_BASE_URL}`,
+ data: params,
+ });
+}
+
+// 删除排班时段
+export function delQuantum(id) {
+ return service({
+ method: "delete",
+ url: `${API_BASE_URL}/`+id
+ });
+}
diff --git a/src/api/modules/schedulingUser.js b/src/api/modules/schedulingUser.js
new file mode 100644
index 0000000..25bdcc7
--- /dev/null
+++ b/src/api/modules/schedulingUser.js
@@ -0,0 +1,20 @@
+import service from "../request.js";
+const API_BASE_URL = '/user';
+
+// 查询勘察人员列表
+export function listSurveyorsUser(query) {
+ return service({
+ method: "get",
+ url: `${API_BASE_URL}/`,
+ params: query
+ });
+}
+
+// 查询勘察人员列表
+export function listMaintenanceUser(query) {
+ return service({
+ method: "get",
+ url: `${API_BASE_URL}/`,
+ params: query
+ });
+}
diff --git a/src/views/engineer/options.js b/src/views/engineer/options.js
deleted file mode 100644
index f20a060..0000000
--- a/src/views/engineer/options.js
+++ /dev/null
@@ -1,86 +0,0 @@
-export const options = [
- {
- userId: 1,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '高永建',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-11 10:11:01'
- },
- {
- userId: 2,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '张三',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-10 10:11:01'
- },
- {
- userId: 3,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '李四',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-13 10:11:01'
- },
- {
- userId: 4,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '名称',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-02 10:11:01'
- },{
- userId: 5,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '名称',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-01 10:11:01'
- },
- {
- userId: 6,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '名称',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-11 10:11:01'
- },{
- userId: 7,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '名称',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-11 10:11:01'
- },{
- userId: 8,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '名称',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-11 10:11:01'
- },{
- userId: 9,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '名称',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-11 10:11:01'
- },{
- userId: 10,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '名称',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-11 10:11:01'
- },
- {
- userId: 11,
- avatar: 'https://pic.qqans.com/up/2024-6/2024620113729773.jpg',
- name: '名称',
- nickname: '软件开发老高',
- mobile: '19136448763',
- date: '2024-10-11 10:11:01'
- },
-
-];
\ No newline at end of file
diff --git a/src/views/scheduling/reconnaissance.vue b/src/views/scheduling/reconnaissance.vue
index 48295a3..d60983f 100644
--- a/src/views/scheduling/reconnaissance.vue
+++ b/src/views/scheduling/reconnaissance.vue
@@ -9,66 +9,101 @@
创建排班
+
-
-
-
-
-
-
-
+
+
+
+
+
-
- 查询
-
-
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+ 查询
+
-
- 查询
-
-
-
-
-
-
-
-
- 查询
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
创建排班
@@ -93,7 +128,7 @@
style="width: 240px"
>
+
+
+ 创建时段
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+