| | |
| | | sendData(IP + "/Sys/AddStorageLocat", param, 'post', function (res) { |
| | | console.log(res); |
| | | if (res.code == 200) { //成功 |
| | | layer.msg(res.msg, { |
| | | |
| | | layer.msg(res.ErrorMsg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | |
| | | layer.close(index1); //关闭弹层 |
| | | doing = true; |
| | | }); |
| | | } else if(res.code == 1){ |
| | | layer.msg(res.msg, { |
| | | } else if(res.code == 400){ |
| | | layer.msg(res.ErrorMsg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function() {doing = true;}); |
| | | } else { //不成功 |
| | | layer.msg(res.statusText, { |
| | | layer.msg(res.ErrorMsg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function() {doing = true;}); |