Commit 939a04f2 by yangqingjie

update

parents 2005e07d 5d5fae90
...@@ -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;
} }
} }
} }
......
...@@ -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: Data data: maxdata
} }
] ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment