Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
ab3aba27
Commit
ab3aba27
authored
May 31, 2021
by
管新明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
69210d25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
+4
-17
awards.controller.ts
server/duibats/src/controller/awards.controller.ts
+4
-17
No files found.
server/duibats/src/controller/awards.controller.ts
View file @
ab3aba27
...
@@ -105,9 +105,8 @@ export default class BaseController {
...
@@ -105,9 +105,8 @@ export default class BaseController {
}
}
console
.
log
(
list
,
'导出报表'
)
console
.
log
(
list
,
'导出报表'
)
let
xlsxData
=
[
let
xlsxData
=
[
[
[
<%
for
(
var
i
=
0
;
i
<
winnersExportData
.
length
;
++
i
)
{
%>
<%
for
(
var
i
=
0
;
i
<
winnersExportData
.
length
;
++
i
)
{
%>
<%-
`
${
winnersExportData
[
i
]}
,`
<%-
`
${
winnersExportData
[
i
]}
`
%><%
}
%>
%><%
}
%>
]
]
]
]
...
@@ -134,19 +133,7 @@ export default class BaseController {
...
@@ -134,19 +133,7 @@ export default class BaseController {
if
(
v
.
type
==
PRIZE_TYPE
.
THANK
)
prizeType
=
'谢谢参与'
if
(
v
.
type
==
PRIZE_TYPE
.
THANK
)
prizeType
=
'谢谢参与'
}
}
xlsxData
.
push
([
xlsxData
.
push
([
v
.
_id
,
<%-
`
${
winnersExportData
.
includes
(
'奖品编号'
)
&&
'v._id,'
}
`
%>
v
.
userNick
,
v
.
createTime
?
formatTime
(
new
Date
(
v
.
createTime
+
EIGHT_HOURS
))
:
''
,
v
.
type
==
3
?
(
v
.
receiveTime
?
formatTime
(
new
Date
(
v
.
receiveTime
+
EIGHT_HOURS
))
:
'暂未填写'
)
:
'/'
,
prizeType
,
prizeDataType
,
v
.
type
==
2
?
`
${
v
.
credits
||
0
}
积分`
:
v
.
name
||
''
,
v
.
type
==
3
?
v
.
receiveName
||
''
:
'/'
,
v
.
type
==
3
?
(
v
.
phone
?
v
.
phone
+
''
:
'暂未填写'
)
:
'/'
,
v
.
type
==
3
?
v
.
province
+
v
.
city
+
v
.
area
+
v
.
streetName
+
v
.
addressDetail
||
'暂未填写'
:
'/'
,
shipTxt
,
v
.
type
==
3
?
v
.
shipCompany
||
''
:
'/'
,
v
.
type
==
3
?
(
v
.
shipNum
?
v
.
shipNum
+
''
:
''
)
:
'/'
])
])
})
})
let
buffer
=
xlsx
.
build
([
let
buffer
=
xlsx
.
build
([
...
...
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