From 7d0053eb7194182a7b60f26ce154ad7f5b101203 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Sat, 11 Oct 2025 14:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A2=AB=E6=A3=80=E8=AE=BE=E5=A4=87=E7=9B=91?= =?UTF-8?q?=E6=B5=8B=E7=82=B9=E5=8F=B0=E8=B4=A6=E7=BA=BF=E8=B7=AF=E5=8F=B7?= =?UTF-8?q?=E5=8D=A0=E6=BB=A1=E4=B8=8D=E5=8F=AF=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/machine/device/components/monitorTab.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src/views/machine/device/components/monitorTab.vue b/frontend/src/views/machine/device/components/monitorTab.vue index 9afc43e..63138d0 100644 --- a/frontend/src/views/machine/device/components/monitorTab.vue +++ b/frontend/src/views/machine/device/components/monitorTab.vue @@ -162,6 +162,18 @@ const openDialog = (titleType: string, row: Partial = {}) => { }) return } + // 新增时检查线路号是否全部被占用 + if (titleType === 'add') { + if(props.DevFormContent.devChns == tableData.value.length){ + ElMessageBox.confirm(`线路号已全部被占用,无法新增监测点`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }) + return + } + + } title_Type.value = titleType monitorPopup.value?.open(titleType, row, props.DevFormContent, tableData.value, props.selectOptions) }