| | |
| | | InterfaceNo: id |
| | | }; |
| | | sendData(IP + "/Basis/GetInterfaceList", param, 'post', function (res) { |
| | | if (res.code == 200) { |
| | | if (res.code == 0) { |
| | | var data = res.data.Items[0]; |
| | | $("input[name='InterfaceNo']").val(data.InterfaceNo); |
| | | $("input[name='InterfaceName']").val(data.InterfaceName); |
| | |
| | | InterfaceNo: id |
| | | }; |
| | | sendData(IP + "/Basis/GetInterfaceDetailList", paramDetail, 'post', function (res) { |
| | | if (res.code == 200) { //成功 |
| | | if (res.code == 0) { //成功 |
| | | var data = res.data.Items; |
| | | //页面赋值 |
| | | $.extend(infoOptions, { |
| | |
| | | if (id == null) { |
| | | // 添加 |
| | | sendData(IP + "/Basis/AddInterface", item2, 'post', function (res) { |
| | | if (res.code == 200) { //成功 |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | else { |
| | | // 编辑 |
| | | sendData(IP + "/Basis/EditInterface", item2, 'post', function (res) { |
| | | if (res.code == 200) { //成功 |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |