shoreBasedMembers.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. import request from "../utils/request";
  2. // 查询部门下职员
  3. export function staffPageByCondition(data) {
  4. return request({
  5. url: "/baseStaff/query/staffPageByCondition",
  6. method: "get",
  7. params: data
  8. });
  9. }
  10. // 删除
  11. export function remove(data) {
  12. return request({
  13. url: "/managerStaff/api/remove",
  14. method: "post",
  15. data
  16. });
  17. }
  18. // 创建职员
  19. export function create(data) {
  20. return request({
  21. url: "/baseStaff/api/create",
  22. method: "post",
  23. data
  24. });
  25. }
  26. // 查询部门下职员
  27. export function findRoles(data) {
  28. return request({
  29. url: "/baseRole/query/findRoles",
  30. method: "get",
  31. params: data
  32. });
  33. }
  34. // 修改职员信息
  35. export function changeInfo(data) {
  36. return request({
  37. // url: "/baseStaff/api/changeInfo",
  38. url: "/commonUser/api/changeInfo",
  39. method: "post",
  40. data
  41. });
  42. }
  43. // 根据公司ID获取职务列表(新)
  44. export function company(data) {
  45. return request({
  46. url: "/baseRole/query/company",
  47. method: "get",
  48. params: data
  49. });
  50. }
  51. // 获取职员详情
  52. export function staffInfo(data) {
  53. return request({
  54. url: "/baseStaff/query/staffInfo",
  55. method: "get",
  56. params: data
  57. });
  58. }
  59. // 查询角色
  60. export function companyRoleList(data) {
  61. return request({
  62. url: "/baseRole/query/company",
  63. method: "get",
  64. params: data
  65. });
  66. }
  67. // 查询公司船舶
  68. export function companyVessels(data) {
  69. return request({
  70. url: "/baseVessel/query/companyVessels",
  71. method: "get",
  72. params: data
  73. });
  74. }
  75. // 根据所属公司ID查询部门下拉列表
  76. export function getDeptListByCompId(data) {
  77. return request({
  78. url: "/department/query/getDeptListByCompId",
  79. method: "get",
  80. params: data
  81. });
  82. }
  83. // 兼职职务保存
  84. export function saveRole(data) {
  85. return request({
  86. url: "/commonUser/api/saveRole",
  87. method: "post",
  88. data
  89. });
  90. }