|
@@ -133,15 +133,12 @@
|
|
|
created() {
|
|
|
this.originNumberColumns = JSON.parse(JSON.stringify(this.entryNumberColumns))
|
|
|
this.originRateColumns = JSON.parse(JSON.stringify(this.entryRateColumns))
|
|
|
- // console.log(this.originRateColumns)
|
|
|
- // console.log(JSON.stringify(this.originRateColumns))
|
|
|
|
|
|
let scatter = this.$store.state.totalAnalysis.scatter
|
|
|
this.classList = this.$store.state.totalAnalysis.classList
|
|
|
|
|
|
this.analysisJson = this.getAnalysisJson
|
|
|
console.log(this.analysisJson)
|
|
|
-
|
|
|
|
|
|
},
|
|
|
|
|
@@ -164,17 +161,14 @@
|
|
|
})
|
|
|
// 清除之前的科目columns 添加当前评测的科目columns
|
|
|
let fixColumns = this.isAllSubject ? 4 : 3
|
|
|
- this.entryNumberColumns.splice(fixColumns, this.entryNumberColumns.length - fixColumns, ...subjectColumns)
|
|
|
if (!this.isAllSubject) {
|
|
|
- console.log(this.entryRateColumns.map(i => i.key).includes('entryNum'))
|
|
|
- this.entryRateColumns.map(i => i.key).includes('entryNum') && this.entryRateColumns.splice(3,1)
|
|
|
+ this.entryRateColumns = this.entryRateColumns.filter(i => i.key !== 'entryNum')
|
|
|
+ this.entryNumberColumns = this.entryNumberColumns.filter(i => i.key !== 'score')
|
|
|
} else {
|
|
|
- this.entryRateColumns = this.originRateColumns
|
|
|
+ this.entryRateColumns = JSON.parse(JSON.stringify(this.originRateColumns))
|
|
|
+ this.entryNumberColumns = JSON.parse(JSON.stringify(this.originNumberColumns))
|
|
|
}
|
|
|
- console.log('更新后的',this.entryRateColumns)
|
|
|
-
|
|
|
- // this.entryTableData = this.getTableDatas(data)
|
|
|
- // this.entryBarData = this.getEntryBarData(data)
|
|
|
+ this.entryNumberColumns.splice(fixColumns, this.entryNumberColumns.length - fixColumns, ...subjectColumns)
|
|
|
|
|
|
},
|
|
|
|
|
@@ -208,7 +202,6 @@
|
|
|
|
|
|
/* 获取进线率统计数据 */
|
|
|
getEntryBarData(analysisJson) {
|
|
|
- console.log(this.isAllSubject)
|
|
|
let result = []
|
|
|
analysisJson.classes.forEach((classItem, classIndex) => {
|
|
|
result.push({
|
|
@@ -253,8 +246,7 @@
|
|
|
})
|
|
|
this.entryRateColumns[1].filters = filterArr
|
|
|
this.entryNumberColumns[1].filters = filterArr
|
|
|
- this.renderColumns(this.getAnalysisJson) // 渲染科目表头
|
|
|
-
|
|
|
+ this.renderColumns(this.getAnalysisJson)
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -278,8 +270,6 @@
|
|
|
this.renderColumns(val)
|
|
|
this.entryTableData = this.getTableDatas(val)
|
|
|
this.entryBarData = this.getEntryBarData(val)
|
|
|
- console.log(this.isAllSubject)
|
|
|
- console.log(this.curSubjectIndex)
|
|
|
},
|
|
|
}
|
|
|
}
|