Quellcode durchsuchen

巡检项调整

lipenghui vor 1 Monat
Ursprung
Commit
d78f5c6539
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/views/pms/inspect/plan/IotInspectPlan.vue

+ 1 - 1
src/views/pms/inspect/plan/IotInspectPlan.vue

@@ -198,7 +198,7 @@ const items = ref([])
 const deviceChoose = (rows) => {
   debugger
   rows.forEach((it) => {
-    const ifExist = list.value.find((item) => item.id === it.id)
+    const ifExist = list.value.find((item) => item.id === it.id&&item.deviceId===it.deviceId)
     if (!ifExist) {
       list.value.push(it)
       console.log(JSON.stringify(it))