人民医院前端

userManage.js 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. import request from '@/utils/request'
  2. // 获取用户列表数据
  3. export function getUserAccountLists(params) {
  4. return request({
  5. url: 'UserAccount/GetAllList',
  6. method: 'get',
  7. params
  8. })
  9. }
  10. // 获取用户数据
  11. export function getUserAccount(params) {
  12. return request({
  13. url: 'UserAccount/GetModel',
  14. method: 'get',
  15. params
  16. })
  17. }
  18. // 添加用户数据
  19. export function addUserAccount(data) {
  20. return request({
  21. url: 'UserAccount/AddUsers',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. // 编辑用户数据
  27. export function editUserAccount(data) {
  28. return request({
  29. url: 'UserAccount/EditUsers',
  30. method: 'post',
  31. data
  32. })
  33. }
  34. // 删除用户数据
  35. export function deleteUserAccount(params) {
  36. return request({
  37. url: 'UserAccount/DeleteUsers',
  38. method: 'post',
  39. params
  40. })
  41. }
  42. // 管理员修改密码
  43. export function updatePassword(data) {
  44. return request({
  45. url: 'UserAccount/ResetPwd',
  46. method: 'post',
  47. data
  48. })
  49. }
  50. // 获取菜单树 数据
  51. export function getDeptTree(params) {
  52. return request({
  53. url: 'Department/GetTreeList',
  54. method: 'get',
  55. params
  56. })
  57. }
  58. // 获取菜单树故障报修数据
  59. export function getDeptGzbxTree(params) {
  60. return request({
  61. url: 'Department/GetTreeListNew',
  62. method: 'get',
  63. params
  64. })
  65. }
  66. // 启用禁用
  67. export function getDelUsers(params) {
  68. return request({
  69. url: 'UserAccount/DelUsers',
  70. method: 'post',
  71. params
  72. })
  73. }
  74. // 导入
  75. export function getUserInput(params) {
  76. return request({
  77. url: 'UserAccount/UserInput',
  78. method: 'POST',
  79. params
  80. })
  81. }
  82. // 导出
  83. export function getUserExport(params) {
  84. return request({
  85. url: 'UserAccount/GetList',
  86. method: 'get',
  87. responseType: 'blob',
  88. params
  89. })
  90. }
  91. // 眼睛
  92. export function GetCompletePhone(params) {
  93. return request({
  94. url: 'UserAccount/GetCompletePhone',
  95. method: 'get',
  96. params
  97. })
  98. }
  99. // 重置密码
  100. export function NewResetPwd(data) {
  101. return request({
  102. url: 'UserAccount/NewResetPwd',
  103. method: 'post',
  104. data
  105. })
  106. }
  107. // 恢复用户
  108. export function ChangeDelete(data) {
  109. return request({
  110. url: 'UserAccount/ChangeDelete',
  111. method: 'post',
  112. data
  113. })
  114. }