This commit is contained in:
sjl
2025-03-14 12:13:34 +08:00
parent c46abeecf5
commit c17efbf9f6

View File

@@ -98,6 +98,8 @@ import { getCoefficientCheck } from '@/api/home/channelsTest/index'
import type { ChannelsTest } from '@/api/home/interface/channelsTest';
import type { Plan } from '@/api/plan/interface';
import { fa } from 'element-plus/es/locale';
import socketClient from '@/utils/webSocketClient';
const activeIndex = ref(0)
const activeTotalNum = ref(4)
const qualified = ref(0)
@@ -136,7 +138,6 @@ const props = defineProps({
default: () => ({})
}
})
const tableDataMap = new Map<number, Ref<ChannelsTest.CoefficientVO[]>>([]);
const currentStepStatus = ref<'error' | 'finish' | 'wait' | 'success' | 'process'>('finish');
const webMsgSend = toRef(props, 'webMsgSend');
@@ -726,7 +727,12 @@ const updateErrorState = (index: number, hasError: boolean) => {
(e: 'submitClicked', callback: (resolve: (value: boolean) => void) => void): void;
}>();
const dataSocket = reactive({
socketServe: socketClient.Instance,
});
const handleCancel=() => {
dataSocket.socketServe.closeWs()
// 清空 name, channel, total
name.value = [];
channel.value = [];