fix():去掉表单验证错误代码
Showing
1 changed file
with
9 additions
and
7 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,10 +482,17 @@ export default { | ... | @@ -482,10 +482,17 @@ 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 | /* this.$refs['ruleForm'].validate((valid) => { | ||
| 486 | debugger | 487 | debugger |
| 487 | if (valid) { | 488 | if (valid) { |
| 488 | alert('submit!'); | 489 | alert('submit!'); |
| 490 | |||
| 491 | } else { | ||
| 492 | alert("error submit") | ||
| 493 | return false; | ||
| 494 | } | ||
| 495 | });*/ | ||
| 489 | updateQjZdjbxx(this.formData) | 496 | updateQjZdjbxx(this.formData) |
| 490 | .then((res) => { | 497 | .then((res) => { |
| 491 | if (res.code == 200) { | 498 | if (res.code == 200) { |
| ... | @@ -504,11 +511,6 @@ export default { | ... | @@ -504,11 +511,6 @@ export default { |
| 504 | } | 511 | } |
| 505 | }) | 512 | }) |
| 506 | .catch((error) => {}); | 513 | .catch((error) => {}); |
| 507 | } else { | ||
| 508 | alert("error submit") | ||
| 509 | return false; | ||
| 510 | } | ||
| 511 | }); | ||
| 512 | 514 | ||
| 513 | }, | 515 | }, |
| 514 | //提交宗地基本信息 | 516 | //提交宗地基本信息 | ... | ... |
-
Please register or sign in to post a comment