lyfO_o
2022-06-13 fe2617a36f52c16f83e7d3cb19d911bb91a3b79f
src/views/safetyproduction/new.vue
@@ -234,7 +234,6 @@
                safetyInspectionItemId: "",
              }
              arr[i].child[j].deductionList= arr[i].child[j].selfDeductionList
              console.log(arr[i].child[j])
              capB.safetySelfInspectionId=arr[i].child[j].safetySelfInspectionId
              capB.safetyInspectionItemId=arr[i].child[j].safetyInspectionItemId
              cser.push(capB)
@@ -393,7 +392,6 @@
       this.$refs["form"].validate((valid) => {
        if (valid) {
      if (this.id == "添加") {
        console.log("添加",this.form)
        safetySelfInspectionAdd(this.form).then((res) => {
          if (res.data.code == 200) {
            this.dialogVisible = false;
@@ -404,12 +402,11 @@
              title: "成功",
            });
            this.$router.push({
              path:"/checklistself"
              path:"/safetyproduction/safetyproduction/checklistself"
            });
          }
        });
      } else if (this.id == "编辑") {
        console.log('编辑',this.form)
        safetySelfInspectionMod(this.form).then((res) => {
          this.dialogVisible = false;
          this.$notify({
@@ -420,7 +417,7 @@
          });
        });
         this.$router.push({
              path:"/checklistself"
              path:"/safetyproduction/safetyproduction/checklistself"
            });
      }
         }