Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-manager-ui
Commits
8f1f3fd0
Commit
8f1f3fd0
authored
Jul 08, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交异常处理添加导出
parent
5b09ad4b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
0 deletions
+74
-0
src/views/attendance/record/error/list.vue
src/views/attendance/record/error/list.vue
+73
-0
src/views/attendance/record/list.vue
src/views/attendance/record/list.vue
+1
-0
No files found.
src/views/attendance/record/error/list.vue
View file @
8f1f3fd0
...
@@ -9,6 +9,16 @@
...
@@ -9,6 +9,16 @@
@
click=
"morehandle"
@
click=
"morehandle"
>
批量处理
</el-button
>
批量处理
</el-button
>
>
<el-button
slot=
"table-head-left2"
style=
"margin-left: 10px"
icon=
"el-icon-tickets"
size=
"mini"
type=
"primary"
@
click=
"doExport"
:disabled=
"isExport"
>
导出
</el-button
>
</LayoutTable>
</LayoutTable>
<drawer-show
ref=
"drawerShow"
@
ok=
"getData"
/>
<drawer-show
ref=
"drawerShow"
@
ok=
"getData"
/>
<!-- 撤销提示 -->
<!-- 撤销提示 -->
...
@@ -21,6 +31,9 @@
...
@@ -21,6 +31,9 @@
<el-button
type=
"primary"
@
click=
"resetError"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"resetError"
>
确定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<div
class=
"mask"
v-if=
"progress"
>
<el-progress
:stroke-width=
"26"
:percentage=
"percent"
></el-progress>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -36,6 +49,46 @@ export default {
...
@@ -36,6 +49,46 @@ export default {
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
created
()
{},
methods
:
{
methods
:
{
/** 导出Excel */
doExport
()
{
if
(
this
.
isExport
==
true
)
{
this
.
$message
.
info
(
"
数据正在导出中,请勿重复点击!
"
);
return
false
;
}
this
.
isExport
=
true
;
this
.
progress
=
true
;
let
params
=
{};
for
(
let
value
of
this
.
config
.
search
)
{
if
(
this
.
query
[
value
.
name
])
{
params
[
value
.
name
]
=
this
.
query
[
value
.
name
];
}
}
this
.
percent
=
75
;
if
(
this
.
selection
.
length
>
0
)
{
params
[
"
idList
"
]
=
this
.
selection
;
}
console
.
log
();
let
that
=
this
;
this
.
$download
(
"
/attendance/record/error/exportExcel
"
,
{
...
params
,
},
{
type
:
"
excel
"
}
)
.
then
(()
=>
{
this
.
percent
=
100
;
this
.
progress
=
false
;
that
.
isExport
=
false
;
})
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
progress
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
/** 重写新增方法 */
// toAdd(row) {
// toAdd(row) {
// this.$refs.dialogform.add(row);
// this.$refs.dialogform.add(row);
...
@@ -89,6 +142,9 @@ export default {
...
@@ -89,6 +142,9 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
percent
:
0
,
isExport
:
false
,
progress
:
false
,
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -250,3 +306,20 @@ export default {
...
@@ -250,3 +306,20 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
.mask {
width: 100%;
height: 100vh;
position: fixed;
top: 0;
left: 0;
z-index: 99;
padding: 0 30%;
padding-top: 20%;
background: rgba(0, 0, 0, 0.6);
}
::v-deep .el-progress__text {
color: #409eff;
font-weight: 600;
}
</
style
>
src/views/attendance/record/list.vue
View file @
8f1f3fd0
...
@@ -525,6 +525,7 @@ export default {
...
@@ -525,6 +525,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isExport
:
false
,
// 动态新增列表
// 动态新增列表
addColumn
:
[],
addColumn
:
[],
progress
:
false
,
progress
:
false
,
...
...
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