curingFN.js 1.8 KB

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