| | |
| | | console.log(obj); |
| | | if (obj.event === 'del') { |
| | | layer.confirm('确定撤销选中的分配信息吗?', function (index) { |
| | | var param = { |
| | | Id: parseInt(obj.data.Id) |
| | | }; |
| | | sendData(IP + "/BllSo/DelExportAllot", param, 'post', function (res) { |
| | | console.log(res); |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 1000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | refreshTable(); |
| | | }); |
| | | } else { //不成功 |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { }); |
| | | } |
| | | }); |
| | | if (doing) { |
| | | doing = false; |
| | | |
| | | var param = { |
| | | Id: parseInt(obj.data.Id) |
| | | }; |
| | | sendData(IP + "/BllSo/DelExportAllot", param, 'post', function (res) { |
| | | console.log(res); |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 1000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | refreshTable(); |
| | | doing = true; |
| | | }); |
| | | } else { //不成功 |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | doing = true; |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | }); |
| | | } |
| | | }); |