自然幢表单校验完善
Showing
2 changed files
with
1 additions
and
7 deletions
... | @@ -429,7 +429,6 @@ export default { | ... | @@ -429,7 +429,6 @@ export default { |
429 | }, | 429 | }, |
430 | created() {}, | 430 | created() {}, |
431 | mounted(){ | 431 | mounted(){ |
432 | console.log(this.formData,'formData'); | ||
433 | }, | 432 | }, |
434 | methods: { | 433 | methods: { |
435 | startTime(index,childIndex){ | 434 | startTime(index,childIndex){ |
... | @@ -452,7 +451,6 @@ export default { | ... | @@ -452,7 +451,6 @@ export default { |
452 | } | 451 | } |
453 | }, | 452 | }, |
454 | sumTime(index,childIndex,syqx,e){ | 453 | sumTime(index,childIndex,syqx,e){ |
455 | console.log(e,'eeee'); | ||
456 | this.$refs.syqx.forEach((item,index)=>{ | 454 | this.$refs.syqx.forEach((item,index)=>{ |
457 | if(item.value == syqx){ | 455 | if(item.value == syqx){ |
458 | this.$refs.tdsyjssj[index].$el.style.border="" | 456 | this.$refs.tdsyjssj[index].$el.style.border="" |
... | @@ -567,13 +565,10 @@ export default { | ... | @@ -567,13 +565,10 @@ export default { |
567 | }); | 565 | }); |
568 | }, | 566 | }, |
569 | getQlxzDataList() { | 567 | getQlxzDataList() { |
570 | console.log(this.countList,'this.countList'); | ||
571 | return this.countList; | 568 | return this.countList; |
572 | }, | 569 | }, |
573 | getRules(){ | 570 | getRules(){ |
574 | let rules = []; | 571 | let rules = []; |
575 | console.log(this.$refs.tdsyqssj,'this.$refs.qlxzdm'); | ||
576 | console.log(this.countList,'this.countList'); | ||
577 | let temp = 0; | 572 | let temp = 0; |
578 | this.countList.forEach((item,index)=>{ | 573 | this.countList.forEach((item,index)=>{ |
579 | rules.push({ | 574 | rules.push({ | ... | ... |
... | @@ -519,7 +519,6 @@ | ... | @@ -519,7 +519,6 @@ |
519 | this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList(); | 519 | this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList(); |
520 | this.$refs.qlxzModule.getRules(); | 520 | this.$refs.qlxzModule.getRules(); |
521 | let flag = true; | 521 | let flag = true; |
522 | console.log(this.rules,'this.rules'); | ||
523 | this.rules.forEach(item=>{ | 522 | this.rules.forEach(item=>{ |
524 | if(item.rule.test(item.data) || item.data == null){ | 523 | if(item.rule.test(item.data) || item.data == null){ |
525 | if(item.dom.$el){ | 524 | if(item.dom.$el){ |
... | @@ -534,7 +533,7 @@ | ... | @@ -534,7 +533,7 @@ |
534 | } | 533 | } |
535 | }) | 534 | }) |
536 | this.$nextTick(()=>{ | 535 | this.$nextTick(()=>{ |
537 | if (flag) { | 536 | if (flag && this.$refs.qlxzModule.getRulesResult()) { |
538 | if(this.form.zrzh.substring(0,19) != this.form.zddm || this.form.bdcdyh.substring(0,19) != this.form.zddm){ | 537 | if(this.form.zrzh.substring(0,19) != this.form.zddm || this.form.bdcdyh.substring(0,19) != this.form.zddm){ |
539 | this.$message({ | 538 | this.$message({ |
540 | message: '自然幢号或不动产单元号有误,请核对后再试一次', | 539 | message: '自然幢号或不动产单元号有误,请核对后再试一次', | ... | ... |
-
Please register or sign in to post a comment