marsdept.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from '@/utils/request'
  2. // 查询玛氏岗位列表
  3. export function listMarsDept(query) {
  4. return request({
  5. url: '/iscs/workstation/getIsWorkstationPage',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询玛氏岗位列表(排除节点)
  11. export function listMarsDeptExcludeChild(deptId) {
  12. return request({
  13. url: '/system/dept/list/exclude/' + deptId,
  14. method: 'get'
  15. })
  16. }
  17. // 查询玛氏岗位详细
  18. export function getMarsDept(deptId) {
  19. return request({
  20. url: '/iscs/workstation/selectIsWorkstationById?workstationId=' + deptId,
  21. method: 'get'
  22. })
  23. }
  24. // 新增玛氏岗位
  25. export function addMarsDept(data) {
  26. return request({
  27. url: '/iscs/workstation/insertIsWorkstation',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. // 修改玛氏岗位
  33. export function updateMarsDept(data) {
  34. return request({
  35. url: '/iscs/workstation/updateIsWorkstation',
  36. method: 'post',
  37. data: data
  38. })
  39. }
  40. // 删除玛氏岗位
  41. export function delMarsDept(deptId) {
  42. return request({
  43. url: '/iscs/workstation/deleteIsWorkstationByWorkstationIds?workstationIds=' + deptId,
  44. method: 'post'
  45. })
  46. }