微调
This commit is contained in:
@@ -649,6 +649,7 @@ const updateErrorState = (index: number, hasError: boolean) => {
|
|||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'quitClicked'): void;
|
(e: 'quitClicked'): void;
|
||||||
|
(e: 'submitClicked'): void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const handleCancel=() => {
|
const handleCancel=() => {
|
||||||
@@ -703,7 +704,7 @@ const handleSubmit = async () => {
|
|||||||
operateType:'0' // '0'为预检测、‘1‘为正式检测
|
operateType:'0' // '0'为预检测、‘1‘为正式检测
|
||||||
})
|
})
|
||||||
active.value++;
|
active.value++;
|
||||||
console.log("handleSubmitactive",active.value);
|
emit('submitClicked'); // 触发事件
|
||||||
// 初始化 loadingStates 为 true
|
// 初始化 loadingStates 为 true
|
||||||
// loadingStates.value = new Array(name.value.length).fill(true);
|
// loadingStates.value = new Array(name.value.length).fill(true);
|
||||||
|
|
||||||
|
|||||||
@@ -225,7 +225,7 @@
|
|||||||
:dialogTitle="dialogTitle"
|
:dialogTitle="dialogTitle"
|
||||||
@update:visible="dialogFormVisible = $event"
|
@update:visible="dialogFormVisible = $event"
|
||||||
/> -->
|
/> -->
|
||||||
<TestPopup ref='testPopup' @quitClicked='handleQuitClicked'></TestPopup>
|
<TestPopup ref='testPopup' @quitClicked='handleQuitClicked' ></TestPopup>
|
||||||
|
|
||||||
<reportPopup
|
<reportPopup
|
||||||
:visible='reportDialogVisible'
|
:visible='reportDialogVisible'
|
||||||
@@ -245,7 +245,7 @@
|
|||||||
></matchPopup>
|
></matchPopup>
|
||||||
|
|
||||||
<!--系数校准-->
|
<!--系数校准-->
|
||||||
<ChannelsTest ref='channelsTest' :webMsgSend='webMsgSend' @quitClicked='handleQuitClicked'></ChannelsTest>
|
<ChannelsTest ref='channelsTest' :webMsgSend='webMsgSend' @quitClicked='handleQuitClicked' @submitClicked = 'handleSubmitClicked'></ChannelsTest>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -1138,11 +1138,20 @@ onBeforeMount(async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const handleQuitClicked = () => {
|
const handleQuitClicked = () => {
|
||||||
console.log('handleQuitClicked')
|
//console.log('handleQuitClicked')
|
||||||
dataSocket.socketServe.closeWs()
|
dataSocket.socketServe.closeWs()
|
||||||
emit('batchGenerateClicked') // 触发事件
|
emit('batchGenerateClicked') // 触发事件
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const handleSubmitClicked =() =>{
|
||||||
|
//console.log('handleSubmitClicked')
|
||||||
|
if(!dataSocket.socketServe.connected){
|
||||||
|
ElMessage.error('webSocket连接中断!请退出重新进行系数校准')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
defineExpose({ changeActiveTabs })
|
defineExpose({ changeActiveTabs })
|
||||||
</script>
|
</script>
|
||||||
<style lang='scss' scoped>
|
<style lang='scss' scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user