ic-evaluation-service.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. import axios from '@/common/services/axios-instance'
  2. class MtxEvaluationService {
  3. // 拖拽功能
  4. dragNode(data) {
  5. return axios({
  6. method: 'post',
  7. url: 'api/xcoa-mobile/v1/icmtxprocess/drage',
  8. data: data,
  9. })
  10. }
  11. // 删除工作底稿列表数据
  12. delete(params, formId) {
  13. return axios({
  14. url: `api/xcoa-mobile/v1/icevaluationcontrol/${formId}`,
  15. method: 'delete',
  16. params,
  17. })
  18. }
  19. // 控制节点生成底稿
  20. savecontrol(planId, ids) {
  21. return axios
  22. .get(
  23. 'api/xcoa-mobile/v1/icevaluationcontrol/icEvaluationControlEntitySave?planId=' +
  24. planId +
  25. '&ids=' +
  26. ids
  27. )
  28. .then(function(res) {
  29. return res.data
  30. })
  31. }
  32. // 设置控制测试人员
  33. setControlTestor(accout, ids) {
  34. return axios
  35. .get(
  36. 'api/xcoa-mobile/v1/icevaluationcontrol/icEvaluationControlEntityIssued?userAccount=' +
  37. accout +
  38. '&ids=' +
  39. ids
  40. )
  41. .then(function(res) {
  42. return res.data
  43. })
  44. }
  45. // 控制获取所有措施ids
  46. getAllcontrolLids(planId) {
  47. return axios
  48. .get('api/xcoa-mobile/v1/icevaluationcontrol/getAllcontrollistids?planId=' + planId)
  49. .then(function(res) {
  50. return res.data
  51. })
  52. }
  53. // 穿行节点生成底稿
  54. savecross(planId, ids) {
  55. return axios
  56. .get(
  57. 'api/xcoa-mobile/v1/icevaluationcross/icEvaluationCrossEntitySave?planId=' +
  58. planId +
  59. '&ids=' +
  60. ids
  61. )
  62. .then(function(res) {
  63. return res.data
  64. })
  65. }
  66. // 穿行控制测试人员
  67. setCrossTestor(accout, ids) {
  68. return axios
  69. .get(
  70. 'api/xcoa-mobile/v1/icevaluationcross/icEvaluationCrossEntityIssued?userAccount=' +
  71. accout +
  72. '&ids=' +
  73. ids
  74. )
  75. .then(function(res) {
  76. return res.data
  77. })
  78. }
  79. // 控制获取所有措施ids
  80. getAllcrossLids(planId) {
  81. return axios
  82. .get('api/xcoa-mobile/v1/icevaluationcross/getAllcrosslistids?planId=' + planId)
  83. .then(function(res) {
  84. return res.data
  85. })
  86. }
  87. getUserChangeLogInfo(id) {
  88. return axios({
  89. url: `api/xcoa-mobile/v1/icevaluationuser/getPlanUserChangeInfo?planId=` + id,
  90. })
  91. }
  92. getList(data) {
  93. return axios({
  94. method: 'post',
  95. url: 'api/xcoa-mobile/v1/icevaluationconfirm/getMeasureList',
  96. data: data,
  97. })
  98. }
  99. getplaninfo(planId) {
  100. return axios({
  101. url: `api/framework/v1/page/wp/ic/evaluation/plan/icEvaluationPlan?id=` + planId,
  102. })
  103. }
  104. findIamOrgId(params) {
  105. return axios({
  106. url: 'api/xcoa-mobile/v1/iamorg/findIamOrgId',
  107. method: 'post',
  108. params,
  109. })
  110. }
  111. getQdidsList(controlIds, crossIds) {
  112. return axios
  113. .get(
  114. 'api/xcoa-mobile/v1/icevaluationconfirm/getMeasuresByIds?controlIds=' +
  115. controlIds +
  116. '&crossIds=' +
  117. crossIds
  118. )
  119. .then(function(res) {
  120. return res
  121. })
  122. }
  123. fndeleteTodo(id) {
  124. return axios.get('api/xcoa-mobile/v1/icevaluationplan/deleteTodo?id=' + id).then(function(res) {
  125. return res
  126. })
  127. }
  128. }
  129. export default new MtxEvaluationService()