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
2f61f980
authored
Jun 22, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
联动罗盘
parent
9198c236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
resources/views/script/SkuListScript.blade.php
resources/views/script/SkuListScript.blade.php
View file @
2f61f980
<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'
,
{
...
...
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