|
@@ -175,9 +175,11 @@
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
let that = this;
|
|
let that = this;
|
|
|
|
+ let scoreList = lessonDetails[this.rowKey].score
|
|
this.commmentList = lessonDetails[this.rowKey].commentList;
|
|
this.commmentList = lessonDetails[this.rowKey].commentList;
|
|
this.expertComments = lessonDetails[this.rowKey].expertComments;
|
|
this.expertComments = lessonDetails[this.rowKey].expertComments;
|
|
- this.scoreList = lessonDetails[this.rowKey].score;
|
|
|
|
|
|
+ this.scoreList = scoreList;
|
|
|
|
+ this.score = (scoreList.reduce((acc, val) => acc + val, 0) / scoreList.length).toFixed(0)
|
|
|
|
|
|
let myChart = this.$echarts.init(document.getElementById('views'));
|
|
let myChart = this.$echarts.init(document.getElementById('views'));
|
|
let radarLeft = this.$echarts.init(document.getElementById('radarLeft'));
|
|
let radarLeft = this.$echarts.init(document.getElementById('radarLeft'));
|
|
@@ -312,11 +314,11 @@
|
|
|
|
|
|
let scoreRightOption = {
|
|
let scoreRightOption = {
|
|
tooltip : {
|
|
tooltip : {
|
|
- formatter: "{a} <br/>{b} : {c}%"
|
|
|
|
|
|
+ formatter: "{a} {b} : {c}分"
|
|
},
|
|
},
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|
|
- name: '业务指标',
|
|
|
|
|
|
+ name: '最终得分',
|
|
type: 'gauge',
|
|
type: 'gauge',
|
|
radius:'80%',
|
|
radius:'80%',
|
|
splitNumber:'5',
|
|
splitNumber:'5',
|
|
@@ -325,8 +327,8 @@
|
|
fontWeight:'bolder',
|
|
fontWeight:'bolder',
|
|
padding:[0,0,0,0],
|
|
padding:[0,0,0,0],
|
|
color:"#00868B"
|
|
color:"#00868B"
|
|
- },
|
|
|
|
- data: [{value: 60}]
|
|
|
|
|
|
+ },
|
|
|
|
+ data: [{ value: this.score }]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
};
|
|
};
|
|
@@ -450,7 +452,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
.review-pane {
|
|
.review-pane {
|
|
- height: 700px;
|
|
|
|
|
|
+ max-height: 1000px;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
position: relative;
|