|
@@ -51,18 +51,22 @@
|
|
|
autocomplete="off" autoclose="true"
|
|
|
data-date-format="yyyy-MM-dd" data-date-type="date"
|
|
|
ng-model="dataModel.beginDate"
|
|
|
- ng-required="true"
|
|
|
+ ng-required="true" ng-change="getDateDiffDay()"
|
|
|
placeholder="" bs-datepicker/>
|
|
|
~
|
|
|
<input style="width: 90px;display: inline;" name="endDate" class="form-control"
|
|
|
autocomplete="off" autoclose="true"
|
|
|
data-date-format="yyyy-MM-dd" data-date-type="date"
|
|
|
ng-model="dataModel.endDate"
|
|
|
- ng-required="true"
|
|
|
+ ng-required="true" ng-change="getDateDiffDay()"
|
|
|
placeholder="" bs-datepicker/>
|
|
|
<span ng-show="(this.trainingClassForm.beginDate.$invalid || this.trainingClassForm.endDate.$invalid) && this.trainingClassForm.$submitted"
|
|
|
class="error">必填.</span>
|
|
|
</td>
|
|
|
+ <th>培训天数</th>
|
|
|
+ <td>{{dataModel.dateDiffDay}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
<th>录入组织<span style="color: red;">*</span></th>
|
|
|
<td ng-class="{ 'has-error' : this.trainingClassForm.dzzmc.$invalid && this.trainingClassForm.$submitted}">
|
|
|
<div class="input-group input-group-search"
|
|
@@ -76,10 +80,8 @@
|
|
|
<span ng-show="this.trainingClassForm.dzzmc.$invalid && this.trainingClassForm.$submitted"
|
|
|
class="error">必填.</span>
|
|
|
</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
<th>培训详情地址</th>
|
|
|
- <td colspan="5"
|
|
|
+ <td colspan="3"
|
|
|
ng-class="{ 'has-error' : this.trainingClassForm.address.$invalid && this.trainingClassForm.$submitted}">
|
|
|
<div class="form-group" style="margin-bottom: 4px;margin-top: 5px;">
|
|
|
<div class="form-line select-group" style="padding-bottom: 1px;">
|
|
@@ -89,7 +91,7 @@
|
|
|
name="addressSelect">
|
|
|
</select>
|
|
|
</div>
|
|
|
- <div class="form-line" style="width: 98%;margin-top: -29px;z-index: 9;"
|
|
|
+ <div class="form-line" style="width: 97%;margin-top: -29px;z-index: 9;"
|
|
|
ng-class="{ 'focused error' : this.trainingClassForm.address.$invalid && this.trainingClassForm.$submitted}">
|
|
|
<input type="text" name="address"
|
|
|
ng-model="dataModel.address"
|