|
|
@ -166,11 +166,7 @@ const printerDoTest = () => { |
|
|
|
<section class="debug-env"> |
|
|
|
<!-- 左侧:H₂O₂ 传感器数据 --> |
|
|
|
<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-label env-content-p" style="text-align: right; width: 8rem"> |
|
|
|
{{ index === 0 ? '仓内环境' : item.title || `探头${index}` }} |
|
|
@ -225,24 +221,13 @@ const printerDoTest = () => { |
|
|
|
加液泵控制: |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
type="primary" |
|
|
|
button-text="加液" |
|
|
|
@click="liquidFillingPumpDoLiquidFilling" |
|
|
|
/> |
|
|
|
<bt-button type="primary" button-text="加液" @click="liquidFillingPumpDoLiquidFilling" /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
type="primary" |
|
|
|
button-text="排空" |
|
|
|
@click="liquidFillingPumpDoLiquidDischarge" |
|
|
|
/> |
|
|
|
<bt-button type="primary" button-text="排空" @click="liquidFillingPumpDoLiquidDischarge" /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
button-text="停止" |
|
|
|
@click="liquidFillingPumpDoStop" |
|
|
|
/> |
|
|
|
<bt-button button-text="停止" @click="liquidFillingPumpDoStop" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="debug-left-lh"> |
|
|
@ -250,17 +235,10 @@ const printerDoTest = () => { |
|
|
|
空压机控制: |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
type="primary" |
|
|
|
button-text="打开" |
|
|
|
@click="airCompressorDoOpen" |
|
|
|
/> |
|
|
|
<bt-button type="primary" button-text="打开" @click="airCompressorDoOpen" /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
button-text="关闭" |
|
|
|
@click="airCompressorDoClose" |
|
|
|
/> |
|
|
|
<bt-button button-text="关闭" @click="airCompressorDoClose" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="debug-left-lh"> |
|
|
@ -268,17 +246,10 @@ const printerDoTest = () => { |
|
|
|
加热片控制: |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
type="primary" |
|
|
|
button-text="打开" |
|
|
|
@click="heatingDoOpen" |
|
|
|
/> |
|
|
|
<bt-button type="primary" button-text="打开" @click="heatingDoOpen" /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
button-text="关闭" |
|
|
|
@click="heatingDoClose" |
|
|
|
/> |
|
|
|
<bt-button button-text="关闭" @click="heatingDoClose" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="debug-left-lh"> |
|
|
@ -286,18 +257,14 @@ const printerDoTest = () => { |
|
|
|
气密性阀门模式: |
|
|
|
</div> |
|
|
|
<div class="debug-bw"> |
|
|
|
<el-select v-model="airLeakDetectTestMode" placeholder="请选择模式" style="width: 100%;"> |
|
|
|
<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" |
|
|
|
/> |
|
|
|
<bt-button type="primary" button-text="切换" @click="airLeakDetectTestModeDoSetMode" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -309,29 +276,23 @@ const printerDoTest = () => { |
|
|
|
喷液泵控制: |
|
|
|
</div> |
|
|
|
<div class="debug-bw"> |
|
|
|
<el-select v-model="sprayPumpGpmValue" placeholder="请选择加液量" style="width: 100%;"> |
|
|
|
<el-option v-for="opt in [2, 5, 8, 10, 15]" :key="opt" :label="`${opt} gpm`" :value="opt" /> |
|
|
|
<el-select v-model="sprayPumpGpmValue" placeholder="请选择加液量" style="width: 100%"> |
|
|
|
<el-option |
|
|
|
v-for="opt in [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]" |
|
|
|
:key="opt" |
|
|
|
:label="`${opt} gpm`" |
|
|
|
:value="opt" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
type="primary" |
|
|
|
button-text="喷液" |
|
|
|
@click="sprayPumpDoForward" |
|
|
|
/> |
|
|
|
<bt-button type="primary" button-text="喷液" @click="sprayPumpDoForward" /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
type="primary" |
|
|
|
button-text="回流" |
|
|
|
@click="sprayPumpDoBackward" |
|
|
|
/> |
|
|
|
<bt-button type="primary" button-text="回流" @click="sprayPumpDoBackward" /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
button-text="停止" |
|
|
|
@click="onClosePump" |
|
|
|
/> |
|
|
|
<bt-button button-text="停止" @click="onClosePump" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="debug-left-lh"> |
|
|
@ -339,17 +300,10 @@ const printerDoTest = () => { |
|
|
|
风机控制: |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
type="primary" |
|
|
|
button-text="打开" |
|
|
|
@click="blowerDoOpen" |
|
|
|
/> |
|
|
|
<bt-button type="primary" button-text="打开" @click="blowerDoOpen" /> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
button-text="关闭" |
|
|
|
@click="blowerDoClose" |
|
|
|
/> |
|
|
|
<bt-button button-text="关闭" @click="blowerDoClose" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="debug-left-lh"> |
|
|
@ -357,11 +311,7 @@ const printerDoTest = () => { |
|
|
|
打印机测试: |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<bt-button |
|
|
|
type="primary" |
|
|
|
button-text="测试" |
|
|
|
@click="printerDoTest" |
|
|
|
/> |
|
|
|
<bt-button type="primary" button-text="测试" @click="printerDoTest" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -372,102 +322,102 @@ const printerDoTest = () => { |
|
|
|
</template> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
$lineHeight: 12vh; |
|
|
|
.main-content{ |
|
|
|
height: $main-container-height; |
|
|
|
overflow: hidden; |
|
|
|
background: $gradient-color; |
|
|
|
padding: 4vh; |
|
|
|
font-size: 20px; |
|
|
|
.debug-upper{ |
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
grid-template-rows: auto auto; |
|
|
|
} |
|
|
|
.debug-lower{ |
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(2,1fr); |
|
|
|
} |
|
|
|
.debug-left{ |
|
|
|
.debug-inside{ |
|
|
|
display: flex; |
|
|
|
gap: 1rem; |
|
|
|
} |
|
|
|
} |
|
|
|
$lineHeight: 12vh; |
|
|
|
.main-content { |
|
|
|
height: $main-container-height; |
|
|
|
overflow: hidden; |
|
|
|
background: $gradient-color; |
|
|
|
padding: 4vh; |
|
|
|
font-size: 20px; |
|
|
|
.debug-upper { |
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
grid-template-rows: auto auto; |
|
|
|
} |
|
|
|
.divider{ |
|
|
|
margin-top: 4vh; |
|
|
|
margin-bottom: 4vh; |
|
|
|
} |
|
|
|
.debug-env { |
|
|
|
display: flex; |
|
|
|
align-items: flex-start; |
|
|
|
.debug-lower { |
|
|
|
display: grid; |
|
|
|
grid-template-columns: repeat(2, 1fr); |
|
|
|
} |
|
|
|
.debug-left-lh{ |
|
|
|
display: flex; |
|
|
|
gap: 1rem; |
|
|
|
height: $lineHeight; |
|
|
|
.debug-env-content{ |
|
|
|
.debug-left { |
|
|
|
.debug-inside { |
|
|
|
display: flex; |
|
|
|
.env-content-p{ |
|
|
|
padding: 5px; |
|
|
|
} |
|
|
|
gap: 1rem; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.debug-env-right { |
|
|
|
} |
|
|
|
.divider { |
|
|
|
margin-top: 4vh; |
|
|
|
margin-bottom: 4vh; |
|
|
|
} |
|
|
|
.debug-env { |
|
|
|
display: flex; |
|
|
|
align-items: flex-start; |
|
|
|
} |
|
|
|
.debug-left-lh { |
|
|
|
display: flex; |
|
|
|
gap: 1rem; |
|
|
|
height: $lineHeight; |
|
|
|
.debug-env-content { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 0.5rem; |
|
|
|
margin-left: 20rem; |
|
|
|
align-items: flex-start; |
|
|
|
.env-content-p { |
|
|
|
padding: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.env-content-p { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
gap: 0.5rem; |
|
|
|
font-size: 1rem; |
|
|
|
} |
|
|
|
.debug-env-right { |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
gap: 0.5rem; |
|
|
|
margin-left: 20rem; |
|
|
|
align-items: flex-start; |
|
|
|
} |
|
|
|
|
|
|
|
.debug-env-right .env-content-p { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
.env-content-p { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
gap: 0.5rem; |
|
|
|
font-size: 1rem; |
|
|
|
} |
|
|
|
|
|
|
|
.debug-env-right .env-content-p .label { |
|
|
|
display: inline-block; |
|
|
|
width: 6.5rem; /* 根据最长文字“加热片电流”微调 */ |
|
|
|
text-align: right; |
|
|
|
margin-right: 0.75rem; |
|
|
|
} |
|
|
|
.debug-env-right .env-content-p { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
|
|
|
|
.debug-env-right .env-content-p .value { |
|
|
|
display: flex; |
|
|
|
align-items: baseline; |
|
|
|
gap: 0.2rem; |
|
|
|
} |
|
|
|
.debug-env-right .env-content-p .label { |
|
|
|
display: inline-block; |
|
|
|
width: 6.5rem; /* 根据最长文字“加热片电流”微调 */ |
|
|
|
text-align: right; |
|
|
|
margin-right: 0.75rem; |
|
|
|
} |
|
|
|
|
|
|
|
.debug-env-right .env-content-p .debug-text { |
|
|
|
font-weight: bold; |
|
|
|
color: #2892F3; |
|
|
|
} |
|
|
|
.debug-env-right .env-content-p .value { |
|
|
|
display: flex; |
|
|
|
align-items: baseline; |
|
|
|
gap: 0.2rem; |
|
|
|
} |
|
|
|
|
|
|
|
.debug-env-right .env-content-p .unit { |
|
|
|
font-size: 0.9em; |
|
|
|
} |
|
|
|
.env-lh{ |
|
|
|
height: 5vh; |
|
|
|
} |
|
|
|
.debug-bw{ |
|
|
|
width: 10vw; |
|
|
|
} |
|
|
|
.debug-label{ |
|
|
|
width: 18vw; |
|
|
|
text-align: end; |
|
|
|
} |
|
|
|
.debug-text{ |
|
|
|
color: #2892F3; |
|
|
|
padding: 5px; |
|
|
|
} |
|
|
|
.debug-env-right .env-content-p .debug-text { |
|
|
|
font-weight: bold; |
|
|
|
color: #2892f3; |
|
|
|
} |
|
|
|
|
|
|
|
.debug-env-right .env-content-p .unit { |
|
|
|
font-size: 0.9em; |
|
|
|
} |
|
|
|
.env-lh { |
|
|
|
height: 5vh; |
|
|
|
} |
|
|
|
.debug-bw { |
|
|
|
width: 10vw; |
|
|
|
} |
|
|
|
.debug-label { |
|
|
|
width: 18vw; |
|
|
|
text-align: end; |
|
|
|
} |
|
|
|
.debug-text { |
|
|
|
color: #2892f3; |
|
|
|
padding: 5px; |
|
|
|
} |
|
|
|
</style> |