user-edit.js 421 B

1234567891011121314151617181920212223
  1. $("#form-edit").validate({
  2. submitHandler : function(form) {
  3. edit();
  4. }
  5. });
  6. function edit() {
  7. var dataFormJson = $("#form-edit").serialize();
  8. $.ajax({
  9. cache : true,
  10. type : "POST",
  11. url : rootPath + "/UserVueController/edit",
  12. data : dataFormJson,
  13. async : false,
  14. error : function(request) {
  15. $.modal.alertError("系统错误");
  16. },
  17. success : function(data) {
  18. $.operate.saveSuccess(data);
  19. }
  20. });
  21. }