预检测

This commit is contained in:
sjl
2025-08-06 15:18:27 +08:00
parent 83998f88ac
commit d0724cb7f6
12 changed files with 739 additions and 164 deletions

View File

@@ -292,7 +292,7 @@ import WriteTHPopup from "@/views/home/components/writeTHPopup.vue";
import DeviceConnectionPopup from '@/views/home/components/deviceConnectionPopup.vue'
import { Plan } from '@/api/plan/interface'
import { StandardDevice } from '@/api/device/interface/standardDevice'
import {getPlanList } from '@/api/plan/plan.ts'
import { mount } from 'sortablejs'
const dictStore = useDictStore()
@@ -369,10 +369,14 @@ const props = defineProps({
planArray: {
type: Array as PropType<Plan.ReqPlan[]>,
default: null,
},
},
planTable: {
type: Array,
default: () => []
},
})
const appSceneStore = useAppSceneStore()
const planTable = ref<any[]>([])
const emit = defineEmits<{
@@ -957,7 +961,8 @@ const handleTest2 = () => {
}
//选中计划的数据源
const dataSources = ref([])
const matchedItem = planTable.value.data.find(item => item.name === props.plan.name)
const matchedItem = props.planTable.data.find(item => item.name === props.plan.name)
if (matchedItem) {
dataSources.value = matchedItem.datasourceIds
}
@@ -1324,13 +1329,7 @@ onBeforeMount(async () => {
})
onMounted(async () => {
if(modeStore.currentMode != '比对式')
return;
const patternId2 = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id;
if (patternId2 !== undefined) {
planTable.value = await getPlanList({ 'patternId': patternId2 });
}
})
const handleQuitClicked = () => {