Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2a2b9283
authored
May 11, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
罗盘筛选问题
parent
bc4b3689
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
app/Http/Controllers/Filter/SupplierFilter.php
resources/views/script/SupplierListScript.blade.php
resources/views/web/supplier/SupplierListCommon.blade.php
app/Http/Controllers/Filter/SupplierFilter.php
View file @
2a2b9283
...
...
@@ -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'
]);
}
...
...
resources/views/script/SupplierListScript.blade.php
View file @
2a2b9283
...
...
@@ -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'
)
...
...
resources/views/web/supplier/SupplierListCommon.blade.php
View file @
2a2b9283
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment