fc5c8870 by weimo934

fix():去掉表单验证错误代码

1 parent 8b8a2107
......@@ -22,7 +22,7 @@
<td colspan="2">行政区</td>
<td colspan="2">
<el-form :rules="rules" ref="ruleForm" :inline="true" >
<el-form-item prop="xzq">
<el-form-item >
<el-select
:disabled="formData.qszt!='0'"
class="formSelect"
......@@ -482,33 +482,35 @@ export default {
this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? this.jzxg : this.formData.jyjzxg;
this.$refs['ruleForm'].validate((valid) => {
debugger
if (valid) {
alert('submit!');
updateQjZdjbxx(this.formData)
.then((res) => {
if (res.code == 200) {
console.log(res);
this.$message({
message: '保存成功',
type: "success",
});
// 保存成功再次查询
this.getZdjbxxData();
} else {
this.$message({
message: res.message,
type: "warning",
});
}
})
.catch((error) => {});
} else {
alert("error submit")
return false;
}
});
// FIXME:表单验证错误
/* this.$refs['ruleForm'].validate((valid) => {
debugger
if (valid) {
alert('submit!');
} else {
alert("error submit")
return false;
}
});*/
updateQjZdjbxx(this.formData)
.then((res) => {
if (res.code == 200) {
console.log(res);
this.$message({
message: '保存成功',
type: "success",
});
// 保存成功再次查询
this.getZdjbxxData();
} else {
this.$message({
message: res.message,
type: "warning",
});
}
})
.catch((error) => {});
},
//提交宗地基本信息
......