caipin 5 years atrás
parent
commit
86bc6de21e
3 changed files with 15 additions and 140 deletions
  1. 6 6
      app/cloudAjaxRouter.js
  2. 6 131
      global/js/cloud/build.js
  3. 3 3
      global/js/cloud/buildFN.js

+ 6 - 6
app/cloudAjaxRouter.js

@@ -49,11 +49,11 @@ router.post('/cloud/curing/ajax/upCuringDo', function(req, res, next) {
 /**
  * 编办筛选
  */
-router.get('/cloud/curing/ajax/refreshCuringPage', function(req, res, next) {
+router.get('/cloud/build/ajax/refreshCuringPage', function(req, res, next) {
 	cloudBuildAjaxController.refreshCuringPage(req, res);
 });
 //������ҳ
-router.get('/cloud/curing/ajax/getCuringPage/:currentPage', function(req, res, next) {
+router.get('/cloud/build/ajax/getCuringPage/:currentPage', function(req, res, next) {
 	cloudBuildAjaxController.refreshCuringPage(req, res);
 });
 
@@ -61,23 +61,23 @@ router.get('/cloud/curing/ajax/getCuringPage/:currentPage', function(req, res, n
 /**
  * 获得用户详情
  */
-router.get('/cloud/curing/ajax/getCuringBySsoid', function(req, res, next) {
+router.get('/cloud/build/ajax/getCuringBySsoid', function(req, res, next) {
 	cloudBuildAjaxController.getCuringBySsoid(req, res);
 });
 /**
  * 用户关联CLD客户
  */
-router.post('/cloud/curing/ajax/relevanceClientDo', function(req, res, next) {
+router.post('/cloud/build/ajax/relevanceClientDo', function(req, res, next) {
 	cloudBuildAjaxController.relevanceClientDo(req, res);
 });
 /**
  * 用户取消关联CLD客户
  */
-router.post('/cloud/curing/ajax/relieveClientDo', function(req, res, next) {
+router.post('/cloud/build/ajax/relieveClientDo', function(req, res, next) {
 	cloudBuildAjaxController.relieveClientDo(req, res);
 });
 //������д��CLD��������������Ʒ
-router.post('/cloud/curing/ajax/upCuringDo', function(req, res, next) {
+router.post('/cloud/build/ajax/upCuringDo', function(req, res, next) {
 	cloudBuildAjaxController.upCuringDo(req, res);
 });
 

+ 6 - 131
global/js/cloud/build.js

@@ -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){
         if(getClentListTimeout != null){
             clearTimeout(getClentListTimeout);
@@ -337,51 +300,8 @@ $(function() {
         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!')
-        }
-    })
-}

+ 3 - 3
global/js/cloud/buildFN.js

@@ -9,7 +9,7 @@ function refreshCuringPagination(parameter,currentPage){
 	$.ajax({
         cache :false,
         type: 'get',
-        url: '/cloud/curing/ajax/getCuringPage/'+currentPage+parameter,
+        url: '/cloud/build/ajax/getCuringPage/'+currentPage+parameter,
         dataType: 'json',
         success: function(data) {
             if (data.status == 1) {
@@ -31,7 +31,7 @@ function refreshCuringPage(compilation,latestCompilation,sortField,sort,wd){
 	$.ajax({
         cache :false,
         type: 'get',
-        url: '/cloud/curing/ajax/refreshCuringPage?sortField='+sortField+'&sort='+sort+'&compilation='+compilation+'&latestCompilation='+latestCompilation+
+        url: '/cloud/build/ajax/refreshCuringPage?sortField='+sortField+'&sort='+sort+'&compilation='+compilation+'&latestCompilation='+latestCompilation+
         	'&wd='+wd,
         dataType: 'json',
         success: function(data) {
@@ -68,7 +68,7 @@ function refreshCuringPageDetail(ssoid,client_id){
 	$.ajax({
         cache :false,
         type: 'GET',
-        url: '/cloud/curing/ajax/getCuringBySsoid',
+        url: '/cloud/build/ajax/getCuringBySsoid',
         data: {ssoid: encodeURI(ssoid),client_id:encodeURI(client_id)},
         dataType: 'json',
         success: function(data){