Commit 30e9b1f1 authored by xiexingan's avatar xiexingan

Merge branch 'dev' of gitlab.suntrayoa.com:geqilin/zhxf_vue into dev

parents fd0991df 1c9ed814
...@@ -481,6 +481,9 @@ export default { ...@@ -481,6 +481,9 @@ export default {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.children.forEach((el) => { element.children.forEach((el) => {
el.value = e.water_pressure + 'MPa' el.value = e.water_pressure + 'MPa'
if (e.is_alarm === 2) {
el.type = el.type + 'h'
}
}) })
} }
}) })
...@@ -495,12 +498,24 @@ export default { ...@@ -495,12 +498,24 @@ export default {
element.children.forEach((el) => { element.children.forEach((el) => {
if (el.rightName === '温度') { if (el.rightName === '温度') {
el.value = e.temperature + '°C' el.value = e.temperature + '°C'
if (e.tp_is_alarm === 2) {
el.type = el.type + 'h'
}
} else if (el.rightName === '湿度') { } else if (el.rightName === '湿度') {
el.value = e.humidity + '%RH' el.value = e.humidity + '%RH'
if (e.hm_is_alarm === 2) {
el.type = el.type + 'h'
}
} else if (el.rightName === '一氧化碳') { } else if (el.rightName === '一氧化碳') {
el.value = e.carbon_monoxide + 'PPM' el.value = e.carbon_monoxide + 'PPM'
if (e.cm_is_alarm === 2) {
el.type = el.type + 'h'
}
} else if (el.rightName === '二氧化碳') { } else if (el.rightName === '二氧化碳') {
el.value = e.carbon_dioxide + 'PPM' el.value = e.carbon_dioxide + 'PPM'
if (e.cd_is_alarm === 2) {
el.type = el.type + 'h'
}
} }
}) })
} }
...@@ -515,6 +530,9 @@ export default { ...@@ -515,6 +530,9 @@ export default {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.children.forEach((el) => { element.children.forEach((el) => {
el.value = e.flow_rate + 'm3/h' el.value = e.flow_rate + 'm3/h'
if (e.fr_is_alarm === 2) {
el.type = el.type + 'h'
}
}) })
} }
}) })
...@@ -528,6 +546,9 @@ export default { ...@@ -528,6 +546,9 @@ export default {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.children.forEach((el) => { element.children.forEach((el) => {
el.value = e.gauge_height + 'cm' el.value = e.gauge_height + 'cm'
if (e.gh_is_alarm === 2) {
el.type = el.type + 'h'
}
}) })
} }
}) })
...@@ -541,6 +562,9 @@ export default { ...@@ -541,6 +562,9 @@ export default {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.children.forEach((el) => { element.children.forEach((el) => {
el.value = e.wind_speed + 'm/s' el.value = e.wind_speed + 'm/s'
if (e.ws_is_alarm === 2) {
el.type = el.type + 'h'
}
}) })
} }
}) })
...@@ -554,6 +578,9 @@ export default { ...@@ -554,6 +578,9 @@ export default {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.children.forEach((el) => { element.children.forEach((el) => {
el.value = e.wind_pressure + 'pa' el.value = e.wind_pressure + 'pa'
if (e.wp_is_alarm === 2) {
el.type = el.type + 'h'
}
}) })
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment