Commit 2a2b9283 by 杨树贤

罗盘筛选问题

parent bc4b3689
......@@ -58,9 +58,6 @@ class SupplierFilter
$query->where('create_uid', $adminId);
}
if ((isset($map['status']) && $map['status'] === "0") || !empty($map['status'])) {
if ($map['source_type'] == 'disable') {
$map['status'] = -2;
}
$query->where('status', $map['status']);
}
......
......@@ -44,13 +44,14 @@
whereCondition.source_type = type
//先清空状态
whereCondition.status = 0;
let status = $(this).attr('data-value');
whereCondition.status = status;
table.reload('list', {
page: {
curr: 1
}
, where: whereCondition
});
let status = $(this).attr('data-value');
//同时还要去联动下面的状态筛选
$('#status').val(status);
form.render('select')
......
......@@ -35,7 +35,7 @@
@endif
@if(checkPerm('SupplierRejectList'))
<div class="layui-row">
<a class="status_filter" id="rejected" data-value="-2">
<a class="status_filter" id="rejected" data-value="3">
</a>
</div>
@endif
......
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