Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
video-monitoring
Project
Project
Details
Activity
Releases
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
刘怀志
video-monitoring
Commits
a78ca7bf
Commit
a78ca7bf
authored
Aug 06, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出为空报错修改
parent
0f96b135
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
index.vue
src/views/employee/index.vue
+11
-0
No files found.
src/views/employee/index.vue
View file @
a78ca7bf
...
@@ -812,6 +812,17 @@ export default {
...
@@ -812,6 +812,17 @@ export default {
handleExport
()
{
handleExport
()
{
// 获取选中的用户 ID
// 获取选中的用户 ID
const
userIds
=
this
.
ids
;
const
userIds
=
this
.
ids
;
if
(
userIds
.
length
===
0
)
{
// 如果没有选中的数据,显示提示信息
this
.
$message
({
message
:
'请至少选择一条数据进行导出。'
,
type
:
'warning'
});
return
;
}
// 如果有选中的数据,则继续导出操作
this
.
download
(
'system/user/export'
,
userIds
,
`user_
${
new
Date
().
getTime
()}
.xlsx`
);
this
.
download
(
'system/user/export'
,
userIds
,
`user_
${
new
Date
().
getTime
()}
.xlsx`
);
},
},
/** 导入按钮操作 */
/** 导入按钮操作 */
...
...
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