|
@@ -7,7 +7,6 @@
|
|
|
<link rel="stylesheet" href="${ctxp}/static/plugin/assets/common.css"/>
|
|
|
<script type="text/javascript" src="${ctxp}/static/plugin/assets/jquery-3.2.1.min.js"></script>
|
|
|
<script src="${ctxp}/static/plugin/assets/layui/layui.js"></script>
|
|
|
- <%--<%@include file="alongst.js"%>--%>
|
|
|
</head>
|
|
|
<style>
|
|
|
.layui-table-view .layui-table {width:100%}
|
|
@@ -16,29 +15,19 @@
|
|
|
.layui-icon-file{display: none;}
|
|
|
.layui-table-tips-main{display:none}
|
|
|
.layui-table-tips-c{display:none}
|
|
|
- input {
|
|
|
- height: 33px;
|
|
|
- line-height: 33px;
|
|
|
- padding: 0 7px;
|
|
|
- border: 1px solid #ccc;
|
|
|
- border-radius: 2px;
|
|
|
- margin-bottom: -2px;
|
|
|
- outline: none;
|
|
|
- }
|
|
|
- input:focus {
|
|
|
- border-color: #009E94;
|
|
|
- }
|
|
|
+ .solr{height: 33px;line-height: 33px;padding: 0 7px;border: 1px solid #ccc;border-radius: 2px;margin-bottom: -2px;outline: none;width: 190px;}
|
|
|
+ input:focus {border-color: #009E94;}
|
|
|
</style>
|
|
|
<body>
|
|
|
<div class="layui-btn-group suretable" style="display: none;">
|
|
|
<button class="layui-btn" data-type="getCheckData" id="freenl">确定</button>
|
|
|
</div>
|
|
|
<form class="layui-form" action="">
|
|
|
- <div class="layui-form-item">
|
|
|
+ <div class="layui-form-item" style="float: left">
|
|
|
<div class="" style="margin-left: 10px;margin-top: 10px;">
|
|
|
<span id="mylable2">项目调整</span>
|
|
|
<span>:</span>
|
|
|
- <span id="readid2">200</span>
|
|
|
+ <span id="readid2"></span>
|
|
|
</div>
|
|
|
<div class="" style="margin-left: 10px;">
|
|
|
<input type="radio" name="mydiv" value="1" title="增加" checked="">
|
|
@@ -46,9 +35,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
-
|
|
|
-<input id="edt-search" type="text" placeholder="输入关键字" style="width: 120px;"/>
|
|
|
-<button class="layui-btn" id="btn-search"> 搜索 </button>
|
|
|
+<div style="float: right;margin:22px 100px;">
|
|
|
+ <input id="edt-search" type="text" placeholder="输入关键字" class="solr" style=""/>
|
|
|
+ <button class="layui-btn" id="btn-search"> 搜索 </button>
|
|
|
+</div>
|
|
|
<div style="margin-left: 7px;margin-right: 7px">
|
|
|
<table class="layui-table" id="longtable" lay-filter="longtable"></table>
|
|
|
</div>
|
|
@@ -63,7 +53,6 @@
|
|
|
var table = layui.table;
|
|
|
var layer = layui.layer;
|
|
|
var treetable = layui.treetable;
|
|
|
-
|
|
|
var renderTable1 = function () {
|
|
|
layer.load(2);
|
|
|
treetable.render({
|
|
@@ -140,6 +129,30 @@
|
|
|
data.bl=bfb2;
|
|
|
}
|
|
|
});
|
|
|
+ //搜索--
|
|
|
+ $('#btn-search').click(function () {
|
|
|
+ var keyword = $('#edt-search').val();
|
|
|
+ var searchCount = 0;
|
|
|
+ $('#longtable').next('.treeTable').find('.layui-table-body tbody tr td').each(function () {
|
|
|
+ $(this).css('background-color', 'transparent');
|
|
|
+ var text = $(this).text();
|
|
|
+ if (keyword != '' && text.indexOf(keyword) >= 0) {
|
|
|
+ $(this).css('background-color', 'rgba(250,230,160,0.5)');
|
|
|
+ if (searchCount == 0) {
|
|
|
+ treetable.expandAll('#longtable');
|
|
|
+ $('html,body').stop(true);
|
|
|
+ $('html,body').animate({scrollTop: $(this).offset().top - 150}, 500);
|
|
|
+ }
|
|
|
+ searchCount++;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (keyword == '') {
|
|
|
+ layer.msg("请输入搜索内容", {icon: 5});
|
|
|
+ } else if (searchCount == 0) {
|
|
|
+ layer.msg("没有匹配结果", {icon: 5});
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
var $ = layui.$, active = {
|
|
|
getCheckData: function(){ //获取选中数据
|
|
|
var checkStatus = table.checkStatus('checktable'),
|
|
@@ -181,30 +194,6 @@
|
|
|
var type = $(this).data('type');
|
|
|
active[type] ? active[type].call(this) : '';
|
|
|
});
|
|
|
- //搜索
|
|
|
- $('#btn-search').click(function () {
|
|
|
- var keyword = $('#edt-search').val();
|
|
|
- var searchCount = 0;
|
|
|
- $('#longtable').next('.treeTable').find('.layui-table-body tbody tr td').each(function () {
|
|
|
- $(this).css('background-color', 'transparent');
|
|
|
- var text = $(this).text();
|
|
|
- if (keyword != '' && text.indexOf(keyword) >= 0) {
|
|
|
- $(this).css('background-color', 'rgba(250,230,160,0.5)');
|
|
|
- if (searchCount == 0) {
|
|
|
- treetable.expandAll('#longtable');
|
|
|
- $('html,body').stop(true);
|
|
|
- $('html,body').animate({scrollTop: $(this).offset().top - 150}, 500);
|
|
|
- }
|
|
|
- searchCount++;
|
|
|
- }
|
|
|
- });
|
|
|
- if (keyword == '') {
|
|
|
- layer.msg("请输入搜索内容", {icon: 5});
|
|
|
- } else if (searchCount == 0) {
|
|
|
- layer.msg("没有匹配结果", {icon: 5});
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
var newid2 = parent.$('#newid').val();
|
|
|
var xmmc2 = parent.$('#xmmc1').val();
|
|
|
var fyje2 = parent.$('#fyje1').val();
|