Commit 9066c7fd authored by 耿迪迪's avatar 耿迪迪

检查记录隐患校验

parent 08c46d56
...@@ -441,16 +441,20 @@ ...@@ -441,16 +441,20 @@
this.resetForm("form"); this.resetForm("form");
}, },
submitForm(){ submitForm(){
if(this.editIndex > -1){ this.$refs["form"].validate(valid => {
this.refList[this.editIndex] = this.form; if (valid) {
}else{ if(this.editIndex > -1){
this.form.fObjType = this.$parent.$parent.$parent.form.fObjectType; this.refList[this.editIndex] = this.form;
this.form.fObjCode = this.$parent.$parent.$parent.form.fObjectCode; }else{
this.refList.push(this.form); this.form.fObjType = this.$parent.$parent.$parent.form.fObjectType;
} this.form.fObjCode = this.$parent.$parent.$parent.form.fObjectCode;
this.$parent.$parent.$parent.form.rectificationList = this.refList; this.refList.push(this.form);
this.$parent.$parent.$parent.form.fHazardsNum = this.refList.length; }
this.open = false; this.$parent.$parent.$parent.form.rectificationList = this.refList;
this.$parent.$parent.$parent.form.fHazardsNum = this.refList.length;
this.open = false;
}
})
}, },
cancel(){ cancel(){
this.open = false; this.open = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment