1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /**
- * 筛选-统一请求--刷新用户列表
- * @returns
- */
- function refreshCuringPage(compilation,latestCompilation,sortField,sort){
- $.ajax({
- cache :false,
- type: 'get',
- url: '/cloud/curing/ajax/refreshCuringPage?sortField='+sortField+'&sort='+sort+'&compilation='+compilation+'&latestCompilation='+latestCompilation,
- dataType: 'json',
- success: function(data) {
- if (data.status == 1) {
- fnStructureCuringUser(data.curingList);
- fnPage(data.pageData);
- } else {
- alert(data.msg);
- }
- }
- })
-
- }
- //列表 手机号码检索功能
- /**
- * 通行证账号检索用户--刷新列表和分页
- * @returns
- */
- function fnMobile2Info(){
- mobile2InfoTimeout = null;
- if((/^1[34578]\d{9}$/.test(mobile))) {
- $.ajax({
- cache :false,
- type: 'GET',
- url: '/cloud/curing/ajax/curingInfo/' + mobile,
- //data: { mobile: mobile },
- dataType: 'json',
- context: $('body'),
- success: function (data) {
- if (data.status == 1) {
- fnStructureCuringUser([data.detail]);
- $('div[pageDetail]').hide();
- }
- // else if (data.status == 2) {
- // $('div[curingListBox]').hide();
- // $('p[upClientBox]').show();
- // $('b[curingMobile]').html(mobile);
- // }
- else if (data.status == 3) {
- alert(data.msg);
- }
- },
- error: function (xhr, type) {
- console.log('Ajax error!')
- }
- })
- }
- }
|