ObjectList选中/批量删除时增加遮罩层
This commit is contained in:
@@ -103,12 +103,15 @@
|
|||||||
|
|
||||||
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='info'/>",function(v,h,f){
|
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='info'/>",function(v,h,f){
|
||||||
if(v=="ok"){
|
if(v=="ok"){
|
||||||
|
loading('onloading');
|
||||||
window.location = url+"&ids="+ids+"&groupIds="+groupIds;
|
window.location = url+"&ids="+ids+"&groupIds="+groupIds;
|
||||||
}
|
}
|
||||||
},{buttonsFocus:1});
|
},{buttonsFocus:1});
|
||||||
top.$('.jbox-body .jbox-icon').css('top','55px');
|
top.$('.jbox-body .jbox-icon').css('top','55px');
|
||||||
|
|
||||||
}else{ // 未选中任何 批量
|
}else{ // 未选中任何 批量
|
||||||
|
loading('onloading');
|
||||||
|
|
||||||
var myData = {};
|
var myData = {};
|
||||||
var groupId = $("#groupId").val();
|
var groupId = $("#groupId").val();
|
||||||
if($("#intype").val() != null && $("#intype").val() != ""){
|
if($("#intype").val() != null && $("#intype").val() != ""){
|
||||||
@@ -118,11 +121,10 @@
|
|||||||
myData["groupId"] = groupId;
|
myData["groupId"] = groupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
myAjax = $.ajax({
|
||||||
type:'post',
|
type:'post',
|
||||||
url:'${ctx}/basics/domain/ajaxCheckIsLastOneCfgBatch',
|
url:'${ctx}/basics/domain/ajaxCheckIsLastOneCfgBatch',
|
||||||
data:myData,
|
data:myData,
|
||||||
async:false,
|
|
||||||
success:function(data,textStatus){// 处理返回结果
|
success:function(data,textStatus){// 处理返回结果
|
||||||
if(data.length > 0 && typeof(data) == 'object'){
|
if(data.length > 0 && typeof(data) == 'object'){
|
||||||
canDel = false;
|
canDel = false;
|
||||||
@@ -134,17 +136,24 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(!canDel){
|
// myAjax异步请求完毕后执行
|
||||||
var shortStr = tipCompileIds.length > 6? tipCompileIds.substr(0,6)+"..." : tipCompileIds ;
|
$.when(myAjax).done(function() {
|
||||||
tipInfoAdd = $.validator.messages.cancel_config_warn.replace("{0}","<b title='"+tipCompileIds+"'>'"+shortStr+"'</b>")+",";
|
if(!canDel){
|
||||||
}
|
var shortStr = tipCompileIds.length > 6? tipCompileIds.substr(0,6)+"..." : tipCompileIds ;
|
||||||
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='delete_all'/>",function(v,h,f){
|
tipInfoAdd = $.validator.messages.cancel_config_warn.replace("{0}","<b title='"+tipCompileIds+"'>'"+shortStr+"'</b>")+",";
|
||||||
if(v=="ok"){
|
}
|
||||||
$("#searchForm").attr("action",url);
|
|
||||||
page();
|
top.$.jBox.closeTip();
|
||||||
}
|
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='delete_all'/>",function(v,h,f){
|
||||||
});
|
|
||||||
|
if(v=="ok"){
|
||||||
|
$("#searchForm").attr("action",url);
|
||||||
|
page();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -104,12 +104,15 @@
|
|||||||
|
|
||||||
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='info'/>",function(v,h,f){
|
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='info'/>",function(v,h,f){
|
||||||
if(v=="ok"){
|
if(v=="ok"){
|
||||||
|
loading('onloading');
|
||||||
window.location = url+"&ids="+ids+"&groupIds="+groupIds;
|
window.location = url+"&ids="+ids+"&groupIds="+groupIds;
|
||||||
}
|
}
|
||||||
},{buttonsFocus:1});
|
},{buttonsFocus:1});
|
||||||
top.$('.jbox-body .jbox-icon').css('top','55px');
|
top.$('.jbox-body .jbox-icon').css('top','55px');
|
||||||
|
|
||||||
}else{ // 未选中任何 批量
|
}else{ // 未选中任何 批量
|
||||||
|
loading('onloading');
|
||||||
|
|
||||||
var myData = {};
|
var myData = {};
|
||||||
var groupId = $("#groupId").val();
|
var groupId = $("#groupId").val();
|
||||||
if($("#intype").val() != null && $("#intype").val() != ""){
|
if($("#intype").val() != null && $("#intype").val() != ""){
|
||||||
@@ -119,11 +122,10 @@
|
|||||||
myData["groupId"] = groupId;
|
myData["groupId"] = groupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
myAjax = $.ajax({
|
||||||
type:'post',
|
type:'post',
|
||||||
url:'${ctx}/basics/ip/ajaxCheckIsLastOneCfgBatch',
|
url:'${ctx}/basics/ip/ajaxCheckIsLastOneCfgBatch',
|
||||||
data:myData,
|
data:myData,
|
||||||
async:false,
|
|
||||||
success:function(data,textStatus){// 处理返回结果
|
success:function(data,textStatus){// 处理返回结果
|
||||||
if(data.length > 0 && typeof(data) == 'object'){
|
if(data.length > 0 && typeof(data) == 'object'){
|
||||||
canDel = false;
|
canDel = false;
|
||||||
@@ -135,16 +137,22 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(!canDel){
|
// myAjax异步请求完毕后执行
|
||||||
var shortStr = tipCompileIds.length > 6? tipCompileIds.substr(0,6)+"..." : tipCompileIds ;
|
$.when(myAjax).done(function() {
|
||||||
tipInfoAdd = $.validator.messages.cancel_config_warn.replace("{0}","<b title='"+tipCompileIds+"'>'"+shortStr+"'</b>")+",";
|
if(!canDel){
|
||||||
}
|
var shortStr = tipCompileIds.length > 6? tipCompileIds.substr(0,6)+"..." : tipCompileIds ;
|
||||||
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='delete_all'/>",function(v,h,f){
|
tipInfoAdd = $.validator.messages.cancel_config_warn.replace("{0}","<b title='"+tipCompileIds+"'>'"+shortStr+"'</b>")+",";
|
||||||
if(v=="ok"){
|
}
|
||||||
$("#searchForm").attr("action",url);
|
|
||||||
page();
|
top.$.jBox.closeTip();
|
||||||
}
|
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='delete_all'/>",function(v,h,f){
|
||||||
});
|
if(v=="ok"){
|
||||||
|
$("#searchForm").attr("action",url);
|
||||||
|
page();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,12 +107,15 @@
|
|||||||
|
|
||||||
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='info'/>",function(v,h,f){
|
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='info'/>",function(v,h,f){
|
||||||
if(v=="ok"){
|
if(v=="ok"){
|
||||||
|
loading('onloading');
|
||||||
window.location = url+"&ids="+ids+"&groupIds="+groupIds;
|
window.location = url+"&ids="+ids+"&groupIds="+groupIds;
|
||||||
}
|
}
|
||||||
},{buttonsFocus:1});
|
},{buttonsFocus:1});
|
||||||
top.$('.jbox-body .jbox-icon').css('top','55px');
|
top.$('.jbox-body .jbox-icon').css('top','55px');
|
||||||
|
|
||||||
}else{ // 未选中任何 批量
|
}else{ // 未选中任何 批量
|
||||||
|
loading('onloading');
|
||||||
|
|
||||||
var myData = {};
|
var myData = {};
|
||||||
var groupId = $("#groupId").val();
|
var groupId = $("#groupId").val();
|
||||||
if($("#intype").val() != null && $("#intype").val() != ""){
|
if($("#intype").val() != null && $("#intype").val() != ""){
|
||||||
@@ -122,11 +125,10 @@
|
|||||||
myData["groupId"] = groupId;
|
myData["groupId"] = groupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
myAjax = $.ajax({
|
||||||
type:'post',
|
type:'post',
|
||||||
url:'${ctx}/basics/scriberId/ajaxCheckIsLastOneCfgBatch',
|
url:'${ctx}/basics/scriberId/ajaxCheckIsLastOneCfgBatch',
|
||||||
data:myData,
|
data:myData,
|
||||||
async:false,
|
|
||||||
success:function(data,textStatus){// 处理返回结果
|
success:function(data,textStatus){// 处理返回结果
|
||||||
if(data.length > 0 && typeof(data) == 'object'){
|
if(data.length > 0 && typeof(data) == 'object'){
|
||||||
canDel = false;
|
canDel = false;
|
||||||
@@ -138,17 +140,23 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(!canDel){
|
// myAjax异步请求完毕后执行
|
||||||
var shortStr = tipCompileIds.length > 6? tipCompileIds.substr(0,6)+"..." : tipCompileIds ;
|
$.when(myAjax).done(function() {
|
||||||
tipInfoAdd = $.validator.messages.cancel_config_warn.replace("{0}","<b title='"+tipCompileIds+"'>'"+shortStr+"'</b>")+",";
|
if(!canDel){
|
||||||
}
|
var shortStr = tipCompileIds.length > 6? tipCompileIds.substr(0,6)+"..." : tipCompileIds ;
|
||||||
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='delete_all'/>",function(v,h,f){
|
tipInfoAdd = $.validator.messages.cancel_config_warn.replace("{0}","<b title='"+tipCompileIds+"'>'"+shortStr+"'</b>")+",";
|
||||||
if(v=="ok"){
|
}
|
||||||
$("#searchForm").attr("action",url);
|
|
||||||
page();
|
top.$.jBox.closeTip();
|
||||||
}
|
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='delete_all'/>",function(v,h,f){
|
||||||
});
|
if(v=="ok"){
|
||||||
|
$("#searchForm").attr("action",url);
|
||||||
|
page();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -102,12 +102,15 @@
|
|||||||
|
|
||||||
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='info'/>",function(v,h,f){
|
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='info'/>",function(v,h,f){
|
||||||
if(v=="ok"){
|
if(v=="ok"){
|
||||||
|
loading('onloading');
|
||||||
window.location = url+"&ids="+ids+"&groupIds="+groupIds;
|
window.location = url+"&ids="+ids+"&groupIds="+groupIds;
|
||||||
}
|
}
|
||||||
},{buttonsFocus:1});
|
},{buttonsFocus:1});
|
||||||
top.$('.jbox-body .jbox-icon').css('top','55px');
|
top.$('.jbox-body .jbox-icon').css('top','55px');
|
||||||
|
|
||||||
}else{ // 未选中任何 批量
|
}else{ // 未选中任何 批量
|
||||||
|
loading('onloading');
|
||||||
|
|
||||||
var myData = {};
|
var myData = {};
|
||||||
var groupId = $("#groupId").val();
|
var groupId = $("#groupId").val();
|
||||||
if($("#intype").val() != null && $("#intype").val() != ""){
|
if($("#intype").val() != null && $("#intype").val() != ""){
|
||||||
@@ -117,11 +120,10 @@
|
|||||||
myData["groupId"] = groupId;
|
myData["groupId"] = groupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
myAjax = $.ajax({
|
||||||
type:'post',
|
type:'post',
|
||||||
url:'${ctx}/basics/url/ajaxCheckIsLastOneCfgBatch',
|
url:'${ctx}/basics/url/ajaxCheckIsLastOneCfgBatch',
|
||||||
data:myData,
|
data:myData,
|
||||||
async:false,
|
|
||||||
success:function(data,textStatus){// 处理返回结果
|
success:function(data,textStatus){// 处理返回结果
|
||||||
if(data.length > 0 && typeof(data) == 'object'){
|
if(data.length > 0 && typeof(data) == 'object'){
|
||||||
canDel = false;
|
canDel = false;
|
||||||
@@ -133,16 +135,22 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(!canDel){
|
// myAjax异步请求完毕后执行
|
||||||
var shortStr = tipCompileIds.length > 6? tipCompileIds.substr(0,6)+"..." : tipCompileIds ;
|
$.when(myAjax).done(function() {
|
||||||
tipInfoAdd = $.validator.messages.cancel_config_warn.replace("{0}","<b title='"+tipCompileIds+"'>'"+shortStr+"'</b>")+",";
|
if(!canDel){
|
||||||
}
|
var shortStr = tipCompileIds.length > 6? tipCompileIds.substr(0,6)+"..." : tipCompileIds ;
|
||||||
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='delete_all'/>",function(v,h,f){
|
tipInfoAdd = $.validator.messages.cancel_config_warn.replace("{0}","<b title='"+tipCompileIds+"'>'"+shortStr+"'</b>")+",";
|
||||||
if(v=="ok"){
|
}
|
||||||
$("#searchForm").attr("action",url);
|
|
||||||
page();
|
top.$.jBox.closeTip();
|
||||||
}
|
top.$.jBox.confirm(tipInfoAdd+"<spring:message code='confirm_message'/>","<spring:message code='delete_all'/>",function(v,h,f){
|
||||||
});
|
if(v=="ok"){
|
||||||
|
$("#searchForm").attr("action",url);
|
||||||
|
page();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user