|
@@ -30,7 +30,7 @@
|
|
<td colspan="5" ng-class="{ 'focused error' : this.editForm.score.$invalid && this.editForm.$submitted}">
|
|
<td colspan="5" ng-class="{ 'focused error' : this.editForm.score.$invalid && this.editForm.$submitted}">
|
|
<input name="score" class="form-control"
|
|
<input name="score" class="form-control"
|
|
ng-required="true" type="number" ng-pattern="/^[0-9]+(.[0-9]{2})?$/" step="0.01"
|
|
ng-required="true" type="number" ng-pattern="/^[0-9]+(.[0-9]{2})?$/" step="0.01"
|
|
- ng-model="dataModel.score"/>
|
|
|
|
|
|
+ ng-model="dataModel.score" ng-disabled="!isView"/>
|
|
<label ng-show="this.editForm.score.$invalid && this.editForm.$submitted"
|
|
<label ng-show="this.editForm.score.$invalid && this.editForm.$submitted"
|
|
class="error">请输入正确评分.</label>
|
|
class="error">请输入正确评分.</label>
|
|
</td>
|
|
</td>
|
|
@@ -44,7 +44,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="table-tool">
|
|
<div class="table-tool">
|
|
<button type="button" class="btn btn-primary dropdown-toggle"
|
|
<button type="button" class="btn btn-primary dropdown-toggle"
|
|
- title="添加" ng-if="isVew"
|
|
|
|
|
|
+ title="添加" ng-if="isView"
|
|
ng-click="addQuestion()">
|
|
ng-click="addQuestion()">
|
|
添加
|
|
添加
|
|
</button>
|
|
</button>
|
|
@@ -56,7 +56,7 @@
|
|
<th class="text-center" style="width: 100px;">序号</th>
|
|
<th class="text-center" style="width: 100px;">序号</th>
|
|
<th>问题名称</th>
|
|
<th>问题名称</th>
|
|
<th>问题描述</th>
|
|
<th>问题描述</th>
|
|
- <th ng-if="isVew">操作</th>
|
|
|
|
|
|
+ <th ng-if="isView">操作</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|