| | |
| | | |
| | | //查询按钮 |
| | | form.on('submit(btnSearch)', function (data) { |
| | | |
| | | var HNumber = $("#HNumber").val(); |
| | | var HName = $("#HName").val(); |
| | | if (HNumber) { |
| | | sWhere += " and HNumber like '%" + HNumber + "%'"; |
| | | } |
| | | if (HName) { |
| | | sWhere += " and HName like '%" + HName + "%'"; |
| | | } |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/PublicPageMethod/MaintainList', |
| | | type: "GET", |
| | | data: { "sWhere": SeachFilter(sWhere1) }, |
| | | data: { "sWhere": sWhere }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.alert("查询成功", { icon: 1 }); |
| | | } else { |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | layer.alert("暂无记录", { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("接口请求失败!", { icon: 5 }); |