caipin 5 gadi atpakaļ
vecāks
revīzija
4434cbc4ff
2 mainītis faili ar 39 papildinājumiem un 15 dzēšanām
  1. 15 15
      global/js/cloud/curing.js
  2. 24 0
      global/js/cloud/curingFN.js

+ 15 - 15
global/js/cloud/curing.js

@@ -101,20 +101,7 @@ $(function() {
         $('button[closeRefresh]').attr('currentPage',currentPage);
         $('button[closeRefresh]').attr('parameter',parameter);
         
-        $.ajax({
-            cache :false,
-            type: 'get',
-            url: '/cloud/curing/ajax/getCuringPage/'+currentPage+parameter,
-            dataType: 'json',
-            success: function(data) {
-                if (data.status == 1) {
-                    fnStructureCuringUser(data.curingList);
-                    fnPage(data.pageData);
-                } else {
-                    alert(data.msg);
-                }
-            }
-        })
+        refreshCuringPagination(parameter,currentPage);
     });
 	
     /**
@@ -270,7 +257,20 @@ $(function() {
 
     });
 
-    
+    /**
+     * 关闭详情页--刷新用户列表
+     */
+    $('button[closeRefresh]').on('click', function(e){
+        // 只获取第一个选中的值
+        
+        var currentPage=$('button[closeRefresh]').attr('currentPage');
+        var parameter=$('button[closeRefresh]').attr('parameter');
+        if(mobile==''){
+        	currentPage=1;
+        }
+        refreshCuringPagination(parameter,currentPage);
+        
+    });
 
     
     

+ 24 - 0
global/js/cloud/curingFN.js

@@ -1,3 +1,27 @@
+
+/**
+ * 分页列表--刷新用户列表
+ * @param parameter
+ * @param currentPage
+ * @returns
+ */
+function refreshCuringPagination(parameter,currentPage){
+	$.ajax({
+        cache :false,
+        type: 'get',
+        url: '/cloud/curing/ajax/getCuringPage/'+currentPage+parameter,
+        dataType: 'json',
+        success: function(data) {
+            if (data.status == 1) {
+                fnStructureCuringUser(data.curingList);
+                fnPage(data.pageData);
+            } else {
+                alert(data.msg);
+            }
+        }
+    })
+}
+
 /**
  * 筛选-统一请求--刷新用户列表
  * @returns