Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
2 changed files
with
11 additions
and
9 deletions
| ... | @@ -429,16 +429,18 @@ | ... | @@ -429,16 +429,18 @@ |
| 429 | ]; | 429 | ]; |
| 430 | let flag = true; | 430 | let flag = true; |
| 431 | this.rules.forEach(item=>{ | 431 | this.rules.forEach(item=>{ |
| 432 | if(!item.rule.test(+item.data) || item.data == null){ | 432 | if(item.data !==""){ |
| 433 | if(item.dom.$el){ | 433 | if(!item.rule.test(+item.data) || item.data == null){ |
| 434 | item.dom.$el.style.border = '1px solid red'; | 434 | if(item.dom.$el){ |
| 435 | item.dom.$el.style.boxSizing = 'border-box'; | 435 | item.dom.$el.style.border = '1px solid red'; |
| 436 | }else{ | 436 | item.dom.$el.style.boxSizing = 'border-box'; |
| 437 | item.dom.style.border = '1px solid red'; | 437 | }else{ |
| 438 | item.dom.style.boxSizing = 'border-box'; | 438 | item.dom.style.border = '1px solid red'; |
| 439 | item.dom.style.boxSizing = 'border-box'; | ||
| 440 | } | ||
| 441 | flag = false; | ||
| 442 | return false | ||
| 439 | } | 443 | } |
| 440 | flag = false; | ||
| 441 | return false | ||
| 442 | } | 444 | } |
| 443 | }) | 445 | }) |
| 444 | 446 | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment