|
@@ -11,31 +11,6 @@ var columnLength=8;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-function fnSearchCuring(){
|
|
|
|
- searchCuringTimeout = null;
|
|
|
|
- if((/^1[34578]\d{9}$/.test(mobile))){
|
|
|
|
- $.ajax({
|
|
|
|
- cache :false,
|
|
|
|
- type: 'GET',
|
|
|
|
- url: '/cloud/curing/ajax/checkMobile/'+mobile,
|
|
|
|
- //data: { mobile: mobile },
|
|
|
|
- dataType: 'json',
|
|
|
|
-
|
|
|
|
- context: $('body'),
|
|
|
|
- success: function(data){
|
|
|
|
- if(data.status==1||data.status==2){
|
|
|
|
- fnGetCuringDetail(data.data.id,data.data.client_id);
|
|
|
|
- }else if(data.status==3){
|
|
|
|
- $('div[upCuringBox]').hide();
|
|
|
|
- $('p[upCuringBox]').show();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- error: function(xhr, type){
|
|
|
|
- console.log('Ajax error!')
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -181,16 +156,7 @@ $(function() {
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-// $('tbody[curingUser]').delegate( 'tr','mouseup', function(){
|
|
|
|
-// // 只获取第一个选中的值
|
|
|
|
-// var ssoid = $(this).attr('data');
|
|
|
|
-// var client_id=$(this).attr('dataCid')
|
|
|
|
-// $(this).attr('data-toggle',' ');
|
|
|
|
-//
|
|
|
|
-// refreshCuringPageDetail(ssoid,client_id);
|
|
|
|
-//
|
|
|
|
-// });
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -299,15 +265,12 @@ $(function() {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
});
|
|
});
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- //检索cld用户
|
|
|
|
|
|
+ //
|
|
|
|
+ /**
|
|
|
|
+ * 检索cld用户
|
|
|
|
+ */
|
|
$('input[getClentList]').on('keyup', function(e){
|
|
$('input[getClentList]').on('keyup', function(e){
|
|
if(getClentListTimeout != null){
|
|
if(getClentListTimeout != null){
|
|
clearTimeout(getClentListTimeout);
|
|
clearTimeout(getClentListTimeout);
|
|
@@ -337,51 +300,8 @@ $(function() {
|
|
fnMobile2Info();
|
|
fnMobile2Info();
|
|
});
|
|
});
|
|
|
|
|
|
- $('input[fnSearchCuring]').on('keyup', function(e){
|
|
|
|
- if(searchCuringTimeout != null){
|
|
|
|
- clearTimeout(searchCuringTimeout);
|
|
|
|
- }
|
|
|
|
- mobile=$(this).val();
|
|
|
|
- if((/^1[34578]\d{9}$/.test(mobile))) {
|
|
|
|
- searchCuringTimeout = setTimeout(fnSearchCuring, 500);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- $('a[upNewClient]').on('click', function(e){
|
|
|
|
- $('input[fnsearchcuring]').val('');
|
|
|
|
- $('div[upCuringBox]').hide();
|
|
|
|
- $('p[upCuringBox]').hide();
|
|
|
|
-
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- $('a[upClient]').on('click', function(e){
|
|
|
|
- var mobile=$('b[curingMobile]').html();
|
|
|
|
- if(mobile==''){
|
|
|
|
- alert('参数错误');
|
|
|
|
- }
|
|
|
|
- $.ajax({
|
|
|
|
- cache :false,
|
|
|
|
- type: 'GET',
|
|
|
|
- url: '/cloud/curing/ajax/checkMobile/'+mobile,
|
|
|
|
- //data: { mobile: mobile },
|
|
|
|
- dataType: 'json',
|
|
|
|
-
|
|
|
|
- success: function(data){
|
|
|
|
- if(data.status==1||data.status==2){
|
|
|
|
- $('input[fnsearchcuring]').val(mobile);
|
|
|
|
- fnGetCuringDetail(data.data.id,data.data.client_id);
|
|
|
|
- }else if(data.status==3){
|
|
|
|
- $('div[upCuringBox]').hide();
|
|
|
|
- $('p[upCuringBox]').show();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- error: function(xhr, type){
|
|
|
|
- console.log('Ajax error!')
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -390,48 +310,3 @@ $(function() {
|
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-//构建升级用户信息--预计废弃
|
|
|
|
-function fnGetCuringDetail(ssoid,client_id){
|
|
|
|
-
|
|
|
|
- $('tbody[upMajorBox]').html('');
|
|
|
|
- $('#curingSsoid').val('');
|
|
|
|
- $('#curingMobile').val('');
|
|
|
|
- $('#client_id').val('');
|
|
|
|
- $('#name').val('');
|
|
|
|
- $('#_id').val('');
|
|
|
|
- $.ajax({
|
|
|
|
- cache :false,
|
|
|
|
- type: 'GET',
|
|
|
|
- url: '/cloud/curing/ajax/getCuringBySsoid',
|
|
|
|
- data: {ssoid: ssoid, client_id: client_id},
|
|
|
|
- dataType: 'json',
|
|
|
|
- context: $('body'),
|
|
|
|
- success: function(data){
|
|
|
|
- if(data.status==1||data.status==2){
|
|
|
|
- $('div[upCuringBox]').show();
|
|
|
|
- $('p[upCuringBox]').hide();
|
|
|
|
-
|
|
|
|
- var objHtml=buildCuringInfo(data.detail.userInfo);
|
|
|
|
- $('div[curingInfo] curing').html(objHtml);
|
|
|
|
-
|
|
|
|
- var upMajorBoxHtml=buildCuringCompilation(data);
|
|
|
|
- $('tbody[upMajorBox]').html(upMajorBoxHtml);
|
|
|
|
-
|
|
|
|
- var operateLogHtml=buildCuringOperateLog(data.detail.operateLog);
|
|
|
|
- $('div[operateLog] curingOperate').html(operateLogHtml);
|
|
|
|
-
|
|
|
|
- }else if(data.status==3){
|
|
|
|
- $('div[upCuringBox]').hide();
|
|
|
|
- $('p[upCuringBox]').show();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- error: function(xhr, type){
|
|
|
|
- console.log('Ajax error!')
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
-}
|
|
|