api.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import request from "@/utils/request";
  2. //获取列表
  3. export function dataList(data) {
  4. return request({
  5. url: "/core/safetycheck/register/page",
  6. method: "post",
  7. data,
  8. });
  9. }
  10. //获取详情
  11. export function registerDetail(id){
  12. return request({
  13. url: "/core/safetycheck/register/app/"+id,
  14. method: "get",
  15. });
  16. }
  17. //保存提交
  18. export function registerSubmit(data){
  19. return request({
  20. url: "/core/safetycheck/register/appsubmit",
  21. method: "post",
  22. data
  23. });
  24. }
  25. //查询角色
  26. export function registerRole(orgId){
  27. return request({
  28. url: "/system/role/getnamesbyorgid/"+orgId,
  29. method: "get",
  30. });
  31. }
  32. //获取检查内容库
  33. export function checkItemList(params){
  34. return request({
  35. url: "/core/safetycheck/rule/ruleListForOrg",
  36. method: "get",
  37. params
  38. });
  39. }
  40. //
  41. export function checkList(params){
  42. return request({
  43. url: "/core/safetycheck/ruleItem/pointSelectionPage",
  44. method: "get",
  45. params
  46. });
  47. }
  48. //授权人员列表
  49. export function workerList(params){
  50. return request({
  51. url: "/system/user/list",
  52. method: "get",
  53. params
  54. });
  55. }
  56. //授权提交
  57. export function accredit(data){
  58. return request({
  59. url: "/core/safetycheck/register/grant",
  60. method: "post",
  61. data
  62. });
  63. }