Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
faac62e6
Commit
faac62e6
authored
Jul 06, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
50bb351e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
167 additions
and
1 deletion
+167
-1
user.js
src/api/users/user.js
+13
-0
summaryInfo.vue
src/components/user/summaryInfo.vue
+154
-1
No files found.
src/api/users/user.js
View file @
faac62e6
...
@@ -111,3 +111,16 @@ export function getEmployeeAddrBook(data)
...
@@ -111,3 +111,16 @@ export function getEmployeeAddrBook(data)
data
data
})
})
}
}
/**
* 获取个人中心信息
*/
export
function
getUserCenterInfo
(
data
)
{
return
request
({
url
:
'/UserInfo/GetUserCenterInfo'
,
method
:
'post'
,
data
})
}
src/components/user/summaryInfo.vue
View file @
faac62e6
...
@@ -42,6 +42,18 @@
...
@@ -42,6 +42,18 @@
height
:
82px
;
height
:
82px
;
border-radius
:
6px
;
border-radius
:
6px
;
}
}
.summaryInfo
.box_c
{
margin-top
:
30px
;
min-height
:
400px
;
}
.summaryInfo
.box_c_item
{
background
:
#FFF
;
min-height
:
400px
;
border-radius
:
6px
;
padding
:
20px
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"summaryInfo"
>
<div
class=
"summaryInfo"
>
...
@@ -121,6 +133,48 @@
...
@@ -121,6 +133,48 @@
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
<div
class=
"box_c"
>
<el-row
:gutter=
"15"
>
<el-col
:span=
"8"
>
<div
class=
"box_c_item"
>
<div
class=
"box_t_it"
>
<div
style=
"display: flex;align-items: center;"
>
<inline-svg
class=
"svg-icon q-mr-xs svg-icon-secondary"
src=
"icons/svg/Communication/Urgent-mail.svg"
></inline-svg>
<span
class=
"box_t_itext"
>
我的提成
</span>
</div>
</div>
<div
id=
"main"
style=
"width: 100%;height:300px;"
>
</div>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"box_c_item"
>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"box_c_item"
>
<div
class=
"box_t_it"
>
<div
style=
"display: flex;align-items: center;"
>
<inline-svg
class=
"svg-icon q-mr-xs svg-icon-secondary"
src=
"icons/svg/Communication/Urgent-mail.svg"
></inline-svg>
<span
class=
"box_t_itext"
>
新同事
</span>
</div>
</div>
<div
class=
"page-content"
style=
"margin-top: 44px;"
>
<q-table
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
separator=
"none"
title=
""
:data=
"UserInfo.EmployeeListResult"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:bottom
>
</
template
>
</q-table>
</div>
</div>
</el-col>
</el-row>
</div>
</div>
</div>
</template>
</template>
...
@@ -129,9 +183,12 @@
...
@@ -129,9 +183,12 @@
SetWebCartoon
,
SetWebCartoon
,
GetWebCartoon
GetWebCartoon
}
from
'../../api/system/webkit'
}
from
'../../api/system/webkit'
import
{
getUserCenterInfo
}
from
'../../api/users/user'
import
{
import
{
GetMyNoticePageList
,
GetMyNoticePageList
,
BeatchReadMsgLog
BeatchReadMsgLog
,
}
from
'../../api/course/index'
}
from
'../../api/course/index'
import
{
import
{
GetMsgLogList
GetMsgLogList
...
@@ -154,13 +211,102 @@
...
@@ -154,13 +211,102 @@
visible
:
true
,
visible
:
true
,
noticeList
:
[],
noticeList
:
[],
socektArr
:
[],
//消息数组
socektArr
:
[],
//消息数组
columns
:
[{
name
:
'EmployeeName'
,
label
:
'姓名'
,
align
:
'left'
,
field
:
'EmployeeName'
,
},
{
name
:
'DeptName'
,
label
:
'部门'
,
align
:
'left'
,
field
:
'DeptName'
},
{
name
:
'PostName'
,
label
:
'职位'
,
field
:
'PostName'
,
align
:
'left'
},
{
name
:
'AccountRemark'
,
label
:
'备注'
,
field
:
'AccountRemark'
,
align
:
'left'
},
],
UserInfo
:
{
EmployeeListResult
:
[{
"EmployeeName"
:
"周建"
,
"DeptName"
:
"教学部"
,
"PostName"
:
"实习生"
,
"AccountRemark"
:
null
,
"AccountId"
:
66
,
"AccountType"
:
1
,
"School_Id"
:
0
,
"Id"
:
2689
},
{
"EmployeeName"
:
"周建"
,
"DeptName"
:
"教学部"
,
"PostName"
:
"实习生"
,
"AccountRemark"
:
null
,
"AccountId"
:
66
,
"AccountType"
:
1
,
"School_Id"
:
0
,
"Id"
:
2689
},
{
"EmployeeName"
:
"周建"
,
"DeptName"
:
"教学部"
,
"PostName"
:
"实习生"
,
"AccountRemark"
:
null
,
"AccountId"
:
66
,
"AccountType"
:
1
,
"School_Id"
:
0
,
"Id"
:
2689
},]
},
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getNotify
();
this
.
getNotify
();
this
.
getLogList
()
this
.
getLogList
()
this
.
getUserInfo
()
//个人中心
this
.
tubiao
()
},
},
methods
:
{
methods
:
{
tubiao
()
{
var
echarts
=
require
(
'echarts'
)
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'main'
))
// 指定图表的配置项和数据
var
option
=
{
grid
:
{
left
:
'0%'
,
right
:
'0%'
,
bottom
:
'0%'
,
containLabel
:
true
},
xAxis
:
{
type
:
'category'
,
data
:
[
'1月'
,
'2月'
,
'3月'
,
'4月'
,
'5月'
,
'6月'
,
'7月'
]
},
yAxis
:
{
type
:
'value'
},
series
:
[{
data
:
[
820
,
932
,
901
,
934
,
1290
,
1330
,
1320
],
type
:
'line'
,
smooth
:
true
}]
}
// 使用刚指定的配置项和数据显示图表。
myChart
.
setOption
(
option
)
},
//请求公告数据
//请求公告数据
getNotify
()
{
getNotify
()
{
GetMyNoticePageList
(
this
.
noticeMsg
).
then
(
res
=>
{
GetMyNoticePageList
(
this
.
noticeMsg
).
then
(
res
=>
{
...
@@ -178,6 +324,13 @@
...
@@ -178,6 +324,13 @@
}
}
})
})
},
},
getUserInfo
()
{
getUserCenterInfo
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
UserInfo
=
res
.
Data
;
}
})
},
//跳转详情
//跳转详情
goNoticeDetail
(
item
)
{
goNoticeDetail
(
item
)
{
var
url
=
window
.
location
.
host
;
var
url
=
window
.
location
.
host
;
...
...
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