智慧社区后台管理页面
liuyg
2022-01-17 f78fb447982b95192ffe4712d537cb243696bcb3
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;
          }