|
@ -13,10 +13,7 @@ const h2O2SensorData = ref<Home.DisplayrelyMgrParams[]>(homeStore.h2O2SensorData |
|
|
const sprayPumpGpmValue = ref<number>(5) |
|
|
const sprayPumpGpmValue = ref<number>(5) |
|
|
const airLeakDetectTestMode = ref<string>('disinfection') |
|
|
const airLeakDetectTestMode = ref<string>('disinfection') |
|
|
|
|
|
|
|
|
const formatValue = (v?: number) => |
|
|
|
|
|
v === 0 || v == null |
|
|
|
|
|
? '--' |
|
|
|
|
|
: roundNumber(v, 2) |
|
|
|
|
|
|
|
|
const formatValue = (v?: number) => (v === 0 || v == null ? '--' : roundNumber(v, 2)) |
|
|
|
|
|
|
|
|
watchEffect(() => { |
|
|
watchEffect(() => { |
|
|
const hdData = homeStore.h2O2SensorData |
|
|
const hdData = homeStore.h2O2SensorData |
|
@ -176,8 +173,8 @@ const deviceType = computed(() => __DEVICE_TYPE__) |
|
|
<div class="debug-env-left"> |
|
|
<div class="debug-env-left"> |
|
|
<div v-for="(item, index) in h2O2SensorData" :key="index" class="debug-left-lh env-lh"> |
|
|
<div v-for="(item, index) in h2O2SensorData" :key="index" class="debug-left-lh env-lh"> |
|
|
<div class="debug-env-content"> |
|
|
<div class="debug-env-content"> |
|
|
<div class="debug-label env-content-p" style="text-align: right; width: 5rem"> |
|
|
|
|
|
{{ index === 0 ? '仓内环境' : item.title || `探头${index}` }} |
|
|
|
|
|
|
|
|
<div class="debug-label" style="text-align: right; width: 5rem"> |
|
|
|
|
|
{{ index === 0 ? '仓内环境' : item.title || `探头${index}` }}: |
|
|
</div> |
|
|
</div> |
|
|
<div class="env-content-p"> |
|
|
<div class="env-content-p"> |
|
|
<span>温度</span> |
|
|
<span>温度</span> |
|
@ -223,57 +220,55 @@ const deviceType = computed(() => __DEVICE_TYPE__) |
|
|
<hr class="divider"> |
|
|
<hr class="divider"> |
|
|
<div class="debug-lower"> |
|
|
<div class="debug-lower"> |
|
|
<section> |
|
|
<section> |
|
|
<div> |
|
|
|
|
|
<div v-if="deviceType !== deviceState.deviceTypeMap.LargeSpaceDM_B" class="debug-left-lh"> |
|
|
|
|
|
<div class="debug-label"> |
|
|
|
|
|
加液泵控制: |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="加液" @click="liquidFillingPumpDoLiquidFilling" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="排空" @click="liquidFillingPumpDoLiquidDischarge" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button button-text="停止" @click="liquidFillingPumpDoStop" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-if="deviceType !== deviceState.deviceTypeMap.LargeSpaceDM_B" class="debug-left-lh"> |
|
|
|
|
|
<div class="debug-label"> |
|
|
|
|
|
加液泵控制: |
|
|
</div> |
|
|
</div> |
|
|
<div class="debug-left-lh"> |
|
|
|
|
|
<div class="debug-label"> |
|
|
|
|
|
空压机控制: |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="打开" @click="airCompressorDoOpen" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button button-text="关闭" @click="airCompressorDoClose" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="加液" @click="liquidFillingPumpDoLiquidFilling" /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="debug-left-lh"> |
|
|
|
|
|
<div class="debug-label"> |
|
|
|
|
|
加热片控制: |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="打开" @click="heatingDoOpen" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button button-text="关闭" @click="heatingDoClose" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="排空" @click="liquidFillingPumpDoLiquidDischarge" /> |
|
|
</div> |
|
|
</div> |
|
|
<div v-if="deviceType !== deviceState.deviceTypeMap.LargeSpaceDM_B" class="debug-left-lh"> |
|
|
|
|
|
<div class="debug-label"> |
|
|
|
|
|
气密性阀门模式: |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="debug-bw"> |
|
|
|
|
|
<el-select v-model="airLeakDetectTestMode" placeholder="请选择模式" style="width: 100%"> |
|
|
|
|
|
<el-option label="消毒模式" value="disinfection" /> |
|
|
|
|
|
<el-option label="加压模式" value="inflation" /> |
|
|
|
|
|
<el-option label="泄露测试模式" value="leakTest" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="切换" @click="airLeakDetectTestModeDoSetMode" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button button-text="停止" @click="liquidFillingPumpDoStop" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="debug-left-lh"> |
|
|
|
|
|
<div class="debug-label"> |
|
|
|
|
|
空压机控制: |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="打开" @click="airCompressorDoOpen" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button button-text="关闭" @click="airCompressorDoClose" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="debug-left-lh"> |
|
|
|
|
|
<div class="debug-label"> |
|
|
|
|
|
加热片控制: |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="打开" @click="heatingDoOpen" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button button-text="关闭" @click="heatingDoClose" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div v-if="deviceType !== deviceState.deviceTypeMap.LargeSpaceDM_B" class="debug-left-lh"> |
|
|
|
|
|
<div class="debug-label"> |
|
|
|
|
|
气密性阀门模式: |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="debug-bw"> |
|
|
|
|
|
<el-select v-model="airLeakDetectTestMode" placeholder="请选择模式" style="width: 100%"> |
|
|
|
|
|
<el-option label="消毒模式" value="disinfection" /> |
|
|
|
|
|
<el-option label="加压模式" value="inflation" /> |
|
|
|
|
|
<el-option label="泄露测试模式" value="leakTest" /> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div> |
|
|
|
|
|
<bt-button type="primary" button-text="切换" @click="airLeakDetectTestModeDoSetMode" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
</section> |
|
@ -332,17 +327,18 @@ const deviceType = computed(() => __DEVICE_TYPE__) |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
$lineHeight: 12vh; |
|
|
$lineHeight: 12vh; |
|
|
.main-content { |
|
|
.main-content { |
|
|
height: $main-container-height; |
|
|
|
|
|
|
|
|
height: 100%; |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
background: $gradient-color; |
|
|
background: $gradient-color; |
|
|
padding: 4vh; |
|
|
|
|
|
font-size: 20px; |
|
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
.debug-upper { |
|
|
.debug-upper { |
|
|
display: grid; |
|
|
display: grid; |
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
grid-template-rows: auto auto; |
|
|
grid-template-rows: auto auto; |
|
|
} |
|
|
} |
|
|
.debug-lower { |
|
|
.debug-lower { |
|
|
|
|
|
flex: 1; |
|
|
display: grid; |
|
|
display: grid; |
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
} |
|
|
} |
|
@ -354,38 +350,45 @@ $lineHeight: 12vh; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.divider { |
|
|
.divider { |
|
|
margin-top: 4vh; |
|
|
|
|
|
margin-bottom: 4vh; |
|
|
|
|
|
|
|
|
margin: 20px; |
|
|
} |
|
|
} |
|
|
.debug-env { |
|
|
.debug-env { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: flex-start; |
|
|
|
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
.debug-env-left { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
width: 50%; |
|
|
|
|
|
} |
|
|
|
|
|
.debug-env-right { |
|
|
|
|
|
width: 50%; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
gap: 0.5rem; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
.debug-left-lh { |
|
|
.debug-left-lh { |
|
|
display: flex; |
|
|
display: flex; |
|
|
gap: 1rem; |
|
|
|
|
|
height: $lineHeight; |
|
|
|
|
|
|
|
|
gap: 5px; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
margin-bottom: 20px; |
|
|
.debug-env-content { |
|
|
.debug-env-content { |
|
|
display: flex; |
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
.env-content-p { |
|
|
.env-content-p { |
|
|
padding: 5px; |
|
|
padding: 5px; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.debug-env-right { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
gap: 0.5rem; |
|
|
|
|
|
margin-left: 20rem; |
|
|
|
|
|
align-items: flex-start; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.env-content-p { |
|
|
.env-content-p { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
gap: 0.5rem; |
|
|
gap: 0.5rem; |
|
|
font-size: 1rem; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.debug-env-right .env-content-p { |
|
|
.debug-env-right .env-content-p { |
|
@ -411,9 +414,6 @@ $lineHeight: 12vh; |
|
|
color: #2892f3; |
|
|
color: #2892f3; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.debug-env-right .env-content-p .unit { |
|
|
|
|
|
font-size: 0.9em; |
|
|
|
|
|
} |
|
|
|
|
|
.env-lh { |
|
|
.env-lh { |
|
|
height: 5vh; |
|
|
height: 5vh; |
|
|
} |
|
|
} |
|
@ -421,8 +421,9 @@ $lineHeight: 12vh; |
|
|
width: 10vw; |
|
|
width: 10vw; |
|
|
} |
|
|
} |
|
|
.debug-label { |
|
|
.debug-label { |
|
|
width: 18vw; |
|
|
|
|
|
|
|
|
width: 150px !important; |
|
|
text-align: end; |
|
|
text-align: end; |
|
|
|
|
|
margin-right: 10px; |
|
|
} |
|
|
} |
|
|
.debug-text { |
|
|
.debug-text { |
|
|
color: #2892f3; |
|
|
color: #2892f3; |
|
|