数据页样式调试5

master
zcstatham 2 years ago
parent 7aeb09483b
commit 2b7835ec47
  1. 12
      app/view/index/index.html
  2. 2
      app/view/public/layout.html

@ -8,7 +8,7 @@
{/block} {/block}
{block name="body"} {block name="body"}
<div class="layui-card"> <div class="layui-card">
<div class="layui-card-body layui-form" style="padding: 10px 0;"> <div class="layui-card-body layui-form" style="padding: 0 10px;">
<div class="layui-collapse"> <div class="layui-collapse">
<div class="layui-colla-item"> <div class="layui-colla-item">
<h2 class="layui-colla-title">筛选</h2> <h2 class="layui-colla-title">筛选</h2>
@ -154,7 +154,7 @@
<div class="layui-input-block layui-text-right" id="tool-bar"> <div class="layui-input-block layui-text-right" id="tool-bar">
<button type="button" class="layui-btn" id="search-btn">搜索</button> <button type="button" class="layui-btn" id="search-btn">搜索</button>
<a href="{:url('index/index')}" class="layui-btn" id="reset-btn">重置条件</a> <a href="{:url('index/index')}" class="layui-btn" id="reset-btn">重置条件</a>
<button type="button" class="layui-btn layui-btn-danger" id="deletes-btn">批量删除</button> <button type="button" class="layui-btn layui-btn-danger" style="display: none;" id="deletes-btn">批量删除</button>
</div> </div>
</div> </div>
</div> </div>
@ -357,6 +357,14 @@
}, },
where: param, where: param,
}, 'data'); }, 'data');
let param_a = param;
delete param_a['car_phone_empty'];
delete param_a['car_frame_check'];
delete param_a['data_check'];
if (param_a.filter().length > 0)
$('#deletes-btn').css('display', 'inline-block')
else
$('#deletes-btn').css('display', 'none')
}); });
$('#deletes-btn').on('click', function () { $('#deletes-btn').on('click', function () {
layer.confirm('真的删除行么', function(index){ layer.confirm('真的删除行么', function(index){

@ -17,7 +17,7 @@
<li class="layui-nav-item"><a href="{:url('repeat/index')}">重复车架</a></li> <li class="layui-nav-item"><a href="{:url('repeat/index')}">重复车架</a></li>
</ul> </ul>
</div> </div>
<div class="layui-container-fluid" id="layui-content"> <div class="layui-container-fluid" id="layui-content" style="height: calc(100% - 60px);">
{block name="body"}{/block} {block name="body"}{/block}
</div> </div>

Loading…
Cancel
Save