联调终端运行评价
This commit is contained in:
@@ -34,15 +34,15 @@
|
||||
<div class="monitoringPoints">
|
||||
<div>
|
||||
<span class="line"></span>
|
||||
在线监测点数:{{ monitorList.onlineNum }}
|
||||
在线监测点数:{{ monitorList?.onlineNum }}
|
||||
</div>
|
||||
<div>
|
||||
<span class="line"></span>
|
||||
超标监测点数:{{ monitorList.overNum }}
|
||||
超标监测点数:{{ monitorList?.overNum }}
|
||||
</div>
|
||||
<div>
|
||||
<span class="line"></span>
|
||||
超标监测点占比:{{ monitorList.overRatio }}
|
||||
超标监测点占比:{{ monitorList?.overRatio }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -262,7 +262,7 @@ const info = (row: any) => {
|
||||
},
|
||||
|
||||
options: {
|
||||
toolbox:null,
|
||||
toolbox: null,
|
||||
dataZoom: null,
|
||||
series: optionData.series
|
||||
}
|
||||
@@ -350,7 +350,7 @@ const info = (row: any) => {
|
||||
},
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
data: res.data[0].list?.map((item: any) => {
|
||||
data: res.data[0]?.list?.map((item: any) => {
|
||||
return item.targetName.length > 4
|
||||
? item.targetName.slice(0, 4) + '\n ' + item.targetName.slice(4)
|
||||
: item.targetName
|
||||
@@ -367,12 +367,12 @@ const info = (row: any) => {
|
||||
},
|
||||
|
||||
options: {
|
||||
toolbox:null,
|
||||
toolbox: null,
|
||||
series: [
|
||||
{
|
||||
name: '超标监测点数',
|
||||
type: 'bar',
|
||||
data: res.data[0].list?.map((item: any) => item.overNum),
|
||||
data: res.data[0]?.list?.map((item: any) => item.overNum),
|
||||
label: {
|
||||
show: true,
|
||||
position: 'top',
|
||||
@@ -385,7 +385,7 @@ const info = (row: any) => {
|
||||
{
|
||||
name: '超标天数',
|
||||
type: 'bar',
|
||||
data: res.data[0].list?.map((item: any) => item.overDay),
|
||||
data: res.data[0]?.list?.map((item: any) => item.overDay),
|
||||
label: {
|
||||
show: true,
|
||||
position: 'top',
|
||||
@@ -451,7 +451,7 @@ const info = (row: any) => {
|
||||
},
|
||||
color: [config.layout.elementUiPrimary[0], '#FFBF00', '#FF9100'],
|
||||
options: {
|
||||
toolbox:null,
|
||||
toolbox: null,
|
||||
dataZoom: null,
|
||||
series: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user