|
@@ -36,55 +36,9 @@ function fnSearchCuring(){
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-//构建升级用户信息--预计废弃
|
|
|
-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!')
|
|
|
- }
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-//设置可升级用户信息
|
|
|
-function upCuring(name,_id,username){
|
|
|
- $('#name').val(name);
|
|
|
- $('#_id').val(_id);
|
|
|
- var curingMobile=$('#curingMobile').val();
|
|
|
- var html='为用户 <b>'+curingMobile+','+username+'</b> 升级 <b>'+name+'</b>';
|
|
|
- $('div[upCuring] span').html(html);
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
|
@@ -117,6 +71,20 @@ function getClentList(){
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 用户升级专业版 弹框提示--用户详情界面
|
|
|
+ * @param name
|
|
|
+ * @param _id
|
|
|
+ * @param username
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+function upCuring(name,_id,username){
|
|
|
+ $('#name').val(name);
|
|
|
+ $('#_id').val(_id);
|
|
|
+ var curingMobile=$('#curingMobile').val();
|
|
|
+ var html='为用户 <b>'+curingMobile+','+username+'</b> 升级 <b>'+name+'</b>';
|
|
|
+ $('div[upCuring] span').html(html);
|
|
|
+}
|
|
|
|
|
|
$(function() {
|
|
|
//------用户列表界面相关----------
|
|
@@ -210,6 +178,39 @@ $(function() {
|
|
|
|
|
|
});
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 确定升级专业版--用户详情界面
|
|
|
+ */
|
|
|
+ $('button[upCuringDo]').on('click', function(e){
|
|
|
+ // 只获取第一个选中的值
|
|
|
+ var compilationId = $('#_id').val();
|
|
|
+ var name = $('#name').val();
|
|
|
+ var curingSsoid = $('#curingSsoid').val();
|
|
|
+ var mobile = $('#curingMobile').val();
|
|
|
+ var client_id = $('#client_id').val();
|
|
|
+ if (curingSsoid != '' && compilationId != '') {
|
|
|
+ $.ajax({
|
|
|
+ cache :false,
|
|
|
+ type: 'post',
|
|
|
+ url: '/cloud/curing/ajax/upCuringDo',
|
|
|
+ data: {ssoid: curingSsoid, compilationId: compilationId, mobile: mobile, client_id: client_id, name: name},
|
|
|
+ dataType: 'json',
|
|
|
+ success: function(data) {
|
|
|
+ if (data.status == 1) {
|
|
|
+ refreshCuringPageDetail(curingSsoid,client_id);
|
|
|
+ } else {
|
|
|
+ alert(data.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ alert('请选择需要升级的版本');
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 动态绑定 移除CLD客户事件
|
|
|
*/
|
|
@@ -301,33 +302,7 @@ $(function() {
|
|
|
|
|
|
|
|
|
|
|
|
- //升级用户产品信息
|
|
|
- $('button[upCuringDo]').on('click', function(e){
|
|
|
- // 只获取第一个选中的值
|
|
|
- var compilationId = $('#_id').val();
|
|
|
- var name = $('#name').val();
|
|
|
- var curingSsoid = $('#curingSsoid').val();
|
|
|
- var mobile = $('#curingMobile').val();
|
|
|
- var client_id = $('#client_id').val();
|
|
|
- if (curingSsoid != '' && compilationId != '') {
|
|
|
- $.ajax({
|
|
|
- cache :false,
|
|
|
- type: 'post',
|
|
|
- url: '/cloud/curing/ajax/upCuringDo',
|
|
|
- data: {ssoid: curingSsoid, compilationId: compilationId, mobile: mobile, client_id: client_id, name: name},
|
|
|
- dataType: 'json',
|
|
|
- success: function(data) {
|
|
|
- if (data.status == 1) {
|
|
|
- fnGetCuringDetail(curingSsoid,client_id);
|
|
|
- } else {
|
|
|
- alert(data.msg);
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- alert('请选择需要升级的版本');
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
|
|
|
|
|
|
//列表 号码检索事件绑定
|
|
@@ -390,4 +365,50 @@ $(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!')
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|