Commit e319593ac0bed1f890d3775f36d1b41fffbfaa22

Authored by 徐烜
1 parent 342013ad

update

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