curingFN.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * 筛选-统一请求--刷新用户列表
  3. * @returns
  4. */
  5. function refreshCuringPage(compilation,latestCompilation,sortField,sort){
  6. $.ajax({
  7. cache :false,
  8. type: 'get',
  9. url: '/cloud/curing/ajax/refreshCuringPage?sortField='+sortField+'&sort='+sort+'&compilation='+compilation+'&latestCompilation='+latestCompilation,
  10. dataType: 'json',
  11. success: function(data) {
  12. if (data.status == 1) {
  13. fnStructureCuringUser(data.curingList);
  14. fnPage(data.pageData);
  15. } else {
  16. alert(data.msg);
  17. }
  18. }
  19. })
  20. }
  21. //列表 手机号码检索功能
  22. /**
  23. * 通行证账号检索用户--刷新列表和分页
  24. * @returns
  25. */
  26. function fnMobile2Info(){
  27. mobile2InfoTimeout = null;
  28. if((/^1[34578]\d{9}$/.test(mobile))) {
  29. $.ajax({
  30. cache :false,
  31. type: 'GET',
  32. url: '/cloud/curing/ajax/curingInfo/' + mobile,
  33. //data: { mobile: mobile },
  34. dataType: 'json',
  35. context: $('body'),
  36. success: function (data) {
  37. if (data.status == 1) {
  38. fnStructureCuringUser([data.detail]);
  39. $('div[pageDetail]').hide();
  40. }
  41. // else if (data.status == 2) {
  42. // $('div[curingListBox]').hide();
  43. // $('p[upClientBox]').show();
  44. // $('b[curingMobile]').html(mobile);
  45. // }
  46. else if (data.status == 3) {
  47. alert(data.msg);
  48. }
  49. },
  50. error: function (xhr, type) {
  51. console.log('Ajax error!')
  52. }
  53. })
  54. }
  55. }