|
@@ -148,7 +148,7 @@ function getClentList(){
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
-
|
|
|
+//------用户列表界面相关----------
|
|
|
/**
|
|
|
* 动态绑定养护用户列表 打开用户详情页面事件
|
|
|
* ssoid
|
|
@@ -205,8 +205,73 @@ $(function() {
|
|
|
|
|
|
});
|
|
|
|
|
|
+ /**
|
|
|
+ * 绑定分页-点击事件-刷新用户列表和分页列表
|
|
|
+ * parameter 传递参数
|
|
|
+ * currentPage
|
|
|
+ */
|
|
|
+ $('div[pageDetail]').delegate( 'a','click', function(){
|
|
|
+ // 只获取第一个选中的值
|
|
|
+ var parameter = $(this).attr('parameter');
|
|
|
+ var currentPage = $(this).attr('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);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 编办下拉选择
|
|
|
+ */
|
|
|
+ $('select[curingByCompilation]').on('change', function(e){
|
|
|
+ var compilation=$(this).val();
|
|
|
+ var latestCompilation=$('select[curingByLatestCompilation]').val();
|
|
|
+ curingByCompilation(compilation,latestCompilation);
|
|
|
+ });
|
|
|
+ $('select[curingByLatestCompilation]').on('change', function(e){
|
|
|
+ var latestCompilation=$(this).val();
|
|
|
+ var compilation=$('select[curingByCompilation]').val();
|
|
|
+ curingByCompilation(compilation,latestCompilation);
|
|
|
+ });
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户列表排序相关
|
|
|
+ */
|
|
|
+ $('input[type=radio][name=sortField]').on('change', function(e){
|
|
|
+ var sortField=$(this).attr('data');
|
|
|
+ var latestCompilation=$('select[curingByLatestCompilation]').val();
|
|
|
+ var compilation=$('select[curingByCompilation]').val();
|
|
|
+ console.log(sortField);
|
|
|
+ $.ajax({
|
|
|
+ cache :false,
|
|
|
+ type: 'get',
|
|
|
+ url: '/cloud/curing/ajax/refreshCuringPage?sortField='+sortField+'&compilation='+compilation+'&latestCompilation='+latestCompilation,
|
|
|
+ dataType: 'json',
|
|
|
+ success: function(data) {
|
|
|
+ if (data.status == 1) {
|
|
|
+ fnStructureCuringUser(data.curingList);
|
|
|
+ fnPage(data.pageData);
|
|
|
+ } else {
|
|
|
+ alert(data.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
//动态绑定 移除CLD客户事件
|
|
|
$('button[relieveClientDo]').on('click', function(e){
|
|
|
//$('div[curinginfo]').delegate( 'a[relieveClientDo]','click', function(){
|
|
@@ -291,28 +356,7 @@ $(function() {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
- //动态绑定分页事件
|
|
|
- $('div[pageDetail]').delegate( 'a','click', function(){
|
|
|
- // 只获取第一个选中的值
|
|
|
- var parameter = $(this).attr('parameter');
|
|
|
- var currentPage = $(this).attr('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);
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- });
|
|
|
+
|
|
|
|
|
|
//升级用户产品信息
|
|
|
$('button[upCuringDo]').on('click', function(e){
|
|
@@ -406,19 +450,7 @@ $(function() {
|
|
|
});
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 编办下拉选择
|
|
|
- */
|
|
|
- $('select[curingByCompilation]').on('change', function(e){
|
|
|
- var compilation=$(this).val();
|
|
|
- var latestCompilation=$('select[curingByLatestCompilation]').val();
|
|
|
- curingByCompilation(compilation,latestCompilation);
|
|
|
- });
|
|
|
- $('select[curingByLatestCompilation]').on('change', function(e){
|
|
|
- var latestCompilation=$(this).val();
|
|
|
- var compilation=$('select[curingByCompilation]').val();
|
|
|
- curingByCompilation(compilation,latestCompilation);
|
|
|
- });
|
|
|
+
|
|
|
|
|
|
|
|
|
|