Commit 079df3f1 authored by co_dengxiongwen's avatar co_dengxiongwen

看板

parent 533a9da3
...@@ -495,6 +495,9 @@ export default { ...@@ -495,6 +495,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'
}
}) })
} }
}) })
...@@ -509,12 +512,24 @@ export default { ...@@ -509,12 +512,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'
}
} }
}) })
} }
...@@ -529,6 +544,9 @@ export default { ...@@ -529,6 +544,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'
}
}) })
} }
}) })
...@@ -542,6 +560,9 @@ export default { ...@@ -542,6 +560,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'
}
}) })
} }
}) })
...@@ -555,6 +576,9 @@ export default { ...@@ -555,6 +576,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'
}
}) })
} }
}) })
...@@ -568,6 +592,9 @@ export default { ...@@ -568,6 +592,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