邓洁 : 风压风速接口

This commit is contained in:
邓洁
2023-12-13 09:43:53 +08:00
parent 16e68e8609
commit 944c727cc5
7 changed files with 127 additions and 125 deletions

View File

@@ -9,7 +9,7 @@
<div id="point" ref="point"></div>
</div>
<div class="value-num" :class="{ warning: isWaring }">
{{ params.wp.value }}Pa
{{ params.wp.value }}{{ params.wp.unit }}
</div>
</div>
</template>
@@ -38,12 +38,9 @@ function handleOnMounted() {
setValue();
}
watch(
() => params.wp.value,
(value) => {
setValue();
}
);
watch(() => params.wp.value, (value) => {
setValue();
});
function setValue() {
let width = (params.wp.value * length.value.offsetWidth) / params.wp.max;
@@ -63,13 +60,15 @@ let isWaring = computed(() => {
</script>
<style lang="scss" scoped>
.abnormal:hover{
background: #9C5252!important;
.abnormal:hover {
background: #9C5252 !important;
border-radius: 6px;
#point {
background: #fff!important;
background: #fff !important;
}
}
#wind-pressure-item {
display: flex;
align-items: center;