Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Administrator
web-monitor
Commits
54d2847f
Commit
54d2847f
authored
Mar 08, 2022
by
neogcg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3/8
parent
f80e7e2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
index.vue
src/views/user/userLog/index.vue
+16
-1
No files found.
src/views/user/userLog/index.vue
View file @
54d2847f
...
...
@@ -87,7 +87,22 @@ export default {
current
:
this
.
params
.
pageNum
,
size
:
this
.
params
.
pageSize
}
exportLog
(
params
).
then
(
res
=>
{})
exportLog
(
params
).
then
(
res
=>
{
if
(
res
)
{
const
xlsx
=
'application/vnd.ms-excel'
const
blob
=
new
Blob
([
res
],
{
type
:
xlsx
})
const
a
=
document
.
createElement
(
'a'
)
a
.
download
=
'fileName.xls'
a
.
href
=
window
.
URL
.
createObjectURL
(
blob
)
a
.
click
()
a
.
remove
()
}
else
{
this
.
$message
.
error
(
'导出失败'
)
}
//
})
}
},
mounted
()
{
this
.
getTableData
()
},
...
...
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