Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
dsk-cr20g
Commits
bc882f9d
Commit
bc882f9d
authored
Sep 19, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
38fcfe24
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
3 deletions
+74
-3
user.js
dsk-operate-ui/src/api/system/user.js
+9
-0
index.vue
dsk-operate-ui/src/views/system/user/profile/index.vue
+65
-3
No files found.
dsk-operate-ui/src/api/system/user.js
View file @
bc882f9d
...
...
@@ -133,3 +133,12 @@ export function deptTreeSelect() {
method
:
'get'
})
}
// 用户文件记录列表
export
function
fileList
(
data
)
{
return
request
({
url
:
'/user/file/record/list'
,
method
:
'get'
,
params
:
data
})
}
dsk-operate-ui/src/views/system/user/profile/index.vue
View file @
bc882f9d
...
...
@@ -53,6 +53,38 @@
</el-tab-pane>
</el-tabs>
</el-card>
<el-card
style=
"margin-top: 16px"
v-if=
"tableDataTotal > 0"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
数据导出
</span>
</div>
<skeleton
v-if=
"isSkeleton"
style=
"padding: 16px"
></skeleton>
<div
class=
"table-item"
>
<el-table
class=
"fixed-table"
:data=
"tableData"
element-loading-text=
"Loading"
v-horizontal-scroll=
"'hover'"
max-height=
"640px"
border
highlight-current-row
v-if=
"tableDataTotal > 0 && !isSkeleton"
>
<el-table-column
label=
"序号"
width=
"60"
align=
"left"
>
<template
slot-scope=
"scope"
>
{{
(
params
.
pageNum
-
1
)
*
params
.
pageSize
+
scope
.
$index
+
1
}}
</
template
>
</el-table-column>
<el-table-column
label=
"导出表格名称"
align=
"left"
prop=
"fileName"
></el-table-column>
<el-table-column
label=
"导出时间"
align=
"left"
prop=
"createTime"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
align=
"left"
>
<div
class=
"wordprimary"
style=
"text-align: left"
@
click=
"getFile(scope.row.url)"
>
下载表格
</div>
</
template
>
</el-table-column>
</el-table>
</div>
<div
class=
"pagination-box"
v-if=
"tableDataTotal>params.pageSize"
>
<el-pagination
background
:current-page=
"params.pageNum"
:page-size=
"params.pageSize"
:total=
"tableDataTotal"
layout=
"prev, pager, next, jumper"
@
current-change=
"handleCurrentChange"
@
size-change=
"handleSizeChange"
/>
</div>
</el-card>
</el-col>
</el-row>
</div>
...
...
@@ -62,21 +94,27 @@
import
userAvatar
from
"./userAvatar"
;
import
userInfo
from
"./userInfo"
;
import
resetPwd
from
"./resetPwd"
;
import
{
getUserProfile
}
from
"@/api/system/user"
;
import
{
getUserProfile
,
fileList
}
from
"@/api/system/user"
;
import
skeleton
from
'@/views/project/projectList/component/skeleton'
export
default
{
name
:
"Profile"
,
components
:
{
userAvatar
,
userInfo
,
resetPwd
},
components
:
{
userAvatar
,
userInfo
,
resetPwd
,
skeleton
},
data
()
{
return
{
user
:
{},
roleGroup
:
{},
postGroup
:
{},
activeTab
:
"userinfo"
activeTab
:
"userinfo"
,
isSkeleton
:
true
,
tableData
:[],
tableDataTotal
:
0
,
params
:{
pageNum
:
1
,
pageSize
:
10
},
};
},
created
()
{
this
.
getUser
();
this
.
fileList
()
},
methods
:
{
getUser
()
{
...
...
@@ -85,6 +123,30 @@ export default {
this
.
roleGroup
=
response
.
data
.
roleGroup
;
this
.
postGroup
=
response
.
data
.
postGroup
;
});
},
fileList
(){
fileList
(
this
.
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
tableData
=
res
.
rows
this
.
tableDataTotal
=
res
.
total
}
else
{
this
.
tableData
=
[]
this
.
tableDataTotal
=
0
}
this
.
isSkeleton
=
false
})
},
handleCurrentChange
(
val
){
this
.
params
.
pageNum
=
val
this
.
fileList
()
},
handleSizeChange
(
val
){
this
.
params
.
pageNum
=
1
this
.
params
.
pageSize
=
val
this
.
fileList
()
},
getFile
(
url
){
window
.
open
(
url
)
}
}
};
...
...
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