| | |
| | | |
| | | console.log(res.data) |
| | | |
| | | if (res.code == 0) //成功 |
| | | if (res.code == 200) //成功 |
| | | { |
| | | var list = res.data; |
| | | $.extend(infoOptions, { |
| | |
| | | doing = false; |
| | | sendData(IP + "/basis/InsertUserinfo", param, 'post',function(res) { |
| | | console.log(res); |
| | | if (res.code == 0) //成功 |
| | | if (res.code == 200) //成功 |
| | | { |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | |
| | | doing = false; |
| | | sendData(IP + "/Basis/DeleteUserInfo?Userids="+data.Id+"", {} , 'get', function(res) { |
| | | console.log(res); |
| | | if (res.code == 0) { //成功 |
| | | if (res.code == 200) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | doing = false; |
| | | sendData(IP + "/basis/UpdateUserinfo", param, 'post', |
| | | function(res) { |
| | | if (res.code == 0) { //成功 |
| | | if (res.code == 200) { //成功 |
| | | layer.msg("修改成功", { |
| | | icon: 1, |
| | | time: 1000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | } |
| | | else //不成功 |
| | | { |
| | | debugger; |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |