Object List批量删除增加提示信息
This commit is contained in:
@@ -76,9 +76,9 @@
|
||||
str = str.substr(1);
|
||||
groupIds = groupIds.substr(1);
|
||||
|
||||
if(ids.length >0){
|
||||
var tipInfoAdd = "";
|
||||
var tipCompileIds = "";
|
||||
var tipInfoAdd = "";
|
||||
var tipCompileIds = "";
|
||||
if(ids.length >0){ // 选中单个或多个
|
||||
$.ajax({
|
||||
type:'post',
|
||||
url:'${ctx}/basics/commonGroup/ajaxCheckIsLastOneCfg',
|
||||
@@ -107,15 +107,42 @@
|
||||
},{buttonsFocus:1});
|
||||
top.$('.jbox-body .jbox-icon').css('top','55px');
|
||||
|
||||
}else{
|
||||
top.$.jBox.confirm("<spring:message code='confirm_message'/>","<spring:message code='delete_all'/>",function(v,h,f){
|
||||
}else{ // 未选中任何 批量
|
||||
var myData = {};
|
||||
var groupId = $("#groupId").val();
|
||||
if($("#intype").val() != null && $("#intype").val() != ""){
|
||||
myData[$("#seltype").val()] = $("#intype").val();
|
||||
}
|
||||
if(groupId != ''){
|
||||
myData["groupId"] = groupId;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type:'post',
|
||||
url:'${ctx}/basics/url/ajaxCheckIsLastOneCfgBatch',
|
||||
data:myData,
|
||||
async:false,
|
||||
success:function(data,textStatus){// 处理返回结果
|
||||
if(data.length > 0){
|
||||
canDel = false;
|
||||
for(var index in data){
|
||||
tipCompileIds += ","+data[index]
|
||||
}
|
||||
tipCompileIds = tipCompileIds.substr(1);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(!canDel){
|
||||
var shortStr = tipCompileIds.length > 6? tipCompileIds.substr(0,6)+"..." : tipCompileIds ;
|
||||
tipInfoAdd = $.validator.messages.cancel_config_warn.replace("{0}","<b title='"+tipCompileIds+"'>'"+shortStr+"'</b>")+",";
|
||||
}
|
||||
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();
|
||||
}
|
||||
});
|
||||
/* top.$.jBox.tip("<spring:message code='one_more'/>", "<spring:message code='info'/>");
|
||||
return; */
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user