Commit 2f61f980 by mushishixian

联动罗盘

parent 9198c236
Showing with 14 additions and 2 deletions
<script>
layui.use(['table', 'form', 'element', 'layer', 'Split', 'admin','xmSelect'], function () {
layui.use(['table', 'form', 'element', 'layer', 'Split', 'admin', 'xmSelect'], function () {
let $ = layui.jquery;
let Split = layui.Split;
// 水平分割,需要分割的元素(id)、默认大小(百分比)、最小值(单位px)
......@@ -17,13 +17,22 @@
$('.main_filter').attr('class', 'main_filter');
$(this).attr('class', 'main_filter layui-badge layui-bg-green');
type = $(this).attr('id');
initCondition.source_type = type
whereCondition.source_type = type
console.log(whereCondition)
table.reload('skuList', {
page: {
curr: 1
}
, where: whereCondition
});
let buttonName = $(this).attr('id');
if (buttonName==='off_shelf') {
//同时还要去联动下面的状态筛选
let id = 'goods_status\\/condition';
$('#' + id).val(3);
form.render('select')
}
});
let cols = [
{type: 'checkbox'},
......@@ -221,6 +230,9 @@
}
form.on('submit(load)', function (data) {
$('.main_filter').attr('class', 'main_filter');
$('#all').attr('class', 'main_filter layui-badge layui-bg-green');
initCondition.source_type = 'all';
whereCondition = $.extend(false, initCondition, data.field);
//执行重载
table.reload('skuList', {
......
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