From f78fb447982b95192ffe4712d537cb243696bcb3 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 17 Jan 2022 14:28:09 +0800
Subject: [PATCH] +bug 每项id
---
src/views/hd/getMapDataInThere.vue | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/views/hd/getMapDataInThere.vue b/src/views/hd/getMapDataInThere.vue
index 822c67f..b51be99 100644
--- a/src/views/hd/getMapDataInThere.vue
+++ b/src/views/hd/getMapDataInThere.vue
@@ -257,6 +257,7 @@
id: this.ourDatas.length,
});
}
+ this.nowId = +this.ourDatas.length + 1;
},
myRules(index) {
//单个验证
@@ -281,6 +282,7 @@
}
let line = this.changeMapData(lineBefor, "name");
let point = this.changeMapData(pointBefor, "name");
+ console.log(line, point);
if (line[0] == "namenot" || point[0] == "namenot") {
//需要显示验证失败合集
let errorId = [];
@@ -290,8 +292,9 @@
if (point[0] == "namenot") {
errorId.push(...point[1]);
}
-
+ console.log(errorId, "errorId");
for (let x in this.ourDatas) {
+ console.log(this.ourDatas[x], "x");
let flog = true;
for (let k in errorId) {
if (errorId[k] == this.ourDatas[x].id) {
@@ -329,6 +332,7 @@
kin != "isLine" &&
kin != "id"
) {
+ console.log(kin);
notData.push(inItem.id);
break;
}
--
Gitblit v1.9.3