diff --git a/super-screen/client/src/sections/fire-control/components/Right-top2.js b/super-screen/client/src/sections/fire-control/components/Right-top2.js
index 51251d4..7477500 100644
--- a/super-screen/client/src/sections/fire-control/components/Right-top2.js
+++ b/super-screen/client/src/sections/fire-control/components/Right-top2.js
@@ -261,7 +261,7 @@ const DataTop5 = ({ dispatch, actions, longitudeLatitude }) => {
近30日最高拥堵指数
-
{traffic?.month_max_yongdu_index || '--'}
+
{traffic?.month_max_yongdu_index?.toFixed(3) || '--'}
{traffic?.month_max_congest_time} {weeks[traffic?.month_max_week_day]}
@@ -275,7 +275,7 @@ const DataTop5 = ({ dispatch, actions, longitudeLatitude }) => {
}
-function mapStateToProps (state) {
+function mapStateToProps(state) {
const { auth, global } = state
return {
user: auth.user,
diff --git a/super-screen/client/src/sections/water-prevention/containers/homePage.js b/super-screen/client/src/sections/water-prevention/containers/homePage.js
index be53414..34df813 100644
--- a/super-screen/client/src/sections/water-prevention/containers/homePage.js
+++ b/super-screen/client/src/sections/water-prevention/containers/homePage.js
@@ -131,46 +131,13 @@ function homePage(props) {
})
}
})
- // 安监
- dispatch(worksafetyLogin({ p: 'anjianshidian', username: 'SuperAdmin', password: '123456' })).then(res => {
- if (res.success) {
- sessionStorage.setItem('worksafetyUser', JSON.stringify(res.payload.data));
- getEmerResource(emengencyTab, res.payload.data.token)
- }
- })
+
}
const getPumpStatusData = async (structId) => {
return await dispatch(getPumpStatus(structId));
}
- const getEmerResource = (type, token) => {
- if (type && token) {
- const handleRequestComplete = (res) => {
- if (res.success) setEmerResource(res.payload.data);
- }
- switch (type) {
- case 'yjjg':
- dispatch(getEmerOrgList({ token })).then(handleRequestComplete);
- break;
- case 'yjdw':
- dispatch(getEmerTeamList({ token })).then(handleRequestComplete);
- break;
- case 'yjzj':
- dispatch(getEmerExpertList({ token })).then(handleRequestComplete);
- break;
- case 'yljg':
- dispatch(getEmerMedicalList({ token })).then(handleRequestComplete);
- break;
- case 'bncs':
- dispatch(getEmerRefugeList({ token })).then(handleRequestComplete);
- break;
- default:
- break;
- }
- }
- }
-
return <>
@@ -198,8 +165,6 @@ function homePage(props) {
}}
changeEmengencyTab={(e) => {
setEmengencyTab(e)
- const { token } = JSON.parse(sessionStorage.getItem('worksafetyUser'));
- getEmerResource(e, token)
}}
trendData={trendData}
waterLevelAlarms={waterLevelAlarms}