|
@ -23,9 +23,7 @@ const leakRemainingTime = computed(() => sealStore.leakRemainingTime) |
|
|
const currentPressure = computed(() => sealStore.currentPressure) |
|
|
const currentPressure = computed(() => sealStore.currentPressure) |
|
|
const diffPressure = computed<number>(() => { |
|
|
const diffPressure = computed<number>(() => { |
|
|
if (sealInfo.value.workState === 'leakTesting') { |
|
|
if (sealInfo.value.workState === 'leakTesting') { |
|
|
return Math.abs( |
|
|
|
|
|
Number(currentPressure.value) - Number(initialPressure.value), |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
return Math.abs(Number(currentPressure.value) - Number(initialPressure.value)) |
|
|
} |
|
|
} |
|
|
return 0 |
|
|
return 0 |
|
|
}) |
|
|
}) |
|
@ -46,16 +44,16 @@ watch( |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
const res = await sendCmd({ className: 'AirLeakDetectTest', fnName: 'getServiceConfig', params: { inflationTimeMs: 0.3 } }) |
|
|
|
|
|
|
|
|
const res = await sendCmd({ |
|
|
|
|
|
className: 'AirLeakDetectTest', |
|
|
|
|
|
fnName: 'getServiceConfig', |
|
|
|
|
|
params: { inflationTimeMs: 0.3 }, |
|
|
|
|
|
}) |
|
|
inflationTime.value = res.inflationTimeMs |
|
|
inflationTime.value = res.inflationTimeMs |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
const stopText = computed(() => |
|
|
|
|
|
sealInfo.value.workState === 'stopping' ? '停止中...' : '停止测试', |
|
|
|
|
|
) |
|
|
|
|
|
const stopDisabled = computed(() => |
|
|
|
|
|
sealInfo.value.workState === 'stopping' || sealInfo.value.workState === 'idle', |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
const stopText = computed(() => (sealInfo.value.workState === 'stopping' ? '停止中...' : '停止测试')) |
|
|
|
|
|
const stopDisabled = computed(() => sealInfo.value.workState === 'stopping' || sealInfo.value.workState === 'idle') |
|
|
|
|
|
|
|
|
function onStartTest() { |
|
|
function onStartTest() { |
|
|
const statusName = getDeviceStatus() |
|
|
const statusName = getDeviceStatus() |
|
@ -74,7 +72,9 @@ function onStartTest() { |
|
|
FtMessage.error('指令发送失败,请稍候再试') |
|
|
FtMessage.error('指令发送失败,请稍候再试') |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.finally(() => { loading.value = false }) |
|
|
|
|
|
|
|
|
.finally(() => { |
|
|
|
|
|
loading.value = false |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function onFinishTest() { |
|
|
function onFinishTest() { |
|
@ -86,7 +86,9 @@ function onFinishTest() { |
|
|
FtMessage.success('测试已停止') |
|
|
FtMessage.success('测试已停止') |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.finally(() => { loading.value = false }) |
|
|
|
|
|
|
|
|
.finally(() => { |
|
|
|
|
|
loading.value = false |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function handleConfirm(value: string) { |
|
|
function handleConfirm(value: string) { |
|
@ -195,7 +197,7 @@ function handleConfirm(value: string) { |
|
|
v-model="inputValue" |
|
|
v-model="inputValue" |
|
|
:is-visible="keyboardVisible" |
|
|
:is-visible="keyboardVisible" |
|
|
:keyboard-type="keyboardType" |
|
|
:keyboard-type="keyboardType" |
|
|
@update-keyboard-visible="(visible: boolean) => keyboardVisible = visible" |
|
|
|
|
|
|
|
|
@update-keyboard-visible="(visible: boolean) => (keyboardVisible = visible)" |
|
|
@confirm="handleConfirm" |
|
|
@confirm="handleConfirm" |
|
|
@close="keyboardVisible = false" |
|
|
@close="keyboardVisible = false" |
|
|
/> |
|
|
/> |
|
@ -203,48 +205,49 @@ function handleConfirm(value: string) { |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
.main-content{ |
|
|
|
|
|
|
|
|
.main-content { |
|
|
display: grid; |
|
|
display: grid; |
|
|
grid-template-columns: repeat(3,1fr); |
|
|
|
|
|
|
|
|
grid-template-columns: repeat(3, 1fr); |
|
|
height: $main-container-height; |
|
|
height: $main-container-height; |
|
|
gap: 10px; |
|
|
gap: 10px; |
|
|
.seal-left{ |
|
|
|
|
|
background: #FFFFFF; |
|
|
|
|
|
|
|
|
.seal-left { |
|
|
|
|
|
background: #ffffff; |
|
|
grid-column: 1 / 3; |
|
|
grid-column: 1 / 3; |
|
|
box-shadow: 0px 1px 5px 0px rgba(9, 39, 62, 0.15); |
|
|
box-shadow: 0px 1px 5px 0px rgba(9, 39, 62, 0.15); |
|
|
background: $gradient-color; |
|
|
background: $gradient-color; |
|
|
.seal-chart{ |
|
|
|
|
|
|
|
|
.seal-chart { |
|
|
} |
|
|
} |
|
|
.chart-ml{ |
|
|
|
|
|
|
|
|
.chart-ml { |
|
|
margin: 2rem; |
|
|
margin: 2rem; |
|
|
height: 32rem; |
|
|
height: 32rem; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.seal-opt{ |
|
|
|
|
|
|
|
|
.seal-opt { |
|
|
display: flex; |
|
|
display: flex; |
|
|
gap: 2rem; |
|
|
gap: 2rem; |
|
|
margin-left: 9rem; |
|
|
margin-left: 9rem; |
|
|
margin-top: -2rem; |
|
|
margin-top: -2rem; |
|
|
.seal-status{ |
|
|
|
|
|
|
|
|
.seal-status { |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
background: #F6FAFE; |
|
|
|
|
|
width: 16rem; |
|
|
|
|
|
|
|
|
background: #f6fafe; |
|
|
|
|
|
//width: 16rem; |
|
|
height: 5rem; |
|
|
height: 5rem; |
|
|
border-radius: 15px; |
|
|
border-radius: 15px; |
|
|
|
|
|
padding: 0 2 0px; |
|
|
} |
|
|
} |
|
|
.seal-time-text{ |
|
|
|
|
|
|
|
|
.seal-time-text { |
|
|
font-size: 1.5rem; |
|
|
font-size: 1.5rem; |
|
|
font-weight: 500; |
|
|
font-weight: 500; |
|
|
padding-left: 0.5rem; |
|
|
padding-left: 0.5rem; |
|
|
} |
|
|
} |
|
|
.seal-test-time{ |
|
|
|
|
|
|
|
|
.seal-test-time { |
|
|
font-size: 24px; |
|
|
font-size: 24px; |
|
|
color: #2892F3; |
|
|
|
|
|
|
|
|
color: #2892f3; |
|
|
} |
|
|
} |
|
|
.seal-time-statue{ |
|
|
|
|
|
|
|
|
.seal-time-statue { |
|
|
height: 3rem; |
|
|
height: 3rem; |
|
|
width: 5rem; |
|
|
width: 5rem; |
|
|
display: flex; |
|
|
display: flex; |
|
@ -252,12 +255,12 @@ function handleConfirm(value: string) { |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
font-weight: 600; |
|
|
font-weight: 600; |
|
|
} |
|
|
} |
|
|
.seal-diff-text{ |
|
|
|
|
|
|
|
|
.seal-diff-text { |
|
|
font-size: 1.5rem; |
|
|
font-size: 1.5rem; |
|
|
font-weight: 500; |
|
|
font-weight: 500; |
|
|
padding-left: 0.5rem; |
|
|
padding-left: 0.5rem; |
|
|
} |
|
|
} |
|
|
.seal-diff-statue{ |
|
|
|
|
|
|
|
|
.seal-diff-statue { |
|
|
height: 3rem; |
|
|
height: 3rem; |
|
|
width: 5rem; |
|
|
width: 5rem; |
|
|
display: flex; |
|
|
display: flex; |
|
@ -267,57 +270,57 @@ function handleConfirm(value: string) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.seal-right{ |
|
|
|
|
|
|
|
|
.seal-right { |
|
|
background: $gradient-color; |
|
|
background: $gradient-color; |
|
|
display: grid; |
|
|
display: grid; |
|
|
grid-template-rows: repeat(2, 1fr); |
|
|
grid-template-rows: repeat(2, 1fr); |
|
|
.left-title{ |
|
|
|
|
|
|
|
|
.left-title { |
|
|
//padding-top: 3.5vw; |
|
|
//padding-top: 3.5vw; |
|
|
padding-left: 2.5vw; |
|
|
padding-left: 2.5vw; |
|
|
display: flex; |
|
|
display: flex; |
|
|
.title-text-test{ |
|
|
|
|
|
|
|
|
.title-text-test { |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
gap: 1rem; |
|
|
gap: 1rem; |
|
|
.title-text{ |
|
|
|
|
|
|
|
|
.title-text { |
|
|
font-size: 20px; |
|
|
font-size: 20px; |
|
|
} |
|
|
} |
|
|
.title-text-kpa{ |
|
|
|
|
|
color: #409EFF; |
|
|
|
|
|
|
|
|
.title-text-kpa { |
|
|
|
|
|
color: #409eff; |
|
|
} |
|
|
} |
|
|
.title-kpa-pl{ |
|
|
|
|
|
|
|
|
.title-kpa-pl { |
|
|
padding-left: 5px; |
|
|
padding-left: 5px; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.seal-right-btn{ |
|
|
|
|
|
|
|
|
.seal-right-btn { |
|
|
height: 30vh; |
|
|
height: 30vh; |
|
|
grid-row: 2 / 4; |
|
|
grid-row: 2 / 4; |
|
|
margin-top: -6rem; |
|
|
margin-top: -6rem; |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
.seal-input{ |
|
|
|
|
|
|
|
|
.seal-input { |
|
|
padding-left: 2rem; |
|
|
padding-left: 2rem; |
|
|
height: 8rem; |
|
|
height: 8rem; |
|
|
font-size: 2.143vw; |
|
|
font-size: 2.143vw; |
|
|
font-weight: 400; |
|
|
font-weight: 400; |
|
|
.inflation-time{ |
|
|
|
|
|
|
|
|
.inflation-time { |
|
|
height: 4rem; |
|
|
height: 4rem; |
|
|
} |
|
|
} |
|
|
.seal-diff-text{ |
|
|
|
|
|
|
|
|
.seal-diff-text { |
|
|
height: 4rem; |
|
|
height: 4rem; |
|
|
} |
|
|
} |
|
|
.input{ |
|
|
|
|
|
|
|
|
.input { |
|
|
width: 25vw; |
|
|
width: 25vw; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.seal-add-btn{ |
|
|
|
|
|
|
|
|
.seal-add-btn { |
|
|
width: 25vw; |
|
|
width: 25vw; |
|
|
height: 12vh; |
|
|
height: 12vh; |
|
|
border-radius: 12px; |
|
|
border-radius: 12px; |
|
|
color: #FFFFFF; |
|
|
|
|
|
|
|
|
color: #ffffff; |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|