Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/supplyroomtype/supplyRoomTypeForm.js =================================================================== diff -u -r40745 -r40756 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/supplyroomtype/supplyRoomTypeForm.js (.../supplyRoomTypeForm.js) (revision 40745) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/supplyroomtype/supplyRoomTypeForm.js (.../supplyRoomTypeForm.js) (revision 40756) @@ -2032,6 +2032,10 @@ columnWidth: .25, hidden: !sstsConfig.enablePeriodicLoginPasswordChange, items: [{ + xtype:'hidden', + id:'hiddenUserPasswordResetCycle', + name:'hiddenUserPasswordResetCycle' + },{ xtype: 'numberfield', fieldLabel: '密码重置周期(天)', id: 'userPasswordResetCycle', @@ -4580,11 +4584,17 @@ text: '保存', handler: function () { if (sstsConfig.enablePeriodicLoginPasswordChange) { - top.Ext.Msg.confirm('请确认', '修改后,密码重置周期将会重新计算,是否继续?', function (btn) { - if (btn == 'yes') { - saveSupplyRoomCongfig(); - } - }) + var hiddenUserPasswordResetCycle = Ext.getCmp('hiddenUserPasswordResetCycle').getValue(); + var userPasswordResetCycle = Ext.getCmp('userPasswordResetCycle').getValue(); + if(hiddenUserPasswordResetCycle !== userPasswordResetCycle){ + top.Ext.Msg.confirm('请确认', '修改后,密码重置周期将会重新计算,是否继续?', function (btn) { + if (btn == 'yes') { + saveSupplyRoomCongfig(); + } + }) + }else { + saveSupplyRoomCongfig(); + } } else { saveSupplyRoomCongfig(); } @@ -4909,7 +4919,8 @@ //QYSRMYY-76:密码重置周期(天) if (sstsConfig.enablePeriodicLoginPasswordChange) { - Ext.getCmp("userPasswordResetCycle").setValue(supplyRoomConfig.userPasswordResetCycle); + Ext.getCmp("userPasswordResetCycle").setValue(supplyRoomConfig.userPasswordResetCycle || ''); + Ext.getCmp("hiddenUserPasswordResetCycle").setValue(supplyRoomConfig.hiddenUserPasswordResetCycle || ''); } //ZSWY-233:借物单弹窗提醒