diff --git a/frontend/src/views/plan/planList/components/planPopup.vue b/frontend/src/views/plan/planList/components/planPopup.vue index 6184943..22aca3b 100644 --- a/frontend/src/views/plan/planList/components/planPopup.vue +++ b/frontend/src/views/plan/planList/components/planPopup.vue @@ -29,7 +29,7 @@ - + - + ([])//根据检测计划id查询出所有已绑定的设备 const value = ref([]) const allData = computed(() => generateData()) + const isSelectDisabled = ref(false) const generateData = () => { const unboundData = unboundPqDevList.value.map((i: Device.ResPqDev) => ({ key: i.id, @@ -286,8 +287,12 @@ const open = async (sign: string, data.pattern = patternId mode.value = currentMode titleType.value = sign - + isSelectDisabled.value = false if (data.id) { + if(data.testState === 0){ + isSelectDisabled.value = true + } + Object.assign(formContent,{ ...data }) } else { resetFormContent()