Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
ZhangJianFrontEnd
Overview
Overview
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
vue-project
ZhangJian
ZhangJianFrontEnd
Commits
75c9ec2f
Commit
75c9ec2f
authored
Aug 10, 2021
by
wangr
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/20210819' into wangrui
parents
484ea623
ae76040e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
17 deletions
+31
-17
Right.vue
src/pages/index/Right.vue
+31
-17
No files found.
src/pages/index/Right.vue
View file @
75c9ec2f
...
...
@@ -15,7 +15,7 @@
<div
class=
"course"
>
<div
class=
"coursetitle"
>
<div
class=
"minTitle"
>
教学课程
</div>
<div
class=
"seemore"
>
查看更多
</div>
<div
class=
"seemore"
@
click=
"Seemore"
>
查看更多
</div>
</div>
<p
class=
"percent"
>
<span
v-for=
"(item, l) in coursedata"
:key=
"l"
>
...
...
@@ -27,6 +27,10 @@
<bar-chart
:layout=
"lineConfig.layout"
:option=
"lineConfig.option"
/>
</div>
</div>
<popup-frame
:visible
.
sync=
"visible"
@
beforeClose=
"closePopup"
>
<img
src=
"../../../static/images/index/course.jpg"
alt=
"弹框"
>
</popup-frame>
<!-- 学习内容 -->
<div
class=
"learnContent"
>
<div
class=
"minTitle"
>
学习内容
</div>
...
...
@@ -180,27 +184,14 @@ export default {
},
data
()
{
return
{
visible
:
false
,
activeShow
:
false
,
showVisible
:
false
,
// 师资力量
eduConfig
:
{},
edu
:
null
,
staffConfig
:
{},
staff
:
[
{
name
:
'****教授'
,
value
:
41
},
{
name
:
'****名师'
,
value
:
53
},
{
name
:
'*****专家'
,
value
:
61
},
{
name
:
'*******'
,
value
:
12
}
],
staff
:
[],
// 教学课程
coursedata
:
[],
lineConfig
:
{},
...
...
@@ -366,6 +357,14 @@ export default {
}
})
||
[]
},
// 教学课程更多
Seemore
()
{
this
.
visible
=
true
},
// 教学课程更多关闭
closePopup
(
flag
)
{
this
.
visible
=
flag
},
// 教学课程百分比
getline
()
{
this
.
lineConfig
=
{
...
...
@@ -467,6 +466,11 @@ export default {
getlearn
()
{
const
xData
=
this
.
rightData
.
learn
.
data
.
list
.
map
(
v
=>
v
.
key
)
const
Data
=
this
.
rightData
.
learn
.
data
.
list
.
map
(
v
=>
v
.
value
)
const
max
=
Math
.
max
.
apply
(
null
,
Data
)
const
maxdata
=
this
.
rightData
.
learn
.
data
.
list
.
map
(
v
=>
{
return
((
v
.
value
/
max
)
*
100
).
toFixed
(
2
)
})
const
data
=
this
.
rightData
.
learn
.
data
.
list
this
.
learnConfig
=
{
layout
:
{
width
:
'100%'
,
...
...
@@ -482,6 +486,16 @@ export default {
textStyle
:
{
color
:
'#ffffff'
},
formatter
:
function
(
params
)
{
let
str
data
.
forEach
((
item
,
l
)
=>
{
if
(
item
.
key
===
params
[
0
].
name
)
{
str
=
'<span style='
+
'font-size: 13px;font-family: Century Gothic;font-weight: 400;color: #FFFFFF;'
+
'>'
+
item
.
value
+
item
.
unit
+
'</span><br/><span style='
+
'font-size: 12px;font-family: Microsoft YaHei;font-weight: 400;color: #B8E6FF;'
+
'>'
+
params
[
0
].
name
+
'</span>'
}
})
return
str
},
backgroundColor
:
'rgba(55, 128, 246, 0.2)'
,
borderColor
:
'rgba(55, 128, 246, 0.2)'
},
...
...
@@ -563,7 +577,7 @@ export default {
label
:
{
show
:
false
},
data
:
D
ata
data
:
maxd
ata
}
]
}
...
...
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