dataease-dm/frontend/src/api/example.js

29 lines
586 B
JavaScript
Raw Normal View History

2021-03-03 15:06:52 +08:00
import request from '@/utils/request'
const example = {
// 获取员工列表
staffList(data) {
return request.post(`/staff/findPage?pageNo=${data.pageNo - 1}&pageSize=${data.pageSize}`, {
name: data.name,
idCard: data.idCard,
mobile: data.mobile,
company: data.company,
department: data.department,
status: data.status,
reportTime: data.reportTime
})
},
// 删除员工信息
deleteByStaffInfo(id) {
return request.get('/staff/deleteById', {
params: {
id: id
}
})
}
}
export default example