From 8aae184a8b008d4b8540630572843c1e6ca0d437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=90=8C=E5=AD=A6?= Date: Thu, 30 Oct 2025 11:09:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(device):=E6=B7=BB=E5=8A=A0=E8=B0=90?= =?UTF-8?q?=E6=B3=A2=E7=B3=BB=E7=BB=9F=E8=AE=BE=E5=A4=87ID=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../machine/device/components/devicePopup.vue | 115 ++++-------------- .../device/components/monitorPopup.vue | 11 +- 2 files changed, 28 insertions(+), 98 deletions(-) diff --git a/frontend/src/views/machine/device/components/devicePopup.vue b/frontend/src/views/machine/device/components/devicePopup.vue index be9ff8d..35aa542 100644 --- a/frontend/src/views/machine/device/components/devicePopup.vue +++ b/frontend/src/views/machine/device/components/devicePopup.vue @@ -81,46 +81,12 @@ :disabled="formContent.importFlag == 1" /> - - - - - - - + + - - - - - - - - - + /> + + + + @@ -332,7 +267,7 @@ import dayjs from 'dayjs' import MonitorTable from '@/views/machine/device/components/monitorTab.vue' import { useAppSceneStore } from '@/stores/modules/mode' import { generateUUID } from '@/utils' -import { Monitor } from '@/api/device/interface/monitor' +import { type Monitor } from '@/api/device/interface/monitor' const AppSceneStore = useAppSceneStore() const MonIsShow = ref(false) @@ -508,8 +443,8 @@ const rules = computed(() => { dynamicRules.name = [{ required: true, message: '设备名称必填!', trigger: 'blur' }] // dynamicRules.hardwareVersion = [{ required: true, message: '固件版本必选!', trigger: 'change' }] // dynamicRules.softwareVersion = [{ required: true, message: '软件版本必选!', trigger: 'change' }] - dynamicRules.hardwareVersion = [{ required: true, message: '固件版本必填!', trigger: 'blur' }] - dynamicRules.softwareVersion = [{ required: true, message: '软件版本必填!', trigger: 'blur' }] + dynamicRules.hardwareVersion = [{ required: true, message: '固件版本必填!', trigger: 'blur' }] + dynamicRules.softwareVersion = [{ required: true, message: '软件版本必填!', trigger: 'blur' }] dynamicRules.manufacturer = [{ required: true, message: '生产厂家必选!', trigger: 'change' }] } diff --git a/frontend/src/views/machine/device/components/monitorPopup.vue b/frontend/src/views/machine/device/components/monitorPopup.vue index 5bb2bf9..7b8c9b2 100644 --- a/frontend/src/views/machine/device/components/monitorPopup.vue +++ b/frontend/src/views/machine/device/components/monitorPopup.vue @@ -11,20 +11,15 @@
- + - + - +