shj
2022-04-01 8d02c80fbed5887266bcf99d9ab9b2b3938449c6
src/views/safetyproduction/checklist.vue
@@ -357,15 +357,12 @@
      },
    beforTree() {
      safetyInspectionItemTree().then((res) => {
        console.log(res);
        this.tree = res.data.result;
      });
    },
    safetyInspectionItemL(data) {
      // console.log(data)
      this.listQuery.filter.elementB = data.value;
      safetyInspectionItemList(this.listQuery).then((res) => {
        // console.log(res.data.result.records);
        this.list = res.data.result.records;
      });
    },
@@ -386,7 +383,6 @@
      } else {
        this.disabled = true;
        var i = this.list.findIndex((item) => item.id == id);
        console.log(id);
        this.form = this.list[i];
      }
    },
@@ -439,9 +435,6 @@
      }
    },
    coAdd(val, type) {
       this.$nextTick(() => {
        this.$refs["form"].clearValidate();
      });
      this.titleN = type;
      if (type == "新增") {
        this.dialogVisible = true;
@@ -454,8 +447,11 @@
        this.index = this.form.deductionList.findIndex(
          (item) => item.name == val.name
        );
        this.formInline = val;
          this.formInline=JSON.parse(JSON.stringify(val));
      }
        this.$nextTick(() => {
            this.$refs["form"].clearValidate();
        });
    },
    listAdd() {
        this.$refs["form"].validate((valid) => {
@@ -572,4 +568,4 @@
  background-color: #034ea2;
  border: 1px solid #034ea2;
}
</style>
</style>