| | |
| | | url: url, |
| | | method: 'post', |
| | | where: where, |
| | | parseData: FnParseData, |
| | | contentType: 'application/json', |
| | | headers:{ToKen:$.cookie('token')}, |
| | | page: true, |
| | |
| | | doing = false; |
| | | sendData(IP + "/Basis/GetPackagList", param, 'post', function (res) { |
| | | console.log(res); |
| | | if (res.code == 0) { //成功 |
| | | if (res.code == 200) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | |
| | | sendData(IP + "/Basis/AddPackag", param, 'post', |
| | | function (res) { |
| | | if (res.code == 0) { //成功 |
| | | if (res.code == 200) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | if (doing) { |
| | | doing = false; |
| | | sendData(IP + "/Basis/DelPackag", param, 'post', function (res) { |
| | | if (res.code == 0) { //成功 |
| | | if (res.code == 200) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 1000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | sendData(IP + "/Basis/EditPackag", param, 'post', |
| | | function (res) { |
| | | console.log(res); |
| | | if (res.code == 0) { //成功 |
| | | if (res.code == 200) { //成功 |
| | | layer.msg("修改成功", { |
| | | icon: 1, |
| | | time: 1000 //2秒关闭(如果不配置,默认是3秒) |