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
5371a058
authored
Jun 18, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
43f011ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
resources/views/script/SupplierListScript.blade.php
resources/views/script/SupplierListScript.blade.php
View file @
5371a058
...
...
@@ -15,8 +15,7 @@
//点击罗盘筛选
$
(
'.main_filter'
).
click
(
function
()
{
$
(
'.main_filter'
).
attr
(
'class'
,
'main_filter'
);
$
(
'.status_filter'
).
attr
(
'class'
,
'status_filter'
);
clearTypeFilter
();
$
(
this
).
attr
(
'class'
,
'main_filter layui-badge layui-bg-green'
);
type
=
$
(
this
).
attr
(
'id'
);
whereCondition
.
source_type
=
type
...
...
@@ -26,12 +25,13 @@
}
,
where
:
whereCondition
});
// $('#status').val('');
// form.render('select')
});
//多加了个区分根据状态去筛选
$
(
'.status_filter'
).
click
(
function
()
{
$
(
'.main_filter'
).
attr
(
'class'
,
'main_filter'
);
$
(
'.status_filter'
).
attr
(
'class'
,
'status_filter'
);
clearTypeFilter
();
$
(
this
).
attr
(
'class'
,
'status_filter layui-badge layui-bg-green'
);
type
=
$
(
this
).
attr
(
'id'
);
whereCondition
.
source_type
=
type
...
...
@@ -419,6 +419,10 @@
//点击查询按钮
form
.
on
(
'submit(load)'
,
function
(
data
)
{
//罗盘选项会跳回全部
clearTypeFilter
();
$
(
'#all'
).
attr
(
'class'
,
'status_filter layui-badge layui-bg-green'
);
whereCondition
.
source_type
=
'all'
;
initCondition
.
source_type
=
whereCondition
.
source_type
;
whereCondition
=
$
.
extend
(
false
,
initCondition
,
data
.
field
);
//执行重载
...
...
@@ -450,4 +454,9 @@
return
''
;
}
}
function
clearTypeFilter
()
{
$
(
'.main_filter'
).
attr
(
'class'
,
'main_filter'
);
$
(
'.status_filter'
).
attr
(
'class'
,
'status_filter'
);
}
</script>
\ No newline at end of file
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