api.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/submit",
  21. method: "post",
  22. data
  23. });
  24. }
  25. //查询授权
  26. export function registerGrant(data){
  27. return request({
  28. url: "/core/safetycheck/register/grant",
  29. method: "post",
  30. data
  31. });
  32. }
  33. //查询角色
  34. export function registerRole(orgId){
  35. return request({
  36. url: "/system/role/getnamesbyorgid/"+orgId,
  37. method: "get",
  38. });
  39. }
  40. //获取检查内容库
  41. export function checkItemList(params){
  42. return request({
  43. url: "core/safetycheck/rule/ruleListForOrg",
  44. method: "get",
  45. params
  46. });
  47. }
  48. //
  49. export function checkList(params){
  50. return request({
  51. url: "core/safetycheck/ruleItem/pointSelectionPage",
  52. method: "get",
  53. params
  54. });
  55. }