Commit 47a5b647 by 杨树贤

刷新逻辑

parent 8b9fbce5
......@@ -9,6 +9,15 @@
let whereCondition = initCondition;
let type = 'all';
//这个是页面点击刷新方法,隐藏起来是为了页面切换回这个列表的时候触发的
$('#refreshWindow').click(function () {
//判断当前是否有layui弹窗窗口,有的话不刷新
let hasLayerIframe = $('.layui-layer').size() > 0;
if (!hasLayerIframe) {
$('#getSupplierApplyListButton').click();
}
});
let cols = [
{type: 'checkbox'},
{field: 'supplier_name', title: '供应商名称', align: 'center', width: 200},
......
......@@ -87,6 +87,11 @@
admin.putTempData("needFreshDetail_" + supplierFlag, null);
}
}
if (d.layId.search('SupplierApplyList') !== -1) {
setTimeout(function () {
$('.admin-iframe').contents().find('#refreshWindow').click()
}, 10);
}
});
});
</script>
......
......@@ -36,7 +36,7 @@
</div>
</div>
<div class="layui-row" style="margin-top:10px;margin-bottom: 10px;margin-left: 20px;">
<button class="layui-btn layui-btn-sm layui-btn load" lay-submit=""
<button class="layui-btn layui-btn-sm layui-btn load" lay-submit="" id="getSupplierApplyListButton"
lay-filter="load">查询
</button>
<button type="button" class="layui-btn layui-btn-sm layui-btn" lay-submit="" lay-filter="reset">重置
......@@ -46,6 +46,7 @@
</div>
<div style="margin-left: 20px;margin-right: 20px">
<div class="layui-btn-group demoTable" style="margin-top: 15px">
<button type="button" id="refreshWindow" style="display: none">刷新页面</button>
<button type="button" class="layui-btn layui-btn-sm" id="audit_supplier_apply">审核</button>
</div>
<table class="layui-table" id="supplierApplyList" lay-filter="supplierApplyList"></table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment