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/hd.vue                |    3 +++
 src/views/hd/getMapDataInThere.vue |    6 +++++-
 2 files changed, 8 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;
           }
diff --git a/src/views/hd/hd.vue b/src/views/hd/hd.vue
index 5ed3365..7f01eba 100644
--- a/src/views/hd/hd.vue
+++ b/src/views/hd/hd.vue
@@ -240,6 +240,9 @@
       row["lx"] = outMapData[0][1];
       row["addressname"] = outMapData[1][0];
       row["address"] = outMapData[1][1];
+      console.log(row);
+      loading();
+      return;
       update(row).then(
         () => {
           this.onLoad(this.page);

--
Gitblit v1.9.3