微调
This commit is contained in:
@@ -598,7 +598,6 @@ for (let i = 0; i < channel.value.length; i++) {
|
||||
|
||||
// 重置状态变量
|
||||
active.value = 0;activeIndex.value = 0;
|
||||
console.log('activeIndex', activeIndex.value);
|
||||
const currentTableData = ref<TableDataItem[]>([]);
|
||||
const selectedTemplates = dataTemplates4;
|
||||
|
||||
@@ -615,13 +614,11 @@ for (let i = 0; i < channel.value.length; i++) {
|
||||
|
||||
tableDataMap.set(i, currentTableData);
|
||||
activeIndex.value++;
|
||||
console.log('activeIndex', activeIndex.value);
|
||||
// 清除之前的 timer1
|
||||
clearInterval(timer1);
|
||||
// 启动 timer1
|
||||
timer1 = setInterval(() => {
|
||||
active.value++;
|
||||
console.log('active', active.value);
|
||||
if (active.value > 5) {
|
||||
clearInterval(timer1);
|
||||
}
|
||||
@@ -660,15 +657,11 @@ for (let i = 0; i < channel.value.length; i++) {
|
||||
}
|
||||
}
|
||||
|
||||
console.log('currentTableData', currentTableData);
|
||||
tableDataMap.set(i, currentTableData);
|
||||
activeIndex.value++;
|
||||
|
||||
clearInterval(timer2);
|
||||
console.log('activeIndex', activeIndex.value);
|
||||
console.log('tableDataMap', tableDataMap);
|
||||
const currentDataRef = tableDataMap.get(i);
|
||||
console.log('activeIndex.value - 2',activeIndex.value)
|
||||
console.log('currentDataRef',currentDataRef)
|
||||
if (currentDataRef) {
|
||||
const currentData = currentDataRef.value;
|
||||
// 检查当前数据中有无不合格字段
|
||||
|
||||
@@ -258,6 +258,7 @@ import ChannelsTest from './channelsTest.vue'
|
||||
import { useModeStore } from '@/stores/modules/mode'; // 引入模式 store
|
||||
import {useCheckStore} from '@/stores/modules/check'
|
||||
import {CheckData} from '@/api/check/interface'
|
||||
import socketClient from '@/utils/webSocketClient';
|
||||
|
||||
const dictStore = useDictStore()
|
||||
const checkStore = useCheckStore()
|
||||
@@ -302,6 +303,7 @@ const operationMinWidth = ref(200);
|
||||
const selectionShow = ref(true);
|
||||
const channelsTest = ref()
|
||||
const testPopup = ref()
|
||||
|
||||
const channelsSelection = ref<Device.ResPqDev[]>([])
|
||||
const props = defineProps({
|
||||
id: {
|
||||
|
||||
@@ -141,7 +141,7 @@ import {
|
||||
} from '@element-plus/icons-vue'
|
||||
import resultPopup from './resultPopup.vue'
|
||||
import dataCheckSingleChannelSingleTestPopup from './dataCheckSingleChannelSingleTestPopup.vue'
|
||||
import {reactive, ref, watch} from "vue";
|
||||
import {computed, reactive, ref, toRef, watch} from "vue";
|
||||
import {dialogBig} from "@/utils/elementBind";
|
||||
import {CheckData} from "@/api/check/interface"
|
||||
import {useCheckStore} from "@/stores/modules/check";
|
||||
|
||||
Reference in New Issue
Block a user