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

检查记录隐患校验

parent 08c46d56
......@@ -441,16 +441,20 @@
this.resetForm("form");
},
submitForm(){
if(this.editIndex > -1){
this.refList[this.editIndex] = this.form;
}else{
this.form.fObjType = this.$parent.$parent.$parent.form.fObjectType;
this.form.fObjCode = this.$parent.$parent.$parent.form.fObjectCode;
this.refList.push(this.form);
}
this.$parent.$parent.$parent.form.rectificationList = this.refList;
this.$parent.$parent.$parent.form.fHazardsNum = this.refList.length;
this.open = false;
this.$refs["form"].validate(valid => {
if (valid) {
if(this.editIndex > -1){
this.refList[this.editIndex] = this.form;
}else{
this.form.fObjType = this.$parent.$parent.$parent.form.fObjectType;
this.form.fObjCode = this.$parent.$parent.$parent.form.fObjectCode;
this.refList.push(this.form);
}
this.$parent.$parent.$parent.form.rectificationList = this.refList;
this.$parent.$parent.$parent.form.fHazardsNum = this.refList.length;
this.open = false;
}
})
},
cancel(){
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