| | |
| | | height: 'full-95', |
| | | id: 'LAY-app-content-list', |
| | | where: param, |
| | | parseData: FnParseData, |
| | | |
| | | contentType: 'application/json', |
| | | headers: { ToKen: $.cookie('token') }, |
| | | page: true, |
| | |
| | | $(".addClass").hide(); |
| | | }); |
| | | sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function (res) { |
| | | if (res.code == 200) { //成功 |
| | | if (res.code == 0) { //成功 |
| | | for (var k = 0; k < res.data.length; k++) { |
| | | if (res.data[k].MenuName == "编辑客户") { |
| | | $(".editClass").show(); |
| | |
| | | }; |
| | | sendData(IP + "/Basis/DelsCustomer", param, 'post', function (res) { |
| | | console.log(res); |
| | | if (res.code == 200) { //成功 |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | sendData(IP + "/Basis/AddCustomer", param, 'post', |
| | | function (res) { |
| | | console.log(res); |
| | | if (res.code == 200) { //成功 |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | }; |
| | | sendData(IP + "/Basis/DelCustomer", param, 'post', function (res) { |
| | | console.log(res); |
| | | if (res.code == 200) { //成功 |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 1000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | sendData(IP + "/Basis/EditCustomer", param, 'post', |
| | | function (res) { |
| | | console.log(res); |
| | | if (res.code == 200) { //成功 |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 1000 //2秒关闭(如果不配置,默认是3秒) |