Commit e319593ac0bed1f890d3775f36d1b41fffbfaa22
1 parent
342013ad
update
Showing
1 changed file
with
5 additions
and
0 deletions
src/main/resources/static/pages/scheduleApp/module/core/employeeConfig/employeeConfig.js
| ... | ... | @@ -213,6 +213,11 @@ angular.module('ScheduleApp').controller('EmployeeConfigFormCtrl', ['EmployeeCon |
| 213 | 213 | self.submit = function() { |
| 214 | 214 | console.log(self.employeeConfigForSave); |
| 215 | 215 | |
| 216 | + // 如果自对象没id值,设置成null | |
| 217 | + if (!self.employeeConfigForSave.spy.id) { | |
| 218 | + self.employeeConfigForSave.spy = null; | |
| 219 | + } | |
| 220 | + | |
| 216 | 221 | employeeConfigService.saveDetail(self.employeeConfigForSave).then( |
| 217 | 222 | function(result) { |
| 218 | 223 | // TODO:弹出框方式以后改 | ... | ... |