From aae2025f1abfddde2fbf263fec41ebcc2d0e9932 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 31 三月 2025 09:27:15 +0800
Subject: [PATCH] 设施和观景条件-分页

---
 src/views/structural/capabilityAndLaboratory/capabilityComponents/EditForm.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/capabilityComponents/EditForm.vue b/src/views/structural/capabilityAndLaboratory/capabilityComponents/EditForm.vue
index 103c747..58b2753 100644
--- a/src/views/structural/capabilityAndLaboratory/capabilityComponents/EditForm.vue
+++ b/src/views/structural/capabilityAndLaboratory/capabilityComponents/EditForm.vue
@@ -318,7 +318,9 @@
         this.editForm.sample = JSON.parse(this.editForm.sample)
         this.editForm.radiusList = this.editForm.radiusList && JSON.parse(this.editForm.radiusList)
         this.editForm.method = JSON.parse(this.editForm.method)
-        this.$set(this.editForm, 'deviceId', this.editForm.deviceIds && this.editForm.deviceIds.split(","))
+        const ids = this.editForm.deviceIds && this.editForm.deviceIds.split(",") || [];
+        const numericIds = ids.map(Number);
+        this.$set(this.editForm, 'deviceId', numericIds);
       }
     },
     // 鎻愪氦缂栬緫
@@ -448,7 +450,7 @@
       search({ status: 0 }).then((res) => {
         if (res.code === 200 && res.data) {
           this.equipOptions = res.data.map((m) => {
-            m.value = m.managementNumber;
+            m.value = m.id;
             m.label = m.deviceName;
             return m;
           });

--
Gitblit v1.9.3