123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- //哨兵事件中心
- import request from '@/utils/request'
- /**
- * 事件统计接口
- * @param param
- * @returns {AxiosPromise}
- */
- export function getStatisticByEventType(param) {
- return request({
- url: '/sooka-digital-construction/eventSubject/getStatisticByEventType',
- method: 'get',
- params: param
- })
- }
- /**
- * 查询事件类型
- * @returns {*}
- */
- export function eventTypesListAll() {
- return request({
- url: '/sooka-digital-construction/eventTypes/getAll',
- method: 'get',
- })
- }
- /**
- * 事件列表接口
- * @param param
- * @returns {AxiosPromise}
- */
- export function getEventList(param) {
- return request({
- url: '/sooka-digital-construction/eventSubject/getEventList',
- method: 'get',
- params: param
- })
- }
- /**
- * 事件上报
- */
- export function eventReport(param) {
- return request({
- url: '/sooka-digital-construction/eventSubject/eventReport',
- method: 'post',
- data: param
- })
- }
- /**
- * 应急事件详情
- */
- export function getDescriptionByContingency(eventId) {
- return request({
- url: `/sooka-digital-construction/eventSubject/getDescriptionByContingency/${eventId}`,
- method: 'get'
- })
- }
- // 查询应急预案列表(有分页)
- export function getPlanList(param) {
- return request({
- url: `/sooka-digital-construction/plan/list?pageNum=${param.pageNum}&pageSize=${param.pageSize}&contingencyPlanName=${param.contingencyPlanName}`,
- method: 'get'
- })
- }
- /**
- * 统计各公司近七天的事件数量
- * @param param
- * @returns {AxiosPromise}
- */
- export function getStatisticByBrand(param) {
- return request({
- url: '/sooka-digital-construction/eventSubject/getStatisticByBrand',
- method: 'get',
- params: param
- })
- }
- /**
- * 统计各公司近七天的事件数量
- * @param param
- * @returns {AxiosPromise}
- */
- export function countByDepartment(param) {
- return request({
- url: '/sooka-digital-construction/eventSubject/countByDepartment',
- method: 'get',
- params: param
- })
- }
- /**
- * 根据id获取事件详情
- * @param param
- * @returns {AxiosPromise}
- */
- export function getDescriptionById(eventId) {
- return request({
- url: '/sooka-digital-construction/eventSubject/getDescription/'+eventId,
- method: 'get',
- })
- }
- /**
- * 事件日志接口
- * @param eventId
- * @returns {AxiosPromise}
- */
- export function getEventLog(eventId) {
- return request({
- url: '/sooka-digital-construction/eventSubject/log/'+eventId,
- method: 'get',
- })
- }
- /**
- * 事件签收接口
- * @param {"deptList":[{"mapDeptId":"370","mapDeptName":"双辽市"},{"mapDeptId":"371","mapDeptName":"梨树县"}],"eventId":"edd820f5737f4cfa8c02f24bea86d4ce"}
- * @returns {AxiosPromise}
- */
- export function eventSignature(param) {
- return request({
- url: '/sooka-digital-construction/eventSubject/eventSignature',
- method: 'post',
- data:param
- })
- }
- /**
- * 事件办结接口
- * @param eventId
- * @returns {AxiosPromise}
- */
- export function eventCompletion(eventId) {
- return request({
- url: '/sooka-digital-construction/eventSubject/eventCompletion/'+eventId,
- method: 'get',
- })
- }
- /**
- * 事件审核接口
- * @param param
- * @returns {AxiosPromise}
- */
- export function eventReview(param) {
- return request({
- url: '/sooka-digital-construction/eventSubject/eventReview',
- method: 'get',
- params:param
- })
- }
- /**
- * 事件归档接口
- * @param eventId
- * @returns {AxiosPromise}
- */
- export function eventArchiving(eventId) {
- return request({
- url: '/sooka-digital-construction/eventSubject/eventArchiving/'+eventId,
- method: 'get',
- })
- }
- /**
- * 设定指挥中心 / 新增协同部门
- * @param eventId
- * @returns {AxiosPromise}
- */
- export function configDept(params) {
- return request({
- url: '/sooka-digital-construction/eventSubject/configDept',
- method: 'post',
- data: params
- })
- }
- /**
- * 事件添加反馈日志接口
- * @param {"eventId":"xxxxx","reviewDescription":"日志内容xxxxxxxxxxxxxxxxxxx"}
- * @returns {AxiosPromise}
- */
- export function addEventLogDescription(param) {
- return request({
- url: '/sooka-digital-construction/eventSubject/addEventLogDescription',
- method: 'post',
- data:param
- })
- }
- /**
- * 统计当年各类型事件每个月的数量
- * @param {"eventId":"xxxxx","reviewDescription":"日志内容xxxxxxxxxxxxxxxxxxx"}
- * @returns {AxiosPromise}
- */
- export function getStatisticByMonth() {
- return request({
- url: '/sooka-digital-construction/eventSubject/getStatisticByMonth',
- method: 'get',
- })
- }
|