增加接口:排班、系统配置、用户列表

# Conflicts:
#	src/api/request.js
#	src/layout/menu/index.vue
#	src/layout/menu/menuTable.js
#	src/store/modules/users.js
#	src/views/goods/index.vue
This commit is contained in:
monanxiao
2024-10-12 11:49:12 +08:00
parent d75b193221
commit 2901e631fa
4 changed files with 73 additions and 2 deletions
+29
View File
@@ -0,0 +1,29 @@
import service from "../request.js";
const API_BASE_URL = '/schedule';
// 添加排班
export function getScheduleList(query) {
return service({
method: "post",
url: `${API_BASE_URL}/list`,
data: query,
});
}
// 修改排班
export function updateSchedule(params) {
return service({
method: "put",
url: `${API_BASE_URL}`,
data: params,
});
}
// 删除排班
export function delSchedule(params) {
return service({
method: "put",
url: `${API_BASE_URL}`,
data: params,
});
}
+20
View File
@@ -0,0 +1,20 @@
import service from "../request.js";
const API_BASE_URL = '/config';
// 配置列表
export function getSystemList(query) {
return service({
method: "get",
url: `${API_BASE_URL}/list`,
data: query,
});
}
// 修改配置
export function updateSystem(params) {
return service({
method: "put",
url: `${API_BASE_URL}`,
data: params,
});
}
+21 -1
View File
@@ -1,10 +1,30 @@
import service from "../request.js";
const API_BASE_URL = '/user';
// 客户列表
export function getUserList(query) {
return service({
method: "get",
url: "/permission/UserList",
url: `${API_BASE_URL}`,
data: query,
});
}
// 获取勘察人员列表
export function getSurveyorsList(query) {
return service({
method: "get",
url: `${API_BASE_URL}/surveyors`,
data: query,
});
}
// 获取维修人员列表
export function getMaintenanceList(query) {
return service({
method: "get",
url: `${API_BASE_URL}/maintenance`,
data: query,
});
}
+3 -1
View File
@@ -1,6 +1,8 @@
<template>
<el-card>
<div>欢迎使用💐🌸💮🏵🌹🌺🌻</div>
<div>
欢迎回来重庆创兴佳后台管理后台
</div>
</el-card>
</template>