Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-shops-fe
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
weiqingting
9 years ago
Commit
939933a43060030e5c35747d6f60d6f4838657ad
1 parent
90db987a
批量导出
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
13 deletions
client/js/basegoods/index.js
client/js/basegoods/index.js
View file @
939933a
...
...
@@ -487,32 +487,39 @@ $("#basedaochu").click(function(){
selectedArr
=
g
.
selected
,
len
=
selectedArr
.
length
,
data
=
g
.
options
.
parms
();
data
.
isAuditing
=
200
;
var
filter
=
$
(
".wqt_all"
).
prop
(
"checked"
);
$
.
each
(
data
,
function
(
key
,
value
)
{
if
(
value
&&
value
!=
''
&&
key
!=
'size'
&&
key
!=
'tab'
)
{
count
++
;
}
});
$
.
each
(
data
,
function
(
key
,
value
)
{
if
(
value
&&
value
!=
''
&&
key
!=
'size'
&&
key
!=
'tab'
)
{
count
++
;
}
});
if
((
count
>
0
&&
filter
)
||
len
>
0
)
{
var
productSknList
=
[];
if
(
len
>
0
)
{
data
.
productSknList
=
[];
$
.
each
(
selectedArr
,
function
(
i
,
value
)
{
data
.
productSknList
.
push
(
value
[
'productSkn'
]);
productSknList
.
push
(
value
[
'productSkn'
]);
});
}
data
.
isAuditing
=
200
;
var
result
=
{};
for
(
var
name
in
data
){
if
(
data
.
hasOwnProperty
(
name
)
&&
data
[
name
]){
result
[
name
]
=
data
[
name
];
var
getResult
=
function
(){
if
(
filter
){
var
result
=
{};
for
(
var
name
in
data
){
if
(
data
.
hasOwnProperty
(
name
)
&&
data
[
name
]){
result
[
name
]
=
data
[
name
];
}
}
return
result
}
else
{
return
{
productSknList
:
productSknList
,
isAuditing
:
200
};
}
}
window
.
open
(
"/ajax/down?queryConf="
+
JSON
.
stringify
(
result
)
+
"&type=baseProduce"
);
window
.
open
(
"/ajax/down?queryConf="
+
JSON
.
stringify
(
getResult
()
)
+
"&type=baseProduce"
);
}
else
{
common
.
util
.
__tip
(
'请选择导出商品的条件'
,
'warning'
);
return
;
...
...
Please
register
or
login
to post a comment