Commit aa264c2d4dfd35dfd9909c38c7d334c5ddb759a7
1 parent
62404617
修复批量修改问题所在,使用!!this[key]判定属性是否有效,this[key] != undefined是有问题的
Showing
2 changed files
with
3 additions
and
12 deletions
src/main/resources/static/pages/scheduleApp/module/core/ttInfoManage/detailedit/edit3.html
| ... | ... | @@ -99,20 +99,11 @@ |
| 99 | 99 | 批量选择 |
| 100 | 100 | </a> |
| 101 | 101 | |
| 102 | - <style type="text/css"> | |
| 103 | - .not-active { | |
| 104 | - pointer-events: none; | |
| 105 | - cursor: default; | |
| 106 | - text-decoration: none; | |
| 107 | - color: black; | |
| 108 | - } | |
| 109 | - </style> | |
| 110 | - | |
| 111 | - <a href="javascript:" class="not-active" style="padding-right: 5px;" | |
| 102 | + <a href="javascript:" style="padding-right: 5px;" | |
| 112 | 103 | ng-click="ctrl.editInfos()" |
| 113 | 104 | ng-show="ctrl.currentView.btn2"> |
| 114 | 105 | <i class="fa fa-pencil-square-o"></i> |
| 115 | - <del>批量修改</del> | |
| 106 | + 批量修改 | |
| 116 | 107 | </a> |
| 117 | 108 | |
| 118 | 109 | <a sweetalert | ... | ... |
src/main/resources/static/pages/scheduleApp/module/core/ttInfoManage/detailedit/timeTableDetailManage_old.js
| ... | ... | @@ -872,7 +872,7 @@ angular.module('ScheduleApp').controller( |
| 872 | 872 | reSetTTinfoDetail: function(value) { |
| 873 | 873 | for (var key in this) { |
| 874 | 874 | if (!angular.isFunction(this[key])) { |
| 875 | - if (this[key] != undefined) { | |
| 875 | + if (!!this[key]) { | |
| 876 | 876 | value[key] = this[key]; |
| 877 | 877 | } |
| 878 | 878 | } | ... | ... |