Commit d5ae91b6a807376c1ad79323e859c000cd6d39f9
1 parent
200f421c
1、修改车辆基础信息页面,form.html和edit.html,添加是否氢能源车的required判定
Showing
2 changed files
with
12 additions
and
4 deletions
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/edit.html
| ... | ... | @@ -458,7 +458,11 @@ |
| 458 | 458 | <div class="form-group"> |
| 459 | 459 | <label class="col-md-2 control-label">是否氢能源车:</label> |
| 460 | 460 | <div class="col-md-3"> |
| 461 | - <sa-Radiogroup model="ctrl.busInfoForSave.hydrogen" dicgroup="truefalseType" name="hydrogen"></sa-Radiogroup> | |
| 461 | + <sa-Radiogroup model="ctrl.busInfoForSave.hydrogen" dicgroup="truefalseType" name="hydrogen" required></sa-Radiogroup> | |
| 462 | + </div> | |
| 463 | + <!-- 隐藏快,显示验证信息 --> | |
| 464 | + <div class="alert alert-danger well-sm" ng-show="myForm.hydrogen.$error.required"> | |
| 465 | + 是否氢能源车必须选择 | |
| 462 | 466 | </div> |
| 463 | 467 | </div> |
| 464 | 468 | |
| ... | ... | @@ -488,4 +492,4 @@ |
| 488 | 492 | |
| 489 | 493 | </div> |
| 490 | 494 | |
| 491 | -</div> | |
| 492 | 495 | \ No newline at end of file |
| 496 | +</div> | ... | ... |
src/main/resources/static/pages/scheduleApp/module/basicInfo/busInfoManage/form.html
| ... | ... | @@ -450,7 +450,11 @@ |
| 450 | 450 | <div class="form-group"> |
| 451 | 451 | <label class="col-md-2 control-label">是否氢能源车:</label> |
| 452 | 452 | <div class="col-md-3"> |
| 453 | - <sa-Radiogroup model="ctrl.busInfoForSave.hydrogen" dicgroup="truefalseType" name="hydrogen"></sa-Radiogroup> | |
| 453 | + <sa-Radiogroup model="ctrl.busInfoForSave.hydrogen" dicgroup="truefalseType" name="hydrogen" required></sa-Radiogroup> | |
| 454 | + </div> | |
| 455 | + <!-- 隐藏快,显示验证信息 --> | |
| 456 | + <div class="alert alert-danger well-sm" ng-show="myForm.hydrogen.$error.required"> | |
| 457 | + 是否氢能源车必须选择 | |
| 454 | 458 | </div> |
| 455 | 459 | </div> |
| 456 | 460 | |
| ... | ... | @@ -481,4 +485,4 @@ |
| 481 | 485 | </div> |
| 482 | 486 | |
| 483 | 487 | |
| 484 | -</div> | |
| 485 | 488 | \ No newline at end of file |
| 489 | +</div> | ... | ... |