|
@@ -300,7 +300,7 @@
|
|
/** 执行筛选条件获取数据 */
|
|
/** 执行筛选条件获取数据 */
|
|
doFilter(filterKey) {
|
|
doFilter(filterKey) {
|
|
this.dataLoading = true;
|
|
this.dataLoading = true;
|
|
- this.$refs.childRef && (this.$refs.childRef[0].collapseList = [])
|
|
|
|
|
|
+ this.$refs.childRef && this.$refs.childRef[0] && (this.$refs.childRef[0].collapseList = [])
|
|
this.collapseList = []; // 所有详情都收起来
|
|
this.collapseList = []; // 所有详情都收起来
|
|
/** 定义查询接口的参数规格 */
|
|
/** 定义查询接口的参数规格 */
|
|
this.filterParams = {
|
|
this.filterParams = {
|
|
@@ -340,7 +340,6 @@
|
|
this.$api.newEvaluation.FindExerciseList(data).then(async (res) => {
|
|
this.$api.newEvaluation.FindExerciseList(data).then(async (res) => {
|
|
if(res.items.length){
|
|
if(res.items.length){
|
|
let list = res.items;
|
|
let list = res.items;
|
|
- console.log(list)
|
|
|
|
if((!this.flag && this.isShowSchoolBank) || (!this.flag && !this.isShowSchoolBank && this.filterOrigin === this.schoolCode)){
|
|
if((!this.flag && this.isShowSchoolBank) || (!this.flag && !this.isShowSchoolBank && this.filterOrigin === this.schoolCode)){
|
|
this.periodCountArr = this.getPeriodCount(res.items)
|
|
this.periodCountArr = this.getPeriodCount(res.items)
|
|
list = res.items.filter(i => i.periodId === this.periodList[this.filterPeriod].id)
|
|
list = res.items.filter(i => i.periodId === this.periodList[this.filterPeriod].id)
|
|
@@ -351,7 +350,6 @@
|
|
/* 获取试题总数 */
|
|
/* 获取试题总数 */
|
|
this.totalNum = list.length;
|
|
this.totalNum = list.length;
|
|
this.originData = list;
|
|
this.originData = list;
|
|
- console.log(list)
|
|
|
|
this.pageChange(1);
|
|
this.pageChange(1);
|
|
}else{
|
|
}else{
|
|
this.originData = []
|
|
this.originData = []
|
|
@@ -404,9 +402,6 @@
|
|
this.fieldCountArr = fieldList.map(i => {
|
|
this.fieldCountArr = fieldList.map(i => {
|
|
return curPeriodCond.subjects.reduce((a,b) => a + this._.sum(this.findKey(b,'field').map(j => j[+i+1+''])),0)
|
|
return curPeriodCond.subjects.reduce((a,b) => a + this._.sum(this.findKey(b,'field').map(j => j[+i+1+''])),0)
|
|
})
|
|
})
|
|
- console.log(curPeriodCond)
|
|
|
|
- console.log(this.subjectList)
|
|
|
|
- console.log(this.subjectCountArr)
|
|
|
|
},
|
|
},
|
|
|
|
|
|
findKey(data, field) {
|
|
findKey(data, field) {
|
|
@@ -625,7 +620,6 @@
|
|
* @param page
|
|
* @param page
|
|
*/
|
|
*/
|
|
async pageChange(page) {
|
|
async pageChange(page) {
|
|
- console.log(this.originData)
|
|
|
|
this.pageNum = page;
|
|
this.pageNum = page;
|
|
let start = this.pageSize * (page - 1);
|
|
let start = this.pageSize * (page - 1);
|
|
let end = this.pageSize * page;
|
|
let end = this.pageSize * page;
|
|
@@ -638,7 +632,7 @@
|
|
// this.totalNum = this.exerciseList.length
|
|
// this.totalNum = this.exerciseList.length
|
|
this.pageScrollTo(0);
|
|
this.pageScrollTo(0);
|
|
this.onHandleToggle(true)
|
|
this.onHandleToggle(true)
|
|
- this.$refs.childRef && (this.$refs.childRef[0].collapseList = [])
|
|
|
|
|
|
+ this.$refs.childRef && this.$refs.childRef[0] && (this.$refs.childRef[0].collapseList = [])
|
|
} catch (e) {
|
|
} catch (e) {
|
|
this.$Message.error('Blob Error : ' + e)
|
|
this.$Message.error('Blob Error : ' + e)
|
|
}
|
|
}
|