Merge pull request 'pc-master' (#76) from pc-master into portal

Reviewed-on: #76
portal
xiaomeng 2023-12-16 05:55:48 +00:00
commit 4710f7c3e3
1 changed files with 34 additions and 3 deletions

View File

@ -698,14 +698,38 @@ export default {
// }else{ // }else{
num = el.environmentData + el1.unit num = el.environmentData + el1.unit
// } // }
if (el.equipmentNumber == 0) { // if (el.equipmentNumber == 0) {
// if (el.targetValue == 1) {
// name = '1#' + el.environmentDataId
// } else {
// name = '1#' + el.environmentDataId
// }
// } else if (el.equipmentNumber == 15) {
// if (el.targetValue == 1) {
// name = '2#' + el.environmentDataId
// } else {
// name = '2#' + el.environmentDataId
// }
// } else {
// name = el.equipmentNumber + '#' + el.environmentDataId
// }
if (el.equipmentNumber == 0) {
name = '1#平均' + el.environmentDataId name = '1#平均' + el.environmentDataId
} else if (el.equipmentNumber == 15) { } else if (el.equipmentNumber == 15) {
name = '2#平均' + el.environmentDataId name = '2#平均' + el.environmentDataId
} else { } else {
if (el.targetValue == 1) {
name = '1#目标' + el.environmentDataId
} else{
name = el.equipmentNumber + '#' + el.environmentDataId name = el.equipmentNumber + '#' + el.environmentDataId
}
} }
this.list.push({ this.list.push({
...el, ...el,
name: name, name: name,
@ -770,14 +794,21 @@ export default {
// }else{ // }else{
num = el.environmentData + el1.unit num = el.environmentData + el1.unit
// } // }
if (el.equipmentNumber == 0) { if (el.equipmentNumber == 0) {
name = '1#平均' + el.environmentDataId
} else if (el.equipmentNumber == 15) {
name = '2#平均' + el.environmentDataId
} else {
name = el.equipmentNumber + '#' + el.environmentDataId
}
name = '1#平均' + el.environmentDataId
} else if (el.equipmentNumber == 15) {
name = '2#平均' + el.environmentDataId
} else {
if (el.targetValue == 1) {
name = '1#目标' + el.environmentDataId
} else{
name = el.equipmentNumber + '#' + el.environmentDataId
}
}
this.list.push({ this.list.push({
...el, ...el,
name: name, name: name,