Skip to content
Snippets Groups Projects
Commit 0b97f49a authored by yms's avatar yms
Browse files

feat 更新

parent 8b45a3fa
Branches
Tags
No related merge requests found
import services from '@/services';
import { convertUnits } from '@/utils/ui';
import { useRequest } from 'ahooks';
import { Flex, Space } from 'antd';
import { Flex } from 'antd';
import * as echarts from 'echarts';
import EChartsReact from 'echarts-for-react';
......@@ -218,7 +218,7 @@ const BridgeAreaDistribution: React.FC = () => {
<div className={styles.container}>
<Flex className={styles.header} justify="space-between">
<div className={styles.title}>{title}</div>
{title === '道路区域分布' && (
{/* {title === '道路区域分布' && (
<Space size={10}>
{tabs.map((tab) => (
<div
......@@ -232,7 +232,7 @@ const BridgeAreaDistribution: React.FC = () => {
</div>
))}
</Space>
)}
)} */}
</Flex>
<div className={styles.unit}>单位:{unit}</div>
......
......@@ -14,7 +14,7 @@ const option = {
left: '2%',
right: '2%',
bottom: '2%',
top: '0%',
top: '40%',
containLabel: true,
},
legend: {
......@@ -55,18 +55,12 @@ const option = {
yAxis: [
{
type: 'value',
name: '',
// name: '件',
min: 0,
interval: 10,
axisLabel: {
show: false,
},
nameTextStyle: {
align: 'left',
color: '#CBEDFF',
padding: [0, 0, 20, -20],
fontSize: 16,
},
splitLine: {
show: false,
},
......
......@@ -55,7 +55,9 @@ const MonitorInfo: React.FC<any> = ({ metaData }) => {
unitStyle={commonUnitStyle}
/>
<DescriptionItem
value={(dataSource.utilityTunnelOnlineRate * 100).toFixed(1)}
value={((dataSource?.utilityTunnelOnlineRate ?? 0) * 100).toFixed(
1,
)}
decimals={2}
name="设备在线率"
unit="%"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment