event.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. //哨兵事件中心
  2. import request from '@/utils/request'
  3. /**
  4. * 事件统计接口
  5. * @param param
  6. * @returns {AxiosPromise}
  7. */
  8. export function getStatisticByEventType(param) {
  9. return request({
  10. url: '/sooka-digital-construction/eventSubject/getStatisticByEventType',
  11. method: 'get',
  12. params: param
  13. })
  14. }
  15. /**
  16. * 查询事件类型
  17. * @returns {*}
  18. */
  19. export function eventTypesListAll() {
  20. return request({
  21. url: '/sooka-digital-construction/eventTypes/getAll',
  22. method: 'get',
  23. })
  24. }
  25. /**
  26. * 事件列表接口
  27. * @param param
  28. * @returns {AxiosPromise}
  29. */
  30. export function getEventList(param) {
  31. return request({
  32. url: '/sooka-digital-construction/eventSubject/getEventList',
  33. method: 'get',
  34. params: param
  35. })
  36. }
  37. /**
  38. * 事件上报
  39. */
  40. export function eventReport(param) {
  41. return request({
  42. url: '/sooka-digital-construction/eventSubject/eventReport',
  43. method: 'post',
  44. data: param
  45. })
  46. }
  47. /**
  48. * 应急事件详情
  49. */
  50. export function getDescriptionByContingency(eventId) {
  51. return request({
  52. url: `/sooka-digital-construction/eventSubject/getDescriptionByContingency/${eventId}`,
  53. method: 'get'
  54. })
  55. }
  56. // 查询应急预案列表(有分页)
  57. export function getPlanList(param) {
  58. return request({
  59. url: `/sooka-digital-construction/plan/list?pageNum=${param.pageNum}&pageSize=${param.pageSize}&contingencyPlanName=${param.contingencyPlanName}`,
  60. method: 'get'
  61. })
  62. }
  63. /**
  64. * 统计各公司近七天的事件数量
  65. * @param param
  66. * @returns {AxiosPromise}
  67. */
  68. export function getStatisticByBrand(param) {
  69. return request({
  70. url: '/sooka-digital-construction/eventSubject/getStatisticByBrand',
  71. method: 'get',
  72. params: param
  73. })
  74. }
  75. /**
  76. * 统计各公司近七天的事件数量
  77. * @param param
  78. * @returns {AxiosPromise}
  79. */
  80. export function countByDepartment(param) {
  81. return request({
  82. url: '/sooka-digital-construction/eventSubject/countByDepartment',
  83. method: 'get',
  84. params: param
  85. })
  86. }
  87. /**
  88. * 根据id获取事件详情
  89. * @param param
  90. * @returns {AxiosPromise}
  91. */
  92. export function getDescriptionById(eventId) {
  93. return request({
  94. url: '/sooka-digital-construction/eventSubject/getDescription/'+eventId,
  95. method: 'get',
  96. })
  97. }
  98. /**
  99. * 事件日志接口
  100. * @param eventId
  101. * @returns {AxiosPromise}
  102. */
  103. export function getEventLog(eventId) {
  104. return request({
  105. url: '/sooka-digital-construction/eventSubject/log/'+eventId,
  106. method: 'get',
  107. })
  108. }
  109. /**
  110. * 事件签收接口
  111. * @param {"deptList":[{"mapDeptId":"370","mapDeptName":"双辽市"},{"mapDeptId":"371","mapDeptName":"梨树县"}],"eventId":"edd820f5737f4cfa8c02f24bea86d4ce"}
  112. * @returns {AxiosPromise}
  113. */
  114. export function eventSignature(param) {
  115. return request({
  116. url: '/sooka-digital-construction/eventSubject/eventSignature',
  117. method: 'post',
  118. data:param
  119. })
  120. }
  121. /**
  122. * 事件办结接口
  123. * @param eventId
  124. * @returns {AxiosPromise}
  125. */
  126. export function eventCompletion(eventId) {
  127. return request({
  128. url: '/sooka-digital-construction/eventSubject/eventCompletion/'+eventId,
  129. method: 'get',
  130. })
  131. }
  132. /**
  133. * 事件审核接口
  134. * @param param
  135. * @returns {AxiosPromise}
  136. */
  137. export function eventReview(param) {
  138. return request({
  139. url: '/sooka-digital-construction/eventSubject/eventReview',
  140. method: 'get',
  141. params:param
  142. })
  143. }
  144. /**
  145. * 事件归档接口
  146. * @param eventId
  147. * @returns {AxiosPromise}
  148. */
  149. export function eventArchiving(eventId) {
  150. return request({
  151. url: '/sooka-digital-construction/eventSubject/eventArchiving/'+eventId,
  152. method: 'get',
  153. })
  154. }
  155. /**
  156. * 设定指挥中心 / 新增协同部门
  157. * @param eventId
  158. * @returns {AxiosPromise}
  159. */
  160. export function configDept(params) {
  161. return request({
  162. url: '/sooka-digital-construction/eventSubject/configDept',
  163. method: 'post',
  164. data: params
  165. })
  166. }
  167. /**
  168. * 事件添加反馈日志接口
  169. * @param {"eventId":"xxxxx","reviewDescription":"日志内容xxxxxxxxxxxxxxxxxxx"}
  170. * @returns {AxiosPromise}
  171. */
  172. export function addEventLogDescription(param) {
  173. return request({
  174. url: '/sooka-digital-construction/eventSubject/addEventLogDescription',
  175. method: 'post',
  176. data:param
  177. })
  178. }
  179. /**
  180. * 统计当年各类型事件每个月的数量
  181. * @param {"eventId":"xxxxx","reviewDescription":"日志内容xxxxxxxxxxxxxxxxxxx"}
  182. * @returns {AxiosPromise}
  183. */
  184. export function getStatisticByMonth() {
  185. return request({
  186. url: '/sooka-digital-construction/eventSubject/getStatisticByMonth',
  187. method: 'get',
  188. })
  189. }