| | |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | } |
| | | |
| | | .layui-table-mend{ |
| | | position: relative; |
| | | } |
| | |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body"> |
| | | <div style="width: 100%;right: 0;"> |
| | | <table id="LAY-app-content-list" name="LAY-app-content-list" lay-filter="LAY-app-content-list"></table> |
| | | <table id="LAY-app-content-list" name="LAY-app-content-list" lay-filter="LAY-app-content-list"> |
| | | </table> |
| | | |
| | | <script type="text/html" id="templetIsNull"> |
| | | {{# function GetBtn(d){ |
| | |
| | | InterfaceNo: id |
| | | }; |
| | | sendData(IP + "/Basis/GetInterfaceList", param, 'post', function (res) { |
| | | if (res.code == 0) { |
| | | $("input[name='InterfaceNo']").val(res.data[0].InterfaceNo); |
| | | $("input[name='InterfaceName']").val(res.data[0].InterfaceName); |
| | | $("#Direction option[value = '" + res.data[0].Direction + "']").prop("selected", true); |
| | | $("#TransmissionMode option[value = '" + res.data[0].TransmissionMode + "']").prop("selected", true); |
| | | $("input[name='Remark']").val(res.data[0].Remark); |
| | | $("input[name='Url']").val(res.data[0].Url); |
| | | $("input[name='DataSources']").val(res.data[0].DataSources); |
| | | if (res.code == 200) { |
| | | var data = res.data.Items[0]; |
| | | $("input[name='InterfaceNo']").val(data.InterfaceNo); |
| | | $("input[name='InterfaceName']").val(data.InterfaceName); |
| | | $("#Direction option[value = '" + data.Direction + "']").prop("selected", true); |
| | | $("#TransmissionMode option[value = '" + data.TransmissionMode + "']").prop("selected", true); |
| | | $("input[name='Remark']").val(data.Remark); |
| | | $("input[name='Url']").val(data.Url); |
| | | $("input[name='DataSources']").val(data.DataSources); |
| | | |
| | | $("#InterfaceNo").attr("disabled", "disabled"); |
| | | |
| | |
| | | InterfaceNo:id |
| | | }; |
| | | sendData(IP + "/Basis/GetInterfaceDetailList", paramDetail, 'post', function (res) { |
| | | if (res.code == 0) { //成功 |
| | | var data = res.data; |
| | | if (res.code == 200) { //成功 |
| | | var data = res.data.Items; |
| | | //页面赋值 |
| | | $.extend(infoOptions, { |
| | | data: data |
| | |
| | | else{ |
| | | MapFieldNum=MapFieldNum+1; |
| | | } |
| | | if(menu==undefined) |
| | | { |
| | | if (menu == undefined) { |
| | | menu=[] |
| | | } |
| | | var newRow={InterfaceNo:InterfaceNo,MapField:'Field'+MapFieldNum,IsNull:'0'}; |
| | |
| | | if (id == null) { |
| | | // 添加 |
| | | sendData(IP + "/Basis/AddInterface", item2, 'post', function (res) { |
| | | if (res.code == 0) { //成功 |
| | | if (res.code == 200) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | else { |
| | | // 编辑 |
| | | sendData(IP + "/Basis/EditInterface", item2, 'post', function (res) { |
| | | if (res.code == 0) { //成功 |
| | | if (res.code == 200) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |