| | |
| | | </div> |
| | | |
| | | <div class="layui-inline"> |
| | | <button class="layui-btn layui-btn-sm layuiadmin-btn-list" lay-submit |
| | | <button id="searchBtn" class="layui-btn layui-btn-sm layuiadmin-btn-list" lay-submit |
| | | lay-filter="LAY-app-contlist-search"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>搜索 |
| | | </button> |
| | |
| | | var param = { |
| | | "ListArrivalNotice": noticeList, |
| | | } |
| | | console.log('param:'+param) |
| | | //console.log('param:'+param) |
| | | layer.load();//打开loading |
| | | sendData(IP + "/BllAsn/ImportArrivalNotice", param, 'post', function (res) { |
| | | console.log(res); |
| | | layer.closeAll(); //关闭loading |
| | | if (res.code == 0) { //成功 |
| | | layer.msg(res.msg, { |
| | | icon: 1, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | refreshTable(); |
| | | $('#searchBtn').click(); |
| | | doing = true |
| | | }); |
| | | } else { //不成功 |
| | |
| | | layer.msg("导入数据格式有误!", { |
| | | icon: 2, |
| | | time: 3000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { refreshTable(); doing = true }); |
| | | }, function () { $('#searchBtn').click(); doing = true }); |
| | | } else { |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { refreshTable(); doing = true }); |
| | | time: 3000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { $('#searchBtn').click(); doing = true }); |
| | | } |
| | | } |
| | | }); |