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-platform
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-platform
Commits
d895158e
Commit
d895158e
authored
Aug 09, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
358ce519
b93ef253
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
attendance-performance-manager-ui/admin/src/assets/mixins/table.js
...e-performance-manager-ui/admin/src/assets/mixins/table.js
+28
-0
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
...mance-manager-ui/admin/src/views/attendance/stat/list.vue
+11
-1
No files found.
attendance-performance-manager-ui/admin/src/assets/mixins/table.js
View file @
d895158e
...
...
@@ -92,6 +92,34 @@ export default {
},
300
);
});
},
// 默认拉取数据
async
getTable
()
{
try
{
await
this
.
beforeFecth
();
}
catch
(
error
)
{
return
;
}
this
.
tableData
.
loading
=
true
;
this
.
$post
(
"
/attendance/stat/summary
"
,
this
.
query
,
{
cancelToken
:
this
.
source
.
token
,
})
.
then
(({
data
})
=>
{
this
.
tableData
=
this
.
beforeRender
(
Object
.
assign
({},
this
.
tableData
,
data
)
);
this
.
afterRender
(
this
.
tableData
);
})
.
catch
((
error
)
=>
{
if
(
error
.
message
==
"
自动取消ajax操作
"
)
return
;
this
.
$message
.
error
(
error
.
message
);
})
.
then
((
data
)
=>
{
clearTimeout
(
this
.
loadingTimer
);
this
.
loadingTimer
=
setTimeout
(()
=>
{
this
.
tableData
.
loading
=
false
;
},
300
);
});
},
// 复制一个数组或对象
util_copy
(
data
)
{
if
(
typeof
data
!==
"
object
"
)
return
data
;
...
...
attendance-performance-manager-ui/admin/src/views/attendance/stat/list.vue
View file @
d895158e
...
...
@@ -28,6 +28,14 @@
@
click=
"setdialog"
>
表格设置
</el-button
>
<el-button
slot=
"table-head-left2"
style=
"margin-left: 10px"
icon=
"el-icon-tickets"
size=
"mini"
@
click=
"restTable"
>
重新汇总
</el-button
>
</LayoutTable>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
<!-- 表格设置 -->
...
...
@@ -101,6 +109,9 @@ export default {
return
"
-
"
;
}
},
restTable
()
{
this
.
getTable
();
},
afterRender
(
data
)
{
this
.
addColumn
=
getdiffdate
(
this
.
query
.
summaryTimeStart
,
...
...
@@ -129,7 +140,6 @@ export default {
this
.
$forceUpdate
();
},
beforeRender
(
row
)
{
console
.
log
(
row
.
data
);
row
.
data
.
forEach
((
element
)
=>
{
if
(
element
.
attendanceStaffStatEntities
&&
...
...
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