修改pm图例没有显示pm2.5问题
修改机械分厂环境pm显示异常问题
This commit is contained in:
parent
24a18a8f9b
commit
a61aaa8481
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* @FilePath: \wwwd:\code\screenFront\src\locales\lang\en.ts
|
* @FilePath: \gitscreenFront\src\locales\lang\en.ts
|
||||||
* @Author: 王路平
|
* @Author: 王路平
|
||||||
* @文件版本: V1.0.0
|
* @文件版本: V1.0.0
|
||||||
* @Date: 2023-05-04 16:36:13
|
* @Date: 2023-05-04 16:36:13
|
||||||
@ -196,9 +196,9 @@ export default {
|
|||||||
'gasDetection':'Gas Test',
|
'gasDetection':'Gas Test',
|
||||||
'CH2ODetection':'Alcohol Test',
|
'CH2ODetection':'Alcohol Test',
|
||||||
'flameDetection':'Fire Test',
|
'flameDetection':'Fire Test',
|
||||||
'EastPumpPressure_Mpa':'East Pump Room Air Pressure(Mpa)',
|
'EastPumpPressure_Mpa':'East Pump Room Air Pressure',
|
||||||
'WestPumpPressure_Mpa':'West Pump Room Air Pressure(Mpa)',
|
'WestPumpPressure_Mpa':'West Pump Room Air Pressure',
|
||||||
'PipelinePressure_Mpa':'Pipeline Pressure(Mpa)',
|
'PipelinePressure_Mpa':'Pipeline Pressure',
|
||||||
'normal_Tip':'Normal',
|
'normal_Tip':'Normal',
|
||||||
'abnormal_Tip':'Abnormal',
|
'abnormal_Tip':'Abnormal',
|
||||||
'abnormal_Tip_yishang':'Above',
|
'abnormal_Tip_yishang':'Above',
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* @FilePath: \wwwd:\code\screenFront\src\locales\lang\zh.ts
|
* @FilePath: \gitscreenFront\src\locales\lang\zh.ts
|
||||||
* @Author: 王路平
|
* @Author: 王路平
|
||||||
* @文件版本: V1.0.0
|
* @文件版本: V1.0.0
|
||||||
* @Date: 2023-05-04 16:36:13
|
* @Date: 2023-05-04 16:36:13
|
||||||
@ -196,9 +196,9 @@ export default {
|
|||||||
'gasDetection':'燃气检测',
|
'gasDetection':'燃气检测',
|
||||||
'CH2ODetection':'甲醛检测',
|
'CH2ODetection':'甲醛检测',
|
||||||
'flameDetection':'明火检测',
|
'flameDetection':'明火检测',
|
||||||
'EastPumpPressure_Mpa':'东泵房气压Mpa',
|
'EastPumpPressure_Mpa':'东泵房气压',
|
||||||
'WestPumpPressure_Mpa':'西泵房气压Mpa',
|
'WestPumpPressure_Mpa':'西泵房气压',
|
||||||
'PipelinePressure_Mpa':'管道压力(Mpa)',
|
'PipelinePressure_Mpa':'管道压力',
|
||||||
'normal_Tip':'正常',
|
'normal_Tip':'正常',
|
||||||
'abnormal_Tip':'异常',
|
'abnormal_Tip':'异常',
|
||||||
'abnormal_Tip_yishang':'以上',
|
'abnormal_Tip_yishang':'以上',
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
* @FilePath: \screenFront\src\views\PaintShopView\components\pm.vue
|
* @FilePath: \gitscreenFront\src\views\PaintShopView\components\pm.vue
|
||||||
* @Author: 王路平
|
* @Author: 王路平
|
||||||
* @文件版本: V1.0.0
|
* @文件版本: V1.0.0
|
||||||
* @Date: 2023-02-10 13:27:36
|
* @Date: 2023-02-10 13:27:36
|
||||||
@ -121,7 +121,7 @@ const setData = (value: any) => {
|
|||||||
color: "inherit",
|
color: "inherit",
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
show: false,
|
// show: false,
|
||||||
offsetCenter: [0, "-20%"],
|
offsetCenter: [0, "-20%"],
|
||||||
},
|
},
|
||||||
data: [
|
data: [
|
||||||
|
@ -144,16 +144,16 @@ async function getPmData(){
|
|||||||
let data={welding:{two:null,ten:null},stuff:{two:null,ten:null},ornaments:{two:null,ten:null}}
|
let data={welding:{two:null,ten:null},stuff:{two:null,ten:null},ornaments:{two:null,ten:null}}
|
||||||
if(resulttwo.code==200){
|
if(resulttwo.code==200){
|
||||||
resulttwo.data.forEach(res=>{
|
resulttwo.data.forEach(res=>{
|
||||||
if(data[res.name]){
|
if(data[res.enName]){
|
||||||
data[res.name].two=res.value
|
data[res.enName].two=res.value
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(resultten.code==200){
|
if(resultten.code==200){
|
||||||
resultten.data.forEach(res=>{
|
resultten.data.forEach(res=>{
|
||||||
if(data[res.name]){
|
if(data[res.enName]){
|
||||||
data[res.name].ten=res.value
|
data[res.enName].ten=res.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user