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

检查记录隐患校验

parent 08c46d56
...@@ -441,6 +441,8 @@ ...@@ -441,6 +441,8 @@
this.resetForm("form"); this.resetForm("form");
}, },
submitForm(){ submitForm(){
this.$refs["form"].validate(valid => {
if (valid) {
if(this.editIndex > -1){ if(this.editIndex > -1){
this.refList[this.editIndex] = this.form; this.refList[this.editIndex] = this.form;
}else{ }else{
...@@ -451,6 +453,8 @@ ...@@ -451,6 +453,8 @@
this.$parent.$parent.$parent.form.rectificationList = this.refList; this.$parent.$parent.$parent.form.rectificationList = this.refList;
this.$parent.$parent.$parent.form.fHazardsNum = this.refList.length; this.$parent.$parent.$parent.form.fHazardsNum = this.refList.length;
this.open = false; 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