Commit 62370d45a50726d048be582d2c7f26a2dee06503
Merge branch 'minhang' of http://192.168.168.201:8888/panzhaov5/bsth_control into minhang
Showing
2 changed files
with
12 additions
and
0 deletions
src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/edit.html
| @@ -96,12 +96,18 @@ | @@ -96,12 +96,18 @@ | ||
| 96 | <div class="col-md-3"> | 96 | <div class="col-md-3"> |
| 97 | <input type="text" class="form-control" | 97 | <input type="text" class="form-control" |
| 98 | name="newDeviceNo" ng-model="ctrl.deviceInfoForSave.newDeviceNo" | 98 | name="newDeviceNo" ng-model="ctrl.deviceInfoForSave.newDeviceNo" |
| 99 | + remote-Validation | ||
| 100 | + remotevtype="cars_sbbh" | ||
| 101 | + remotevparam="{{ {'id_eq': null, 'equipmentCode_eq': ctrl.deviceInfoForSave.newDeviceNo} | json}}" | ||
| 99 | required placeholder="请输入新终端号"/> | 102 | required placeholder="请输入新终端号"/> |
| 100 | </div> | 103 | </div> |
| 101 | <!-- 隐藏块,显示验证信息 --> | 104 | <!-- 隐藏块,显示验证信息 --> |
| 102 | <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.required"> | 105 | <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.required"> |
| 103 | 新终端号必须填写 | 106 | 新终端号必须填写 |
| 104 | </div> | 107 | </div> |
| 108 | + <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.remote"> | ||
| 109 | + {{$remote_msg}} | ||
| 110 | + </div> | ||
| 105 | </div> | 111 | </div> |
| 106 | 112 | ||
| 107 | <div class="form-group"> | 113 | <div class="form-group"> |
src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/form.html
| @@ -96,12 +96,18 @@ | @@ -96,12 +96,18 @@ | ||
| 96 | <div class="col-md-3"> | 96 | <div class="col-md-3"> |
| 97 | <input type="text" class="form-control" | 97 | <input type="text" class="form-control" |
| 98 | name="newDeviceNo" ng-model="ctrl.deviceInfoForSave.newDeviceNo" | 98 | name="newDeviceNo" ng-model="ctrl.deviceInfoForSave.newDeviceNo" |
| 99 | + remote-Validation | ||
| 100 | + remotevtype="cars_sbbh" | ||
| 101 | + remotevparam="{{ {'id_eq': null, 'equipmentCode_eq': ctrl.deviceInfoForSave.newDeviceNo} | json}}" | ||
| 99 | required placeholder="请输入新终端号"/> | 102 | required placeholder="请输入新终端号"/> |
| 100 | </div> | 103 | </div> |
| 101 | <!-- 隐藏块,显示验证信息 --> | 104 | <!-- 隐藏块,显示验证信息 --> |
| 102 | <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.required"> | 105 | <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.required"> |
| 103 | 新终端号必须填写 | 106 | 新终端号必须填写 |
| 104 | </div> | 107 | </div> |
| 108 | + <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.remote"> | ||
| 109 | + {{$remote_msg}} | ||
| 110 | + </div> | ||
| 105 | </div> | 111 | </div> |
| 106 | 112 | ||
| 107 | <div class="form-group"> | 113 | <div class="form-group"> |