fix():去掉表单验证错误代码
Showing
1 changed file
with
30 additions
and
28 deletions
| ... | @@ -22,7 +22,7 @@ | ... | @@ -22,7 +22,7 @@ |
| 22 | <td colspan="2">行政区</td> | 22 | <td colspan="2">行政区</td> |
| 23 | <td colspan="2"> | 23 | <td colspan="2"> |
| 24 | <el-form :rules="rules" ref="ruleForm" :inline="true" > | 24 | <el-form :rules="rules" ref="ruleForm" :inline="true" > |
| 25 | <el-form-item prop="xzq"> | 25 | <el-form-item > |
| 26 | <el-select | 26 | <el-select |
| 27 | :disabled="formData.qszt!='0'" | 27 | :disabled="formData.qszt!='0'" |
| 28 | class="formSelect" | 28 | class="formSelect" |
| ... | @@ -482,33 +482,35 @@ export default { | ... | @@ -482,33 +482,35 @@ export default { |
| 482 | this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? this.jzxg : this.formData.jyjzxg; | 482 | this.formData.jyjzxg = this.isInterval(this.formData.jyjzxg) ? this.jzxg : this.formData.jyjzxg; |
| 483 | 483 | ||
| 484 | 484 | ||
| 485 | this.$refs['ruleForm'].validate((valid) => { | 485 | // FIXME:表单验证错误 |
| 486 | debugger | 486 | /* this.$refs['ruleForm'].validate((valid) => { |
| 487 | if (valid) { | 487 | debugger |
| 488 | alert('submit!'); | 488 | if (valid) { |
| 489 | updateQjZdjbxx(this.formData) | 489 | alert('submit!'); |
| 490 | .then((res) => { | 490 | |
| 491 | if (res.code == 200) { | 491 | } else { |
| 492 | console.log(res); | 492 | alert("error submit") |
| 493 | this.$message({ | 493 | return false; |
| 494 | message: '保存成功', | 494 | } |
| 495 | type: "success", | 495 | });*/ |
| 496 | }); | 496 | updateQjZdjbxx(this.formData) |
| 497 | // 保存成功再次查询 | 497 | .then((res) => { |
| 498 | this.getZdjbxxData(); | 498 | if (res.code == 200) { |
| 499 | } else { | 499 | console.log(res); |
| 500 | this.$message({ | 500 | this.$message({ |
| 501 | message: res.message, | 501 | message: '保存成功', |
| 502 | type: "warning", | 502 | type: "success", |
| 503 | }); | 503 | }); |
| 504 | } | 504 | // 保存成功再次查询 |
| 505 | }) | 505 | this.getZdjbxxData(); |
| 506 | .catch((error) => {}); | 506 | } else { |
| 507 | } else { | 507 | this.$message({ |
| 508 | alert("error submit") | 508 | message: res.message, |
| 509 | return false; | 509 | type: "warning", |
| 510 | } | 510 | }); |
| 511 | }); | 511 | } |
| 512 | }) | ||
| 513 | .catch((error) => {}); | ||
| 512 | 514 | ||
| 513 | }, | 515 | }, |
| 514 | //提交宗地基本信息 | 516 | //提交宗地基本信息 | ... | ... |
-
Please register or sign in to post a comment