修改比对式检测页面
This commit is contained in:
@@ -39,9 +39,13 @@
|
||||
</el-steps>
|
||||
</div>
|
||||
<keep-alive>
|
||||
<ChannelPairing v-if="stepsActiveView == 0" ref="channelPairingRef" :devIdList="prop.devIdList"
|
||||
:pqStandardDevList="prop.pqStandardDevList"
|
||||
:planIdKey="prop.planIdKey" />
|
||||
<ChannelPairing
|
||||
v-if="stepsActiveView == 0"
|
||||
ref="channelPairingRef"
|
||||
:devIdList="prop.devIdList"
|
||||
:pqStandardDevList="prop.pqStandardDevList"
|
||||
:planIdKey="prop.planIdKey"
|
||||
/>
|
||||
</keep-alive>
|
||||
<keep-alive>
|
||||
<ComparePreTest
|
||||
@@ -159,6 +163,7 @@ const nextStepText = ref('下一步')
|
||||
const dialogVisible = ref(false)
|
||||
const channelPairingRef = ref()
|
||||
const showSteps = ref(false)
|
||||
|
||||
const stepsTotalNum = ref(-1) //步骤总数
|
||||
const stepsActiveIndex = ref(0) //当前正在执行的步骤索引
|
||||
const stepsActiveView = ref(1) //当前正在执行的步骤在(预处理、守时校验、系数校准、正式检测)中的排序,仅用于页面显示
|
||||
@@ -247,6 +252,7 @@ const open = async (
|
||||
if (checkStore.selectTestItems.preTest && !checkStore.selectTestItems.test) {
|
||||
testAgain.value = true
|
||||
}
|
||||
checkStore.setNodesConnectable(true)
|
||||
dialogTitle.value = title
|
||||
channelMapping.value = mapping
|
||||
planId.value = plan
|
||||
@@ -331,7 +337,7 @@ const handleSubmitAgain = async () => {
|
||||
const handleSubmitFast = async () => {
|
||||
if (channelPairingRef.value) {
|
||||
const res = await channelPairingRef.value.handleNext()
|
||||
console.log('🚀 ~ handleSubmitFast ~ res:', res)
|
||||
|
||||
if (!res) return
|
||||
dialogTitle.value = res.title
|
||||
channelMapping.value = res.mapping
|
||||
@@ -340,6 +346,8 @@ const handleSubmitFast = async () => {
|
||||
devIds.value = res.devIdsArray
|
||||
standardDevIds.value = res.standardDevIdsArray
|
||||
pairs.value = res.pair
|
||||
checkStore.setNodesConnectable(false)
|
||||
// nodesConnectable.value = false
|
||||
}
|
||||
if (!dataSocket.socketServe.connected) {
|
||||
ElMessage.error('webSocket连接中断!')
|
||||
|
||||
Reference in New Issue
Block a user