|
|
@@ -20,21 +20,29 @@
|
|
|
:high-vulnerability="highVulnerability"
|
|
|
:mode="radio1"
|
|
|
/>
|
|
|
+
|
|
|
+ <!-- 历次变化 -->
|
|
|
+ <HistoricalChangeChart :mode="radio1" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import MyGradeHistory from './MyGradeHistory.vue';
|
|
|
-import KnowledgeTrack from './KnowledgeTrack.vue';
|
|
|
-import zeroScoreKnowledge from './zeroScoreKnowledge.vue';
|
|
|
+import MyGradeHistory from './MyGradeHistory.vue'; //我的历次成绩子组件
|
|
|
+import KnowledgeTrack from './KnowledgeTrack.vue'; //历次考试知识点追踪子组件
|
|
|
+import zeroScoreKnowledge from './zeroScoreKnowledge.vue'; //零分知识点、高频错题知识点子组件
|
|
|
+import HistoricalChangeChart from './HistoricalChangeChart.vue'; //历次变化子组件
|
|
|
|
|
|
export default {
|
|
|
name: "PersonalProfile",
|
|
|
components: {
|
|
|
MyGradeHistory,
|
|
|
KnowledgeTrack,
|
|
|
- zeroScoreKnowledge
|
|
|
+ zeroScoreKnowledge,
|
|
|
+ HistoricalChangeChart
|
|
|
},
|
|
|
computed: {
|
|
|
+ portraitData(){
|
|
|
+ return this.$store.state.report.filterObject;
|
|
|
+ },
|
|
|
// 动态生成知识统计文本,使用repeatKnowledgeNum
|
|
|
knowledgeStats() {
|
|
|
const stats = [];
|
|
|
@@ -54,6 +62,7 @@ export default {
|
|
|
); //重复知识点
|
|
|
return stats;
|
|
|
},
|
|
|
+
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -69,15 +78,30 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ // 历次考试知识点追踪数据
|
|
|
+ this.MyGradeHistoryData();
|
|
|
//零分知识点、高频知识点
|
|
|
- this.vulerabData()
|
|
|
+ this.vulerabData();
|
|
|
+ // 年级画像
|
|
|
},
|
|
|
methods: {
|
|
|
// 画像切换
|
|
|
portraitTab() {
|
|
|
-
|
|
|
},
|
|
|
- // 零分知识点、高频错题知识点数据
|
|
|
+ // 历次考试知识点---年级画像
|
|
|
+ MyGradeHistoryData(){
|
|
|
+ let examParams = {
|
|
|
+ examId: this.portraitData.examId,
|
|
|
+ subjectCode: this.portraitData.subjectCode,
|
|
|
+ };
|
|
|
+ this.$api.personalProfile.examScoreList(examParams).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.treeData = res.data;
|
|
|
+ console.log(this.treeData);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 零分知识点、高频错题知识点----年级
|
|
|
vulerabData() {
|
|
|
// 零分知识点数据
|
|
|
this.fatalVulnerability = [
|
|
|
@@ -165,7 +189,7 @@ export default {
|
|
|
|
|
|
:deep(.el-radio-button__inner) {
|
|
|
height: 36px;
|
|
|
- line-height: 36px;
|
|
|
+ line-height: 34px;
|
|
|
padding: 0px;
|
|
|
width: 76px;
|
|
|
text-align: center;
|