Commit 2a2b9283 by 杨树贤

罗盘筛选问题

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