修改admin的username字段长度用户添加与保存与IE11兼容
This commit is contained in:
1 parent
22c866253e
commit
f0bd8ead5d
7 files changed
+128
-46
No files matched your search
@@ -62,22 +62,16 @@ $(function(){
|
||||
success:"valid",
|
||||
|
||||
submitHandler:function(form){
|
||||
$(form).ajaxSubmit(
|
||||
|
||||
{
|
||||
dataType: "json",
|
||||
success: function(data){
|
||||
layer.alert(data.msg);
|
||||
|
||||
},
|
||||
error: function(data){
|
||||
layer.alert('保存信息失败');
|
||||
}
|
||||
}
|
||||
);
|
||||
var index = parent.layer.getFrameIndex(window.name);
|
||||
//parent.$('.btn-refresh').click();
|
||||
// parent.layer.close(index);
|
||||
$(form).ajaxSubmit({
|
||||
dataType: "json",
|
||||
success: function(data){
|
||||
layer.alert(data.msg);
|
||||
window.parent.location.reload();
|
||||
},
|
||||
error: function(data){
|
||||
layer.alert('保存信息失败');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
// renderer: "display", //渲染样式:Bootstrap和jquery-ui
|
||||
// pagingType: "simple_numbers", //分页样式:simple,simple_numbers,full,full_numbers
|
||||
order: [
|
||||
[ 1, 'desc' ]
|
||||
[ 0, 'desc' ]
|
||||
],
|
||||
//option显示数量
|
||||
aLengthMenu: [[20, 50, 100, 500], [20, 50, 100, 500]],
|
||||
@@ -134,12 +134,15 @@ function stop(obj,id){
|
||||
layer.confirm('确认要停用吗?',function(index){
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '',
|
||||
url: "{:url('setstatus')}",
|
||||
dataType: 'json',
|
||||
data:{
|
||||
id:id,
|
||||
value: 0,
|
||||
},
|
||||
success: function(data){
|
||||
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="start(this,id)" href="javascript:;" title="启用"><i class="Hui-iconfont"></i></a>');
|
||||
$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已停用</span>');
|
||||
$(obj).remove();
|
||||
$(obj).html('<a style="text-decoration:none" onClick="start(this,id)" href="javascript:;" title="启用"><i class="Hui-iconfont"></i></a>');
|
||||
$(obj).parents("tr").find("span").parents("td").html('<span class="label label-error radius">已停用</span>');
|
||||
layer.msg('已停用!',{icon: 5,time:1000});
|
||||
},
|
||||
error:function(data) {
|
||||
@@ -154,12 +157,15 @@ function start(obj,id){
|
||||
layer.confirm('确认要启用吗?',function(index){
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '',
|
||||
url: "{:url('setstatus')}",
|
||||
dataType: 'json',
|
||||
data:{
|
||||
id:id,
|
||||
value: 1,
|
||||
},
|
||||
success: function(data){
|
||||
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="stop(this,id)" href="javascript:;" title="停用"><i class="Hui-iconfont"></i></a>');
|
||||
$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
|
||||
$(obj).remove();
|
||||
$(obj).html('<a style="text-decoration:none" onClick="start(this,id)" href="javascript:;" title="停用"><i class="Hui-iconfont"></i></a>');
|
||||
$(obj).parents("tr").find("span").parents("td").html('<span class="label label-success radius">已启用</span>');
|
||||
layer.msg('已启用!',{icon: 6,time:1000});
|
||||
},
|
||||
error:function(data) {
|
||||
|
||||
Reference in new issue
Block a user