home.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. import request from '../../utils/request'
  2. import request2 from '../../utils/request2'
  3. //获取权限信息
  4. export function getVerification(data) {
  5. return request2({
  6. url: '/api/verification',
  7. method: 'post',
  8. data: data
  9. })
  10. }
  11. // 系统列表
  12. export function getSystemList(data) {
  13. return request({
  14. url: '/api/web/system/list',
  15. method: 'post',
  16. data: data
  17. })
  18. }
  19. // 角色列表
  20. export function getRoleList(data) {
  21. return request({
  22. url: '/api/web/role/list',
  23. method: 'post',
  24. data: data
  25. })
  26. }
  27. // 模板列表
  28. export function getFunctionList(data) {
  29. return request({
  30. url: '/api/web/function/list',
  31. method: 'post',
  32. data: data
  33. })
  34. }
  35. // 模板添加
  36. export function getFunctionAdd(data) {
  37. return request({
  38. url: '/api/web/function/add',
  39. method: 'post',
  40. data: data
  41. })
  42. }
  43. // 模板修改
  44. export function getFunctionUpdate(data) {
  45. return request({
  46. url: '/api/web/function/update',
  47. method: 'post',
  48. data: data
  49. })
  50. }
  51. // 模板删除
  52. export function getFunctionDel(data) {
  53. return request({
  54. url: '/api/web/function/del',
  55. method: 'post',
  56. data: data
  57. })
  58. }
  59. // 用户管理模块接口
  60. // 查询top用户信息接口
  61. export function getTopUserByLoginName(data) {
  62. return request({
  63. url: '/api/web/user/getTopUserByLoginName',
  64. method: 'post',
  65. data: data
  66. })
  67. }
  68. // 查询所有权限列表接口
  69. export function getroleAll(data) {
  70. return request({
  71. url: '/api/web/role/all',
  72. method: 'post',
  73. data: data
  74. })
  75. }
  76. // 查询地市和区县树形接口(用户列表地区选择框)
  77. export function getCityAreaList(data) {
  78. return request({
  79. url: '/api/web/area/tree',
  80. method: 'post',
  81. data: data
  82. })
  83. }
  84. // 查询地市和区县树形接口(添加、修改用户、操作日志地区选择框)
  85. export function getTreeProvinceCity(data) {
  86. return request({
  87. url: '/api/web/area/treeProvinceCity',
  88. method: 'post',
  89. data: data
  90. })
  91. }
  92. // 查询用户权限接口
  93. export function getRoleByLoginName(data) {
  94. return request({
  95. url: '/api/web/user/getRoleByLoginName',
  96. method: 'post',
  97. data: data
  98. })
  99. }
  100. // 查询用户列表接口
  101. export function getUserList(data) {
  102. return request({
  103. url: '/api/web/user/list',
  104. method: 'post',
  105. data: data
  106. })
  107. }
  108. // 添加用户接口
  109. export function getUserAdd(data) {
  110. return request({
  111. url: '/api/web/user/add',
  112. method: 'post',
  113. data: data
  114. })
  115. }
  116. // 修改用户接口
  117. export function getUserUpdate(data) {
  118. return request({
  119. url: '/api/web/user/update',
  120. method: 'post',
  121. data: data
  122. })
  123. }
  124. // 删除用户接口
  125. export function getUserDel(data) {
  126. return request({
  127. url: '/api/web/user/del',
  128. method: 'post',
  129. data: data
  130. })
  131. }
  132. // 查询用户详情接口
  133. export function getUserDetail(data) {
  134. return request({
  135. url: '/api/web/user/detail',
  136. method: 'post',
  137. data: data
  138. })
  139. }
  140. // 批量复制权限接口
  141. export function getRoleCopy(data) {
  142. return request({
  143. url: '/api/web/user/copyRole',
  144. method: 'post',
  145. data: data
  146. })
  147. }
  148. // 根据地市id获取区县列表
  149. export function getAreasByCityId(data) {
  150. return request({
  151. url: '/api/web/area/getAreasByCityId',
  152. method: 'post',
  153. data: data
  154. })
  155. }
  156. // 操作日志
  157. export function getOperationLogList(data) {
  158. return request({
  159. url: '/api/web/log/operationLog/list',
  160. method: 'post',
  161. data: data
  162. })
  163. }
  164. // 操作导出
  165. export function getOperationLogExport(data) {
  166. return request({
  167. url: '/api/web/log/operationLog/export',
  168. method: 'post',
  169. data: data
  170. })
  171. }
  172. // 登录日志
  173. export function getVerificationLogList(data) {
  174. return request({
  175. url: '/api/web/log/verificationLog/list',
  176. method: 'post',
  177. data: data
  178. })
  179. }
  180. // 登录导出
  181. export function getVerificationLogExport(data) {
  182. return request({
  183. url: '/api/web/log/verificationLog/export',
  184. method: 'post',
  185. data: data
  186. })
  187. }