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
939a04f2
Commit
939a04f2
authored
Aug 11, 2021
by
yangqingjie
Browse files
Options
Browse Files
Download
Plain Diff
update
parents
2005e07d
5d5fae90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
18 deletions
+33
-18
PopupFrame.vue
src/components/PopupFrame.vue
+1
-0
Right.vue
src/pages/index/Right.vue
+32
-18
No files found.
src/components/PopupFrame.vue
View file @
939a04f2
...
@@ -96,6 +96,7 @@ export default {
...
@@ -96,6 +96,7 @@ export default {
top
:
20px
;
top
:
20px
;
right
:
20px
;
right
:
20px
;
cursor
:
pointer
;
cursor
:
pointer
;
z-index
:
102
;
}
}
}
}
}
}
...
...
src/pages/index/Right.vue
View file @
939a04f2
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div
class=
"course"
>
<div
class=
"course"
>
<div
class=
"coursetitle"
>
<div
class=
"coursetitle"
>
<div
class=
"minTitle"
>
教学课程
</div>
<div
class=
"minTitle"
>
教学课程
</div>
<div
class=
"seemore"
>
查看更多
</div>
<div
class=
"seemore"
@
click=
"Seemore"
>
查看更多
</div>
</div>
</div>
<p
class=
"percent"
>
<p
class=
"percent"
>
<span
v-for=
"(item, l) in coursedata"
:key=
"l"
>
<span
v-for=
"(item, l) in coursedata"
:key=
"l"
>
...
@@ -27,6 +27,10 @@
...
@@ -27,6 +27,10 @@
<bar-chart
:layout=
"lineConfig.layout"
:option=
"lineConfig.option"
/>
<bar-chart
:layout=
"lineConfig.layout"
:option=
"lineConfig.option"
/>
</div>
</div>
</div>
</div>
<popup-frame
:visible
.
sync=
"visible"
@
beforeClose=
"closePopup"
>
<img
src=
"../../../static/images/index/course.jpg"
alt=
"弹框"
>
</popup-frame>
<!-- 学习内容 -->
<!-- 学习内容 -->
<div
class=
"learnContent"
>
<div
class=
"learnContent"
>
<div
class=
"minTitle"
>
学习内容
</div>
<div
class=
"minTitle"
>
学习内容
</div>
...
@@ -41,7 +45,7 @@
...
@@ -41,7 +45,7 @@
<div
class=
"activity-two"
>
<div
class=
"activity-two"
>
<div
class=
"left"
>
<div
class=
"left"
>
<div
class=
"act-left"
>
<div
class=
"act-left"
>
<count-roll
:count=
activeSum
/><span>
次
</span>
<count-roll
:count=
"4166"
/><span>
次
</span>
</div>
</div>
<p
class=
"act-num"
>
活动开展次数
</p>
<p
class=
"act-num"
>
活动开展次数
</p>
</div>
</div>
...
@@ -179,27 +183,14 @@ export default {
...
@@ -179,27 +183,14 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
visible
:
false
,
activeShow
:
false
,
activeShow
:
false
,
showVisible
:
false
,
showVisible
:
false
,
// 师资力量
// 师资力量
eduConfig
:
{},
eduConfig
:
{},
edu
:
null
,
edu
:
null
,
staffConfig
:
{},
staffConfig
:
{},
staff
:
[
staff
:
[],
{
name
:
'****教授'
,
value
:
41
},
{
name
:
'****名师'
,
value
:
53
},
{
name
:
'*****专家'
,
value
:
61
},
{
name
:
'*******'
,
value
:
12
}
],
// 教学课程
// 教学课程
coursedata
:
[],
coursedata
:
[],
lineConfig
:
{},
lineConfig
:
{},
...
@@ -366,6 +357,14 @@ export default {
...
@@ -366,6 +357,14 @@ export default {
}
}
})
||
[]
})
||
[]
},
},
// 教学课程更多
Seemore
()
{
this
.
visible
=
true
},
// 教学课程更多关闭
closePopup
(
flag
)
{
this
.
visible
=
flag
},
// 教学课程百分比
// 教学课程百分比
getline
()
{
getline
()
{
this
.
lineConfig
=
{
this
.
lineConfig
=
{
...
@@ -467,6 +466,11 @@ export default {
...
@@ -467,6 +466,11 @@ export default {
getlearn
()
{
getlearn
()
{
const
xData
=
this
.
rightData
.
learn
.
data
.
list
.
map
(
v
=>
v
.
key
)
const
xData
=
this
.
rightData
.
learn
.
data
.
list
.
map
(
v
=>
v
.
key
)
const
Data
=
this
.
rightData
.
learn
.
data
.
list
.
map
(
v
=>
v
.
value
)
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
=
{
this
.
learnConfig
=
{
layout
:
{
layout
:
{
width
:
'100%'
,
width
:
'100%'
,
...
@@ -482,6 +486,16 @@ export default {
...
@@ -482,6 +486,16 @@ export default {
textStyle
:
{
textStyle
:
{
color
:
'#ffffff'
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)'
,
backgroundColor
:
'rgba(55, 128, 246, 0.2)'
,
borderColor
:
'rgba(55, 128, 246, 0.2)'
borderColor
:
'rgba(55, 128, 246, 0.2)'
},
},
...
@@ -563,7 +577,7 @@ export default {
...
@@ -563,7 +577,7 @@ export default {
label
:
{
label
:
{
show
:
false
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