班级评比代码提交

init
gongdi 4 years ago
parent 36b338eeca
commit cefb7dc730

@ -370,6 +370,11 @@
] ]
} }
) )
window.addEventListener("resize", () => {
if(echart){
echart.resize()
}
})
}, },
getStudentListByClass:function () { getStudentListByClass:function () {
this.showLoading = true; this.showLoading = true;

@ -378,6 +378,11 @@
] ]
} }
) )
window.addEventListener("resize", () => {
if(echart){
echart.resize()
}
})
}, },
taskChange: function (value) { taskChange: function (value) {
let taskId = value.substring(0, value.indexOf('-')); let taskId = value.substring(0, value.indexOf('-'));

@ -3,12 +3,14 @@
<TabComp :tabArr="tabArr" showName="title" @tabChange="tabChange"></TabComp> <TabComp :tabArr="tabArr" showName="title" @tabChange="tabChange"></TabComp>
<TotalEvaluation v-if="tabIndex == 0"/> <TotalEvaluation v-if="tabIndex == 0"/>
<ClassEvaluation v-if="tabIndex == 1"/> <ClassEvaluation v-if="tabIndex == 1"/>
<ScoreRecord v-if="tabIndex == 2"/>
</div> </div>
</template> </template>
<script> <script>
import TabComp from '../common/tabComp.vue'; import TabComp from '../common/tabComp.vue';
import TotalEvaluation from './totalEva.vue'; import TotalEvaluation from './totalEva.vue';
import ClassEvaluation from './classEva.vue'; import ClassEvaluation from './classEva.vue';
import ScoreRecord from './scoreRecord.vue';
export default{ export default{
data(){ data(){
return { return {
@ -32,7 +34,8 @@
components: { components: {
TabComp, TabComp,
TotalEvaluation, TotalEvaluation,
ClassEvaluation ClassEvaluation,
ScoreRecord
} }
} }
</script> </script>

@ -0,0 +1,24 @@
<template>
<div class="score-record-div">
</div>
</template>
<script>
export default{
data(){
return {}
}
}
</script>
<style lang="scss">
.score-record-div{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
</style>

@ -428,6 +428,11 @@
] ]
} }
); );
window.addEventListener("resize", () => {
if(echart){
echart.resize()
}
})
}, },
getTargetOption: function () { getTargetOption: function () {
this.showLoadingII = true; this.showLoadingII = true;
@ -454,7 +459,6 @@
}) })
}, },
buildTargetEchart:function (data) { buildTargetEchart:function (data) {
console.log("班级指标对比:",data)
// //
let echart = echarts.getInstanceByDom(document.getElementById("classTargetEchart")); let echart = echarts.getInstanceByDom(document.getElementById("classTargetEchart"));
if (echart == null) { if (echart == null) {
@ -530,6 +534,11 @@
series: seriesData series: seriesData
} }
); );
window.addEventListener("resize", () => {
if(echart){
echart.resize()
}
})
}, },
getStudentRange:function () { getStudentRange:function () {
this.showLoadingIII = true; this.showLoadingIII = true;

Loading…
Cancel
Save