|
@@ -140,7 +140,10 @@ const Statistics = (props) => {
|
|
|
return (
|
|
|
<PageContent closeable={false}>
|
|
|
<PageTitle returnable>系统自检统计</PageTitle>
|
|
|
- <div className={`${styles.itemMain2} card-box`} style={{padding: '0.44rem 0'}}>
|
|
|
+ <div
|
|
|
+ className={`${styles.itemMain2} card-box`}
|
|
|
+ style={{ padding: '0.44rem 0' }}
|
|
|
+ >
|
|
|
<div style={{ display: 'flex' }}>
|
|
|
{overviewData?.map((item) => (
|
|
|
<Text num={item.num} label={item.label} />
|
|
@@ -152,7 +155,7 @@ const Statistics = (props) => {
|
|
|
<Spin spinning={loading}>
|
|
|
<div
|
|
|
ref={lineDomRef}
|
|
|
- style={{ height: '3.4rem', margin: '0.1rem 0 0.1rem 0' }}
|
|
|
+ style={{ height: '4rem', margin: '0.1rem 0 0.1rem 0' }}
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
@@ -160,7 +163,7 @@ const Statistics = (props) => {
|
|
|
<Spin spinning={pieLoading}>
|
|
|
<div
|
|
|
ref={pieDomRef}
|
|
|
- style={{ height: '3.4rem', margin: '0.1rem 0 0.1rem 0' }}
|
|
|
+ style={{ height: '4rem', margin: '0.1rem 0 0.1rem 0' }}
|
|
|
/>
|
|
|
</Spin>
|
|
|
</div>
|
|
@@ -174,7 +177,7 @@ const Text = (props) => {
|
|
|
return (
|
|
|
<div className={styles.statisticsText}>
|
|
|
<div className={styles.num}>{num}</div>
|
|
|
- <div className={styles.label} style={{ fontSize: 22 }}>
|
|
|
+ <div className={styles.label} style={{ fontSize: '0.22rem' }}>
|
|
|
{label}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -205,7 +208,7 @@ const getLineOption = (time, chartData, name) => {
|
|
|
},
|
|
|
},
|
|
|
textStyle: {
|
|
|
- fontSize: 24
|
|
|
+ fontSize: 18,
|
|
|
},
|
|
|
},
|
|
|
// grid: {
|
|
@@ -224,7 +227,7 @@ const getLineOption = (time, chartData, name) => {
|
|
|
},
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- fontSize: 16,
|
|
|
+ fontSize: 12,
|
|
|
},
|
|
|
data: time,
|
|
|
},
|
|
@@ -244,7 +247,7 @@ const getLineOption = (time, chartData, name) => {
|
|
|
color: '#555',
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- fontSize: 16,
|
|
|
+ fontSize: 12,
|
|
|
color: '#555',
|
|
|
},
|
|
|
axisLine: {
|
|
@@ -269,19 +272,19 @@ const getLineOption = (time, chartData, name) => {
|
|
|
legend: {
|
|
|
textStyle: {
|
|
|
color: '#555',
|
|
|
- fontSize: 18,
|
|
|
+ fontSize: 14,
|
|
|
},
|
|
|
lineStyle: {},
|
|
|
},
|
|
|
title: {
|
|
|
text: name,
|
|
|
- top: '92%',
|
|
|
+ top: '88%',
|
|
|
left: '50%',
|
|
|
textAlign: 'center',
|
|
|
textStyle: {
|
|
|
color: '#555',
|
|
|
fontWeight: 'normal',
|
|
|
- fontSize: 18,
|
|
|
+ fontSize: 14,
|
|
|
},
|
|
|
},
|
|
|
// textStyle: {
|
|
@@ -331,13 +334,13 @@ const getPieOption = (chartData, name) => {
|
|
|
const option = {
|
|
|
title: {
|
|
|
text: name,
|
|
|
- top: '92%',
|
|
|
+ top: '88%',
|
|
|
left: '50%',
|
|
|
textAlign: 'center',
|
|
|
textStyle: {
|
|
|
color: '#555',
|
|
|
fontWeight: 'normal',
|
|
|
- fontSize: 18,
|
|
|
+ fontSize: 14,
|
|
|
},
|
|
|
},
|
|
|
color: [
|
|
@@ -354,7 +357,7 @@ const getPieOption = (chartData, name) => {
|
|
|
tooltip: {
|
|
|
trigger: 'item',
|
|
|
textStyle: {
|
|
|
- fontSize: 24
|
|
|
+ fontSize: 18,
|
|
|
},
|
|
|
},
|
|
|
legend: {
|
|
@@ -362,7 +365,7 @@ const getPieOption = (chartData, name) => {
|
|
|
// left: 'left',
|
|
|
textStyle: {
|
|
|
color: '#555',
|
|
|
- fontSize: 18,
|
|
|
+ fontSize: 14,
|
|
|
},
|
|
|
},
|
|
|
series: [
|