*管理员:
角色:
超级管理员
管理员
游客
function subbmit(){
var id=$("#id").val();
var username=$("#username").val();
var adminRole=$.trim($('[name="adminRole"]').val());
var url='/api/adminadd';
$.ajax({
type: "POST",
async: false,
url: url,
dataType: "json",
data:{id:id,username:username,adminRole:adminRole},
success:function (response) {
if(response.code==5){
alert("修改成功");
//关闭弹窗
var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
}
}
,error:function (err) {
alert(err);
}
});
}