Commit 33038a9b53c6c6977e4ab347723c3d413af9a926

Authored by 徐烜
1 parent fd5ae600

Update

src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/edit.html
... ... @@ -96,12 +96,18 @@
96 96 <div class="col-md-3">
97 97 <input type="text" class="form-control"
98 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 102 required placeholder="请输入新终端号"/>
100 103 </div>
101 104 <!-- 隐藏块,显示验证信息 -->
102 105 <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.required">
103 106 新终端号必须填写
104 107 </div>
  108 + <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.remote">
  109 + {{$remote_msg}}
  110 + </div>
105 111 </div>
106 112  
107 113 <div class="form-group">
... ...
src/main/resources/static/pages/scheduleApp/module/basicInfo/deviceInfoManage/form.html
... ... @@ -96,12 +96,18 @@
96 96 <div class="col-md-3">
97 97 <input type="text" class="form-control"
98 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 102 required placeholder="请输入新终端号"/>
100 103 </div>
101 104 <!-- 隐藏块,显示验证信息 -->
102 105 <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.required">
103 106 新终端号必须填写
104 107 </div>
  108 + <div class="alert alert-danger well-sm" ng-show="myForm.newDeviceNo.$error.remote">
  109 + {{$remote_msg}}
  110 + </div>
105 111 </div>
106 112  
107 113 <div class="form-group">
... ...