|
@ -1,12 +1,12 @@ |
|
|
<!-- eslint-disable vue/multi-word-component-names --> |
|
|
<!-- eslint-disable vue/multi-word-component-names --> |
|
|
<template> |
|
|
<template> |
|
|
<!-- <a-spin :spinning="loading"> --> |
|
|
<!-- <a-spin :spinning="loading"> --> |
|
|
<a-row type="flex" style="height: 100%; width: 96%; margin: 2%"> |
|
|
<a-row type="flex" style="height: 100%; width: 96%; margin-left: 1.5%; margin-top: 1%"> |
|
|
<a-col :span="6"> |
|
|
<a-col :span="6"> |
|
|
<!-- <div style="height: 96%; margin: 2%"> --> |
|
|
<!-- <div style="height: 96%; margin: 2%"> --> |
|
|
<div |
|
|
<div |
|
|
style=" |
|
|
style=" |
|
|
height: 35%; |
|
|
height: 38%; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
padding: 2%; |
|
|
padding: 2%; |
|
|
box-shadow: 0 0 15px rgba(69, 123, 234, 0.2); |
|
|
box-shadow: 0 0 15px rgba(69, 123, 234, 0.2); |
|
@ -22,15 +22,17 @@ |
|
|
<!-- <div ref="ringChartRef" style="width: 50%; height: 80%"></div> --> |
|
|
<!-- <div ref="ringChartRef" style="width: 50%; height: 80%"></div> --> |
|
|
<div |
|
|
<div |
|
|
style=" |
|
|
style=" |
|
|
height: 40%; |
|
|
height: 35%; |
|
|
background: #f3fbf9; |
|
|
background: #f3fbf9; |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
|
|
|
border-radius: 12px; |
|
|
|
|
|
margin-bottom: 2%; |
|
|
"> |
|
|
"> |
|
|
<ns-icon name="xianshiqi" size="30" style="margin-right: 30px" /> |
|
|
<ns-icon name="xianshiqi" size="30" style="margin-right: 30px" /> |
|
|
<div style="height: 100%; display: flex"> |
|
|
<div style="height: 100%; display: flex"> |
|
|
<div style="display: inline-flex; align-items: flex-end; height: 75%">设备总计</div> |
|
|
<div style="display: inline-flex; align-items: flex-end; height: 80%">设备总计</div> |
|
|
<div |
|
|
<div |
|
|
style=" |
|
|
style=" |
|
|
font-size: 46px; |
|
|
font-size: 46px; |
|
@ -38,17 +40,22 @@ |
|
|
letter-spacing: 2.76px; |
|
|
letter-spacing: 2.76px; |
|
|
color: rgba(22, 178, 136, 1); |
|
|
color: rgba(22, 178, 136, 1); |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
height: 75%; |
|
|
display: inline-flex; |
|
|
|
|
|
align-items: flex-end; |
|
|
|
|
|
height: 95%; |
|
|
" |
|
|
" |
|
|
>{{ sum }}</div |
|
|
>{{ sum }}</div |
|
|
> |
|
|
> |
|
|
<div style="display: inline-flex; align-items: flex-end; height: 75%">台</div> |
|
|
<div style="display: inline-flex; align-items: flex-end; height: 80%">台</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div style="width: 100%; height: 60%"> |
|
|
<div style="width: 100%; height: 60%; margin-top: 6%"> |
|
|
<div v-for="(item, index) in ringData" :key="index"> |
|
|
<div v-for="(item, index) in ringData" :key="index"> |
|
|
{{ item.name }} : {{ item.value }} {{ item.unit }} |
|
|
{{ item.name }} : {{ item.value }} {{ item.unit }} |
|
|
<a-progress :percent="(100 * item.value) / sum" :show-info="false" /> |
|
|
<a-progress |
|
|
|
|
|
:percent="(100 * item.value) / sum" |
|
|
|
|
|
:show-info="false" |
|
|
|
|
|
:strokeWidth="15" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -56,7 +63,7 @@ |
|
|
|
|
|
|
|
|
<div |
|
|
<div |
|
|
style=" |
|
|
style=" |
|
|
height: 62%; |
|
|
height: 59%; |
|
|
margin-top: 4%; |
|
|
margin-top: 4%; |
|
|
padding: 2%; |
|
|
padding: 2%; |
|
|
box-shadow: 0 0 15px rgba(69, 123, 234, 0.2); |
|
|
box-shadow: 0 0 15px rgba(69, 123, 234, 0.2); |
|
@ -68,15 +75,15 @@ |
|
|
<div style="height: 10%">平均值</div> |
|
|
<div style="height: 10%">平均值</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div style="display: flex; display: flex; flex-wrap: wrap; width: 100%; height: 100%"> |
|
|
<div style="display: flex; flex-wrap: wrap; width: 100%; height: 92%"> |
|
|
<div v-for="(item, index) in averageData" :key="index" style="width: 33%; height: 45%"> |
|
|
<div v-for="(item, index) in averageData" :key="index" style="width: 33%; height: 49%"> |
|
|
<div |
|
|
<div |
|
|
style=" |
|
|
style=" |
|
|
height: 90%; |
|
|
height: 97%; |
|
|
margin: 0 5%; |
|
|
margin: 0 5% 1.5% 5%; |
|
|
|
|
|
|
|
|
border-radius: 10px; |
|
|
border-radius: 10px; |
|
|
background-color: rgba(67, 136, 251, 0.09803921568627451); |
|
|
background-color: #f5fafd; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
@ -89,6 +96,7 @@ |
|
|
font-weight: 400; |
|
|
font-weight: 400; |
|
|
font-style: normal; |
|
|
font-style: normal; |
|
|
font-size: 14px; |
|
|
font-size: 14px; |
|
|
|
|
|
padding-top: 5px; |
|
|
" |
|
|
" |
|
|
>{{ item.name }}</div |
|
|
>{{ item.name }}</div |
|
|
> |
|
|
> |
|
@ -99,6 +107,7 @@ |
|
|
font-style: normal; |
|
|
font-style: normal; |
|
|
color: #ea7000; |
|
|
color: #ea7000; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
|
|
|
padding-top: 5px; |
|
|
" |
|
|
" |
|
|
>{{ item.value }}</div |
|
|
>{{ item.value }}</div |
|
|
> |
|
|
> |
|
@ -110,6 +119,7 @@ |
|
|
font-size: 10px; |
|
|
font-size: 10px; |
|
|
color: #7f7f7f; |
|
|
color: #7f7f7f; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
|
|
|
padding-top: 5px; |
|
|
" |
|
|
" |
|
|
>{{ item.unit }}</div |
|
|
>{{ item.unit }}</div |
|
|
> |
|
|
> |
|
@ -131,8 +141,8 @@ |
|
|
border-radius: 10px; |
|
|
border-radius: 10px; |
|
|
background: #ffffff; |
|
|
background: #ffffff; |
|
|
"> |
|
|
"> |
|
|
<div style="width: 100%; display: flex"> |
|
|
<div style="width: 100%; display: flex; align-items: center"> |
|
|
<ns-icon name="zongheshuju" size="30" style="margin-right: 3px" /> |
|
|
<ns-icon name="zongheshuju" size="30" style="margin-right: 3px; margin-top: 8px" /> |
|
|
<div style="width: 20%">环境指数分析</div> |
|
|
<div style="width: 20%">环境指数分析</div> |
|
|
<div style="width: 80%; float: right; padding-right: 40px"> |
|
|
<div style="width: 80%; float: right; padding-right: 40px"> |
|
|
<a-select |
|
|
<a-select |
|
@ -143,7 +153,7 @@ |
|
|
<!-- {{ quyuvalue }} {{ defaultValues }} --> |
|
|
<!-- {{ quyuvalue }} {{ defaultValues }} --> |
|
|
<a-tree-select |
|
|
<a-tree-select |
|
|
v-model:value="quyuvalue" |
|
|
v-model:value="quyuvalue" |
|
|
style="width: 35%; margin-left: 10px" |
|
|
style="width: 34%; margin-left: 10px" |
|
|
:tree-data="treeData2" |
|
|
:tree-data="treeData2" |
|
|
show-checked-strategy="SHOW_CHILD" |
|
|
show-checked-strategy="SHOW_CHILD" |
|
|
:default-value="defaultValues" |
|
|
:default-value="defaultValues" |
|
@ -160,7 +170,7 @@ |
|
|
<a-select |
|
|
<a-select |
|
|
v-model:value="frequencyValue" |
|
|
v-model:value="frequencyValue" |
|
|
placeholder="请选择采集频率" |
|
|
placeholder="请选择采集频率" |
|
|
style="width: 10%; margin-left: 10px" |
|
|
style="width: 12%; margin-left: 10px" |
|
|
:options="frequencyOptions" /> |
|
|
:options="frequencyOptions" /> |
|
|
<a-date-picker style="width: 20%; margin-left: 10px" v-model:value="timeValue" /> |
|
|
<a-date-picker style="width: 20%; margin-left: 10px" v-model:value="timeValue" /> |
|
|
|
|
|
|
|
@ -803,4 +813,17 @@ |
|
|
:deep(.ant-spin-nested-loading) { |
|
|
:deep(.ant-spin-nested-loading) { |
|
|
height: 100% !important; |
|
|
height: 100% !important; |
|
|
} |
|
|
} |
|
|
|
|
|
// /* 修改 a-progress 圆角大小 */ |
|
|
|
|
|
// ::v-deep .ant-progress-bg { |
|
|
|
|
|
// // border-radius: 1px !important; /* 调整圆角大小,值可以自定义 */ |
|
|
|
|
|
// stroke-linecap: butt !important; /* 如果需要去掉圆角,使用 "butt" */ |
|
|
|
|
|
// } |
|
|
|
|
|
/* 修改 a-progress 进度条的圆角 */ |
|
|
|
|
|
::v-deep .ant-progress-inner { |
|
|
|
|
|
border-radius: 4px !important; /* 整个进度条容器的圆角 */ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
::v-deep .ant-progress-bg { |
|
|
|
|
|
border-radius: 4px !important; /* 进度条本身的圆角 */ |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|