This commit is contained in:
2023-03-20 17:28:07 +08:00
parent a7606b1f20
commit bff5199726
42 changed files with 5202 additions and 467 deletions

View File

@@ -0,0 +1,42 @@
import request from '@/utils/request'
export default {
pageList(data = {}) {
return request({
url: "/system/employee/list",
method: "get",
params: data,
});
},
getById(id) {
return request({
url: `/system/employee/${id}`,
method: "get",
});
},
add(data = {}) {
return request({
url: "/system/employee",
method: "post",
data,
});
},
update(data = {}) {
return request({
url: "/system/employee",
method: "put",
data,
});
},
delete(id) {
return request({
url: `/system/employee/${id}`,
method: "delete",
});
},
getEmployee() {
return request({
url: "/system/employee/getEmployees",
method: "get"
});
}
}