Explorar o código

巡检项调整

lipenghui hai 1 mes
pai
achega
d78f5c6539
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))