shj
2022-03-31 d5e1d77a47f7684d9681357c0ffec37f01aeb52e
src/views/safetyproduction/new.vue
@@ -112,7 +112,7 @@
        </div>
      </div>
    </div>
    <el-dialog title="添加" :visible.sync="dialogVisible" width="30%">
    <el-dialog title="添加" :visible.sync="dialogVisible" :close-on-click-modal="false" width="30%">
      <el-form ref="form" :model="form" label-width="100px">
        <el-form-item label="自查清单名称">
          <el-input v-model="form.inspectionName"></el-input>
@@ -339,19 +339,19 @@
      this.TreeB(currentObj.value);
    },
    handleClick(data) {
      console.log('tag', data.id)
      if (data.safetyInspectionItemId!=undefined) {
          this.$router.push({
      console.log("tag", data.id);
      if (data.safetyInspectionItemId != undefined) {
        this.$router.push({
          path: "/reviewXG",
          query: {
            id: data.safetyInspectionItemId,
          },
        });
      } else{
         this.$router.push({
      } else {
        this.$router.push({
          path: "/reviewXG",
          query: {
            id:data.id
            id: data.id,
          },
        });
      }
@@ -384,6 +384,9 @@
              message: "新增成功",
              title: "成功",
            });
            this.$router.push({
              path:"/checklistself"
            });
          }
        });
      } else if (this.id == "编辑") {
@@ -396,6 +399,9 @@
            title: "成功",
          });
        });
         this.$router.push({
              path:"/checklistself"
            });
      }
    },
    btnsQX() {