statistics-service.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. import axios from '@/common/services/axios-instance'
  2. import PageService from '@/common/services/page-service'
  3. class StatisticsService {
  4. // 查询
  5. getprojectList(data) {
  6. return axios({
  7. url: `api/xcoa-mobile/v1/iam-statistics/getAuditProjectList`,
  8. method: 'POST',
  9. data,
  10. }).then((res) => {
  11. return res.data
  12. })
  13. }
  14. // 发现明细列表
  15. getfindList(data) {
  16. return axios({
  17. url: `api/xcoa-mobile/v1/iam-statistics/getAuditFindList`,
  18. method: 'POST',
  19. data,
  20. }).then((res) => {
  21. return res.data
  22. })
  23. }
  24. // 导出
  25. exportData(data) {
  26. return axios({
  27. url: `api/xcoa-mobile/v1/iam-statistics/exportAuditProjectList`,
  28. method: 'POST',
  29. data,
  30. responseType: 'blob',
  31. }).then((res) => {
  32. return res.data
  33. })
  34. }
  35. // 项目执行情况列表 查询
  36. getImplementList(data) {
  37. return axios({
  38. url: `api/xcoa-mobile/v1/iam-statistics/getProjectExecList`,
  39. method: 'POST',
  40. data,
  41. }).then((res) => {
  42. return res.data
  43. })
  44. }
  45. // 项目执行情况列表 导出
  46. exportImplementList(data) {
  47. return axios({
  48. url: `api/xcoa-mobile/v1/iam-statistics/exportProjectExecList`,
  49. method: 'POST',
  50. data,
  51. responseType: 'blob',
  52. }).then((res) => {
  53. return res.data
  54. })
  55. }
  56. // 整改情况统计 查询
  57. getRectifyList(data) {
  58. return axios({
  59. url: `api/xcoa-mobile/v1/iam-statistics/getRectifyStatusList`,
  60. method: 'POST',
  61. data,
  62. }).then((res) => {
  63. return res.data
  64. })
  65. }
  66. // 整改情况统计-按整改单位 查询
  67. getUnitRectifyList(data) {
  68. return axios({
  69. url: `api/xcoa-mobile/v1/iam-statistics/getUnitRectifyStatusList`,
  70. method: 'POST',
  71. data,
  72. }).then((res) => {
  73. return res.data
  74. })
  75. }
  76. // 整改情况统计 导出
  77. exportRectifyList(data) {
  78. return axios({
  79. url: `api/xcoa-mobile/v1/iam-statistics/exportRectifyStatusList`,
  80. method: 'POST',
  81. data,
  82. responseType: 'blob',
  83. }).then((res) => {
  84. return res.data
  85. })
  86. }
  87. // 整改情况统计-按整改单位 导出
  88. exportUnitRectifyList(data) {
  89. return axios({
  90. url: `api/xcoa-mobile/v1/iam-statistics/exportUnitRectifyStatusList`,
  91. method: 'POST',
  92. data,
  93. responseType: 'blob',
  94. }).then((res) => {
  95. return res.data
  96. })
  97. }
  98. // 机构人员统计-机构基本情况统计 查询
  99. getPersonalStatisticsList(data) {
  100. return axios({
  101. url: `api/xcoa-mobile/v1/iam-statistics/getOrgStatusList`,
  102. method: 'POST',
  103. data,
  104. }).then((res) => {
  105. return res.data
  106. })
  107. }
  108. // 机构人员统计-人员工作情况统计 查询
  109. getPersonalWorkStatisticsList(data) {
  110. return axios({
  111. url: `api/xcoa-mobile/v1/iam-statistics/getUserStatusList`,
  112. method: 'POST',
  113. data,
  114. }).then((res) => {
  115. return res.data
  116. })
  117. }
  118. // 机构人员统计 导出
  119. exportPersonalStatisticsList(data) {
  120. return axios({
  121. url: `api/xcoa-mobile/v1/iam-statistics/exportOrgStatusList`,
  122. method: 'POST',
  123. data,
  124. responseType: 'blob',
  125. }).then((res) => {
  126. return res.data
  127. })
  128. }
  129. // 机构人员统计 导出
  130. exportPersonalWorkStatisticsList(data) {
  131. return axios({
  132. url: `api/xcoa-mobile/v1/iam-statistics/exportUserStatusList`,
  133. method: 'POST',
  134. data,
  135. responseType: 'blob',
  136. }).then((res) => {
  137. return res.data
  138. })
  139. }
  140. // 整改发现列表导出
  141. exportAuditfindData(data) {
  142. return axios({
  143. url: `api/xcoa-mobile/v1/iam-statistics/exportFindRectifyList`,
  144. method: 'POST',
  145. data,
  146. responseType: 'blob',
  147. }).then((res) => {
  148. return res.data
  149. })
  150. }
  151. // 根据parentId获取审计发现类别
  152. getFindAuditTree(parentId) {
  153. return axios({
  154. url: `api/xcoa-mobile/v1/audit-report-find/find-audit-tree?parentId=${parentId}`,
  155. method: 'post',
  156. })
  157. }
  158. // 获取审计发现类别统计--仅在审计发现类别使用
  159. getReportFindList(params) {
  160. return axios({
  161. method: 'post',
  162. url: 'api/xcoa-mobile/v1/iam-statistics/getReportFindList',
  163. data: params,
  164. })
  165. }
  166. }
  167. export default new StatisticsService()