|
@@ -43,12 +43,13 @@
|
|
<div class="" style="margin-left: 10px;">
|
|
<div class="" style="margin-left: 10px;">
|
|
<input type="radio" name="mydiv" value="1" title="增加" checked="">
|
|
<input type="radio" name="mydiv" value="1" title="增加" checked="">
|
|
<input type="radio" name="mydiv" value="2" title="减少">
|
|
<input type="radio" name="mydiv" value="2" title="减少">
|
|
-
|
|
|
|
- <input id="edt-search" type="text" placeholder="输入关键字" style="width: 120px;"/>
|
|
|
|
- <button class="layui-btn" id="btn-search"> 搜索 </button>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
|
|
+
|
|
|
|
+<input id="edt-search" type="text" placeholder="输入关键字" style="width: 120px;"/>
|
|
|
|
+<%--<button class="layui-btn" id="btn-search"> 搜索 </button>--%>
|
|
|
|
+<button class="layui-btn" onclick="solr();"> 搜索 </button>
|
|
<div style="margin-left: 7px;margin-right: 7px">
|
|
<div style="margin-left: 7px;margin-right: 7px">
|
|
<table class="layui-table" id="longtable" lay-filter="longtable"></table>
|
|
<table class="layui-table" id="longtable" lay-filter="longtable"></table>
|
|
</div>
|
|
</div>
|
|
@@ -95,38 +96,6 @@
|
|
},
|
|
},
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</c:if>
|
|
</c:if>
|
|
- // {
|
|
|
|
- // "id":"1",
|
|
|
|
- // "wbsys": "12",
|
|
|
|
- // "wbsCode": "32",
|
|
|
|
- // "bl":'',
|
|
|
|
- // "fee":'',
|
|
|
|
- // "pid": -1
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // "id":"2",
|
|
|
|
- // "wbsys": "121212131231",
|
|
|
|
- // "wbsCode": "32",
|
|
|
|
- // "bl":'',
|
|
|
|
- // "fee":'',
|
|
|
|
- // "pid": 1
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // "id":"3",
|
|
|
|
- // "wbsys": "12123123",
|
|
|
|
- // "wbsCode": "32",
|
|
|
|
- // "bl":'',
|
|
|
|
- // "fee":'',
|
|
|
|
- // "pid": -1
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // "id":"4",
|
|
|
|
- // "wbsys": "12123123",
|
|
|
|
- // "wbsCode": "32",
|
|
|
|
- // "bl":'',
|
|
|
|
- // "fee":'',
|
|
|
|
- // "pid": 3
|
|
|
|
- // }
|
|
|
|
],
|
|
],
|
|
done: function (res, curr, count) {
|
|
done: function (res, curr, count) {
|
|
layer.closeAll('loading');
|
|
layer.closeAll('loading');
|
|
@@ -222,7 +191,7 @@
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
<script>
|
|
<script>
|
|
- $('#btn-search').click(function () {
|
|
|
|
|
|
+ function solr(){
|
|
var keyword = $('#edt-search').val();
|
|
var keyword = $('#edt-search').val();
|
|
var searchCount = 0;
|
|
var searchCount = 0;
|
|
$('#longtable').next('.treeTable').find('.layui-table-body tbody tr td').each(function () {
|
|
$('#longtable').next('.treeTable').find('.layui-table-body tbody tr td').each(function () {
|
|
@@ -243,6 +212,6 @@
|
|
} else if (searchCount == 0) {
|
|
} else if (searchCount == 0) {
|
|
layer.msg("没有匹配结果", {icon: 5});
|
|
layer.msg("没有匹配结果", {icon: 5});
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
</html>
|
|
</html>
|