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