From 1a23bcb510acbe604f137d677565af73684507ea Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Mon, 24 Feb 2025 16:30:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E6=B5=8B=E8=AE=A1=E5=88=92=E6=9C=AA?= =?UTF-8?q?=E6=A3=80=E4=B8=8B=E6=8B=89=E6=A1=86=E4=B8=8D=E5=8F=AF=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/plan/planList/components/planPopup.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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()