Prechádzať zdrojové kódy

fix: 党建工作考核评分设置只读状态

zhangying 1 týždeň pred
rodič
commit
288df4b864

+ 3 - 3
src/main/resources/static/app/main/party/checkScore/edit.html

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