fix:通风系统对接接口

This commit is contained in:
zhaohy
2024-08-21 14:47:12 +08:00
parent 6cb09f631b
commit 933e4b26a8
7 changed files with 101 additions and 79 deletions

View File

@@ -57,7 +57,7 @@
<script lang="ts" setup>
import sunRed from '../image/airConditioningSystem/sunRed.png';
import sunYellow from '../image/airConditioningSystem/sunYellow.png';
import sunBlue from '../image/airConditioningSystem/sunBlue.png';
import sunGreen from '../image/airConditioningSystem/sunGreen.png';
import electricFan from '../image/airConditioningSystem/electricFan.png';
import setUp from '../image/airConditioningSystem/setUp.png';
@@ -70,7 +70,7 @@
});
const getSunUrl = () => {
if (props.dataSource.number > 0 && props.dataSource.number < 20) {
return sunBlue;
return sunGreen;
} else if (props.dataSource.number >= 20 && props.dataSource.number < 30) {
return sunYellow;
} else {

View File

@@ -17,6 +17,7 @@
class="box-number"
:style="{
left: dataSource.type === '二氧化碳' ? '95px' : '90px',
color: dataSource.fontColor ? dataSource.fontColor : '#0dffa4',
}"
>{{ dataSource.number }}</div
>
@@ -90,7 +91,6 @@
margin-right: 4px;
}
.box-number {
color: #0dffa4;
font-size: 18px;
left: 72%;
top: 45%;