/*! cld2 2020-07-21 */ var mobile2InfoTimeout=null,searchCuringTimeout=null,mobile="",getClentListTimeout=null,clientname="",columnLength=10;function getClentList(){isExistence(clientname)?$.ajax({cache:!1,type:"GET",url:"/contacts/client/ajax/getClentList",data:{clientname:encodeURI(clientname)},dataType:"json",async:!1,success:function(e){if(1==e.status){var a=buildClientBySearch(e.list);$("div[searchClient] curingClient").html(a)}else console.log(e.msg)},error:function(e,a){console.log("Ajax error!")}}):console.log("参数错误")}function upCuring(e,a,i){$("#name").val(e),$("#_id").val(a);var t="为用户 "+$("#curingMobile").val()+","+i+" 升级 "+e+"";$("div[upCuring] span").html(t)}function refreshCuringPagination(e,a){$.ajax({cache:!1,type:"get",url:"/cloud/curing/ajax/getCuringPage/"+a+e,dataType:"json",success:function(e){1==e.status?(fnStructureCuringUser(e.curingList),fnPage(e.pageData),refreshColumn(columnLength)):alert(e.msg)}})}function refreshCuringPage(e,a,i,t,l){$.ajax({cache:!1,type:"get",url:"/cloud/curing/ajax/refreshCuringPage?sortField="+i+"&sort="+t+"&compilation="+e+"&latestCompilation="+a+"&wd="+l,dataType:"json",success:function(e){1==e.status?(fnStructureCuringUser(e.curingList),fnPage(e.pageData),refreshColumn(columnLength)):alert(e.msg)}})}function fnMobile2Info(){mobile2InfoTimeout=null,refreshCuringPage("","","","",mobile)}function refreshCuringPageDetail(e,a){$.ajax({cache:!1,type:"GET",url:"/cloud/curing/ajax/getCuringBySsoid",data:{ssoid:encodeURI(e),client_id:encodeURI(a)},dataType:"json",success:function(e){if(1==e.status||2==e.status){var a=buildCuringInfo(e.detail.userInfo);$("div[curingInfo] curing").html(a),$("div[curingInfo] curingClient").html("");var i=relevanceClient(e.detail.clientInfo);$("div[curingInfo] curingClient").html(i);var t=buildCuringCompilation(e);$("tbody[upMajorBox]").html(t);var l=buildCuringOnlineTimes(e.detail.userInfo.online_list);$("tbody[onlineTimes]").html(l),$("#curingSsoid").val(e.detail.userInfo.ssoIdKey),$("#curingMobile").val(e.detail.userInfo.mobile),$("#client_id").val(e.detail.clientInfo.cidKey);var n=buildCuringOperateLog(e.detail.operateLog);$("div[operateLog] curingOperate").html(n),setTimeout(autoHeight,400),$("#detail").modal("show")}else 3==e.status&&alert(e.msg)},error:function(e,a){console.log("Ajax error!")}})}function init(){refreshColumn(columnLength)}function fnStructureCuringUser(e){var i="";$.each(e,function(e,a){i+='
@'+a.username+" "+a.operation+'
'+a.createDate+"