From 0a5b1aaed616a4bf54544223e4802175b6cafead Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 16 四月 2025 15:22:31 +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