diff --git a/web/client/assets/images/problem/CurrentLevel1.png b/web/client/assets/images/problem/CurrentLevel1.png
new file mode 100644
index 0000000..39f654d
Binary files /dev/null and b/web/client/assets/images/problem/CurrentLevel1.png differ
diff --git a/web/client/assets/images/problem/CurrentLevel2.png b/web/client/assets/images/problem/CurrentLevel2.png
new file mode 100644
index 0000000..aea8ba5
Binary files /dev/null and b/web/client/assets/images/problem/CurrentLevel2.png differ
diff --git a/web/client/assets/images/problem/CurrentLevel3.png b/web/client/assets/images/problem/CurrentLevel3.png
new file mode 100644
index 0000000..49e1618
Binary files /dev/null and b/web/client/assets/images/problem/CurrentLevel3.png differ
diff --git a/web/client/src/layout/containers/layout/index.jsx b/web/client/src/layout/containers/layout/index.jsx
index 7b7191e..495636a 100644
--- a/web/client/src/layout/containers/layout/index.jsx
+++ b/web/client/src/layout/containers/layout/index.jsx
@@ -173,7 +173,7 @@ const LayoutContainer = props => {
// websocket 使用测试
useEffect(() => {
- console.log(socket)
+ // console.log(socket)
if (socket) {
socket.on('CAMERA_ONLINE', function (msg) {
console.info(msg);
diff --git a/web/client/src/sections/problem/actions/problem.jsx b/web/client/src/sections/problem/actions/problem.jsx
index dbe4e3f..d1007ff 100644
--- a/web/client/src/sections/problem/actions/problem.jsx
+++ b/web/client/src/sections/problem/actions/problem.jsx
@@ -8,7 +8,7 @@ export function getProjectPoms () { //获取已绑定项目
dispatch: dispatch,
actionType: 'GET_PROJECT_POMS',
url: `${ApiTable.getProjectPoms}`,
- msg: { error: '获取已绑定项目失败' },
+ msg: { option: '获取已绑定项目' },
reducer: { name: '' }
});
}
@@ -21,7 +21,7 @@ export function getAlarmLnspection (query) { //查询应用巡检信息
query,
actionType: 'GET_ALARM_LNICSPECTION',
url: `${ApiTable.getAlarmLnspection}`,
- msg: { error: '查询应用巡检信息失败' },
+ msg: { option: '查询应用巡检信息' },
reducer: { name: '' }
});
}
@@ -34,7 +34,7 @@ export function putAlarmApplicationNoted (data) { //预览状态
data,
actionType: 'PUT-AIARM-APPLICATIO-NNOTED',
url: `${ApiTable.putAlarmApplicationNoted}`,
- msg: { error: '预览失败' },
+ msg: { option: '预览失败' },
reducer: { name: '' }
});
}
@@ -46,7 +46,7 @@ export function getAlarmLnspectionApi (query) { //查询应用接口/元素错
query,
actionType: 'GET_ALARM_LNICSPECTION-API',
url: `${ApiTable.getAlarmLnspectionApi}`,
- msg: { error: '查询应用接口/元素错误信息失败' },
+ msg: { option: '查询应用接口/元素错误信息' },
reducer: { name: '' }
});
}
@@ -58,7 +58,7 @@ export function postApiConfirm (data) { //确认应用接口/元素错误信
data,
actionType: 'POST-API-CONFIRM',
url: `${ApiTable.postApiConfirm}`,
- msg: { error: '添加确认信息失败' },
+ msg: { option: '添加确认信息' },
reducer: { name: '' }
});
}
@@ -69,7 +69,7 @@ export function getAlarmDataGroup () { //获取数据告警分类
dispatch: dispatch,
actionType: 'GET_ALARM_DATA_GROUP',
url: `${ApiTable.getAlarmDataGroup}`,
- msg: { error: '获取数据告警分类失败' },
+ msg: { option: '获取数据告警分类' },
reducer: { name: '' }
});
}
@@ -82,7 +82,7 @@ export function getAlarmDataList (query) { //查询数据告警列表
query,
actionType: 'GET_ALARM_DATA_LIST',
url: `${ApiTable.getAlarmDataList}`,
- msg: { error: '查询数据告警列表失败' },
+ msg: { option: '查询数据告警列表' },
reducer: { name: '' }
});
}
@@ -94,7 +94,7 @@ export function getAlarmDataDetail (query) { //查询数据告警详情
query,
actionType: 'GET_ALARM_DATA_DATAIL',
url: `${ApiTable.getAlarmDataDetail}`,
- msg: { error: '查询数据告警详情失败' },
+ msg: { option: '查询数据告警详情' },
reducer: { name: '' }
});
}
@@ -106,7 +106,7 @@ export function getAlarmDataDetailAgg (query) { //查询数据告警详情聚
query,
actionType: 'GET_ALARM_DATA_DATAIL_AGG',
url: `${ApiTable.getAlarmDataDetailAgg}`,
- msg: { error: '查询数据告警详情聚集数据失败' },
+ msg: { option: '查询数据告警详情聚集数据' },
reducer: { name: '' }
});
}
@@ -118,7 +118,7 @@ export function putAlarmdataConfirm (data) { //确认数据告警
data,
actionType: 'PUT-AIARM-DATA-CONFIRM',
url: `${ApiTable.putAlarmdataConfirm}`,
- msg: { error: '确认数据告警失败' },
+ msg: { option: '确认数据告警' },
reducer: { name: '' }
});
}
@@ -130,7 +130,7 @@ export function getAlarmVideoList (query) { //查询视频告警列表
query,
actionType: 'GET_ALARM_VIDEO_LIST',
url: `${ApiTable.getAlarmVideoList}`,
- msg: { error: '查询视频告警列表失败' },
+ msg: { option: '查询视频告警列表' },
reducer: { name: '' }
});
}
@@ -143,7 +143,7 @@ export function getAlarmVideoDeviceKind () { //查询视频设备类型
dispatch: dispatch,
actionType: 'GET_ALARM_VIDEO_DEVICE_KIND',
url: `${ApiTable.getAlarmVideoDeviceKind}`,
- msg: { error: '查询视频设备类型失败' },
+ msg: { option: '查询视频设备类型' },
reducer: { name: '' }
});
}
\ No newline at end of file
diff --git a/web/client/src/sections/problem/components/inspection.jsx b/web/client/src/sections/problem/components/inspection.jsx
index 7ba27be..f0c9d11 100644
--- a/web/client/src/sections/problem/components/inspection.jsx
+++ b/web/client/src/sections/problem/components/inspection.jsx
@@ -91,13 +91,13 @@ const Inspection = ({ dispatch, actions, user, route, statistic }) => {
return (
-
+
-
-
+
+
{statistic[route]}
APPLY SEMI-AUTOMATIC INSPECTION
-
仅保留48小时内的图片数据,每小时覆盖执行一次 未阅共{notRead}个
+
仅保留48小时内的图片数据,每日8时、14时、17时系统巡检一次。未阅共{notRead}个
{picturePop ?
{pictureData.app?.name}
diff --git a/web/client/src/sections/problem/components/sideSheet.jsx b/web/client/src/sections/problem/components/sideSheet.jsx
index 98cbb80..d92aa68 100644
--- a/web/client/src/sections/problem/components/sideSheet.jsx
+++ b/web/client/src/sections/problem/components/sideSheet.jsx
@@ -105,25 +105,31 @@ function SideSheets ({ dispatch, actions, close, alarmId }) {
rowKey: 'AlarmState',
render: (_, r, index) => {
let data = { 0: '首次产生', 1: '持续产生', 2: '等级提升', 3: '自动恢复', 4: '人工恢复' }
- return data[r.AlarmState] || ''
+ return data[r.AlarmState] ? {data[r.AlarmState]}
: ''
},
}, {
title: "告警信息",
dataIndex: "Content",
rowKey: 'Content',
+ render: (_, r, index) => {
+ return !(r.AlarmState == 3) && !r.Content ? '由安心云集成侧确认,无确认信息' : r.AlarmState == 3 ? '无' : r.Content
+ },
}, {
title: "等级",
dataIndex: "CurrentLevel",
rowKey: 'CurrentLevel',
render: (_, r, index) => {
let data = { 1: '一级', 2: '二级', 3: '三级' }
- return data[r.CurrentLevel] || ""
+ return
+
+ {data[r.CurrentLevel]}
+
},
}, {
title: "产生时间",
dataIndex: "Time",
rowKey: 'Time',
- render: (_, r, index) => r.Time ? moment(r.Time).format("YYYY-MM-DD HH:mm:ss") : ""
+ render: (_, r, index) => r.Time ? {moment(r.Time).format("YYYY-MM-DD HH:mm:ss")}
: ""
},
]
@@ -141,13 +147,13 @@ function SideSheets ({ dispatch, actions, close, alarmId }) {
>
-
+
{
if (index % 1 === 0) {
diff --git a/web/client/src/sections/problem/components/statistics.jsx b/web/client/src/sections/problem/components/statistics.jsx
index 04000ee..09c5844 100644
--- a/web/client/src/sections/problem/components/statistics.jsx
+++ b/web/client/src/sections/problem/components/statistics.jsx
@@ -3,15 +3,19 @@ import { connect } from "react-redux";
import { DatePicker } from "@douyinfe/semi-ui";
import Inspection from "./inspection";
-const Statistics = ({ dispatch, actions, route ,statistic}) => {
-
+const Statistics = ({ dispatch, actions, route, statistic }) => {
+ let title = { dataLnterrupt: "DATA ABORTS", dataAbnormal: "DATA ABORTS", strategyHit: "DATA ABORTS" }
// console.log(route);
return (
<>{route == 'useAbnormal' ?
:
-
-
-
{statistic[route]}
+
+
+
+
+ {statistic[route]}
+ {title[route]}
+
{/*
{
暂未开放 敬请期待
*/}
-
+
}>
diff --git a/web/client/src/sections/problem/components/tableData.jsx b/web/client/src/sections/problem/components/tableData.jsx
index 7033ded..16832c6 100644
--- a/web/client/src/sections/problem/components/tableData.jsx
+++ b/web/client/src/sections/problem/components/tableData.jsx
@@ -9,10 +9,9 @@ import { emit } from "superagent";
const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition,
- selected, setSelected, setIfBulk, setConfirm, setGenre, query, setQuery }) => {
+ selected, setSelected, setIfBulk, setConfirm, setGenre, query, setQuery,tableData,setTableData }) => {
const { problem } = actions
- const [tableData, setTableData] = useState([]) //表格数据
const [count, setCount] = useState(0) //
const [search, setSearch] = useState({}) //查询
const [checkAll, setCheckAll] = useState(true) //查询
@@ -50,7 +49,30 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition
case 'videoAbnormal':
dispatch(problem.getAlarmVideoList({})).then((res) => {
if (res.success) {
- // console.log(res);
+ console.log(res);
+ let tableDatas = res.payload.data?.rows?.map(v => ({
+ key: v.AlarmId,
+ // StructureName: v.StructureName,
+ // projectName: v.pomsProject?.map(r => (r.name ? { name: r.name, state: 'PMOS' } : {
+ // name: r.pepProject?.projectName, state: r.pepProject?.constructionStatus
+ // }))?.filter(c => c),
+ // createTime: v.StartTime ? moment(v.StartTime).format("YYYY-MM-DD HH:mm:ss") : "",
+ // updateTime: v.EndTime ? moment(v.EndTime).format("YYYY-MM-DD HH:mm:ss") : "",
+ // confirmTime: v.confirmedTime ? moment(v.confirmedTime).format("YYYY-MM-DD HH:mm:ss") : "",
+ // SourceName: v.SourceName,
+ // AlarmGroupUnit: v.AlarmGroupUnit ? genreData.find(r => r.value == v.AlarmGroupUnit)?.name : "",
+ // Strategy: v.AlarmGroupUnit ? genreData.find(r => r.value == v.AlarmGroupUnit)?.name : "",
+ // type: v.AlarmGroupUnit ? genreData.find(r => r.value == v.AlarmGroupUnit)?.name : "",
+ // AlarmCodeName: v.AlarmCodeName,
+ // CurrentLevel: v.CurrentLevel,
+ // detailCount: v.detailCount,
+ // AlarmContent: v.AlarmContent,
+ // State: v.State,
+ // alarmType: v.alarmType,
+ // confirm: v.confirmedContent,
+ }))
+ console.log(tableDatas);
+ setTableData(tableDatas)
}
})
dispatch(problem.getAlarmVideoDeviceKind()).then((res) => {
@@ -104,7 +126,7 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition
alarmType: v.alarmType,
confirm: v.confirmedContent,
}))
- console.log(tableDatas);
+ // console.log(tableDatas);
setTableData(tableDatas)
}
})
@@ -117,13 +139,13 @@ const TableData = ({ route, dispatch, actions, collectData, setSetup, exhibition
}, [query, search])
-// console.log(query);
+ // console.log(query);
return (
<>
-