diff --git a/api/app/lib/routes/alarm/index.js b/api/app/lib/routes/alarm/index.js index 9d97aaf..2784dac 100644 --- a/api/app/lib/routes/alarm/index.js +++ b/api/app/lib/routes/alarm/index.js @@ -61,6 +61,6 @@ module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/vcmp/auth'] = { content: '获取视频平台应用鉴权token', visible: true }; router.get('/vcmp/auth', videoAlarm.vcmpAppAuthToken); - app.fs.api.logAttr['GET/alarm/video/exception_statusId'] = { content: '查询视频异常类型', visible: true }; - router.get('/alarm/video/exception_statusId', videoAlarm.exceptionType); + app.fs.api.logAttr['GET/alarm/video/exceptionType'] = { content: '查询视频异常类型', visible: true }; + router.get('/alarm/video/exceptionType', videoAlarm.exceptionType); }; diff --git a/web/client/src/sections/problem/actions/problem.jsx b/web/client/src/sections/problem/actions/problem.jsx index 903cb7d..91d4913 100644 --- a/web/client/src/sections/problem/actions/problem.jsx +++ b/web/client/src/sections/problem/actions/problem.jsx @@ -149,12 +149,12 @@ export function getAlarmVideoDeviceKind () { //查询视频设备类型 }); } -export function getAlarmVideoExceptionStatusId () { //查询视频异常类型 +export function getAlarmVideoExceptionType () { //查询视频异常类型 return dispatch => basicAction({ type: 'get', dispatch: dispatch, - actionType: 'GET_ALARM_VIDEO_EXCEPTION_STATUS_ID', - url: `${ApiTable.getAlarmVideoExceptionStatusId}`, + actionType: 'GET_ALARM_VIDEO_EXCEPTION_TYPE', + url: `${ApiTable.getAlarmVideoExceptionType}`, msg: { option: '查询视频异常类型' }, reducer: { name: '' } }); diff --git a/web/client/src/sections/problem/components/tableData.jsx b/web/client/src/sections/problem/components/tableData.jsx index 0f78cbc..8dca288 100644 --- a/web/client/src/sections/problem/components/tableData.jsx +++ b/web/client/src/sections/problem/components/tableData.jsx @@ -153,7 +153,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition setGenre(res.payload.data.map(v => ({ name: v.kind, value: v.id }))) } }) - dispatch(problem.getAlarmVideoExceptionStatusId()).then((res) => { + dispatch(problem.getAlarmVideoExceptionType()).then((res) => { if (res.success) { setStatusId(res.payload.data.map(v => ({ name: v.describe, value: v.statusId }))) } diff --git a/web/client/src/utils/webapi.js b/web/client/src/utils/webapi.js index b69f118..86b60e5 100644 --- a/web/client/src/utils/webapi.js +++ b/web/client/src/utils/webapi.js @@ -47,7 +47,7 @@ export const ApiTable = { getAlarmVideoDeviceKind: 'alarm/video/device_kind', //查询视频设备类型 putAlarmVideoConfirm: 'alarm/video/confirm', //确认视频告警信息 getVcmpAuth: 'vcmp/auth', // 获取视频平台应用鉴权token - getAlarmVideoExceptionStatusId: 'alarm/video/exception_statusId', //查询视频设备类型 + getAlarmVideoExceptionType: 'alarm/video/exceptionType', //查询视频设备类型 //服务-信鸽服务 getPush: "push", //获取推送配置列表