|
@@ -10,9 +10,6 @@
|
|
</div>
|
|
</div>
|
|
<div class="class-info">
|
|
<div class="class-info">
|
|
<div class="learn-progress-main" v-show="!showTest">
|
|
<div class="learn-progress-main" v-show="!showTest">
|
|
- <div style="text-align:center;width:100%">
|
|
|
|
- <Loading :top="200" type="1" v-if="dataLoading"></Loading>
|
|
|
|
- </div>
|
|
|
|
<!--<p style="color:#EEEEEE;font-size:16px;margin-top:5px;">测验成绩分析</p>-->
|
|
<!--<p style="color:#EEEEEE;font-size:16px;margin-top:5px;">测验成绩分析</p>-->
|
|
<div class="class-filter dark-iview-select">
|
|
<div class="class-filter dark-iview-select">
|
|
<span class="filter-label">测验年级:</span>
|
|
<span class="filter-label">测验年级:</span>
|
|
@@ -25,19 +22,28 @@
|
|
</Select>
|
|
</Select>
|
|
</div>
|
|
</div>
|
|
<!--<div class="chart-show">
|
|
<!--<div class="chart-show">
|
|
- <div v-if="!testStatus" class="chart" style="margin:auto">
|
|
|
|
- <Grade v-if="studentList.length !== 0" :studentData="studentList"></Grade>
|
|
|
|
- </div>
|
|
|
|
- <div v-if="testStatus" class="chart">
|
|
|
|
- <Analyse></Analyse>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <p style="color:#EEEEEE;padding-left:15px;font-size:16px;margin-top:10%;margin-bottom:10px;">学生成绩数据</p>-->
|
|
|
|
|
|
+ <div v-if="!testStatus" class="chart" style="margin:auto">
|
|
|
|
+ <Grade v-if="studentList.length !== 0" :studentData="studentList"></Grade>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="testStatus" class="chart">
|
|
|
|
+ <Analyse></Analyse>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <p style="color:#EEEEEE;padding-left:15px;font-size:16px;margin-top:10%;margin-bottom:10px;">学生成绩数据</p>-->
|
|
<div class="table-show dark-iview-table">
|
|
<div class="table-show dark-iview-table">
|
|
- <Table v-if="!dataLoading" border :columns="scoreLists" height="750" :data="studentScore">
|
|
|
|
|
|
+
|
|
|
|
+ <Table border :columns="scoreLists" :loading="dataLoading" height="750" :data="studentScore">
|
|
|
|
+ <div class="show-loading" slot="loading">
|
|
|
|
+ <Loading :top="-200" type="1"></Loading>
|
|
|
|
+ </div>
|
|
<template slot-scope="{ row,index }" :slot="'que'+qIndex" v-for="(item,qIndex) in quLen">
|
|
<template slot-scope="{ row,index }" :slot="'que'+qIndex" v-for="(item,qIndex) in quLen">
|
|
- <div @click="getStuScore(row,qIndex)" :class="[studentScore[row._index].data[qIndex] == -1 ?'scoreShow':'scoreShows']">
|
|
|
|
- <span>{{studentScore[row._index].data[qIndex] == -1 ? '-': studentScore[row._index].data[qIndex]}}</span>
|
|
|
|
|
|
+ <div @click="getStuScore(row,qIndex)">
|
|
|
|
+ <Poptip trigger="hover" content="点击前往评分页面">
|
|
|
|
+ <Icon class="scoreShow" size="26" type="ios-create-outline" v-show="studentScore[row._index].data[qIndex] == -1" />
|
|
|
|
+ </Poptip>
|
|
|
|
+ <Poptip trigger="hover" content="点击查看试题详情">
|
|
|
|
+ <span class="scoreShows" v-show="studentScore[row._index].data[qIndex] != -1">{{studentScore[row._index].data[qIndex]}}</span>
|
|
|
|
+ </Poptip>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template slot-scope="{ row,index }" slot="total">
|
|
<template slot-scope="{ row,index }" slot="total">
|
|
@@ -105,7 +111,7 @@ import { data } from 'autoprefixer'
|
|
slot: 'total',
|
|
slot: 'total',
|
|
align: 'center',
|
|
align: 'center',
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
- minWidth:100
|
|
|
|
|
|
+ width:100
|
|
}
|
|
}
|
|
],
|
|
],
|
|
scoreLists: [],
|
|
scoreLists: [],
|
|
@@ -117,7 +123,6 @@ import { data } from 'autoprefixer'
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getBack(data) {
|
|
getBack(data) {
|
|
- console.log(data)
|
|
|
|
if (data == '1') {
|
|
if (data == '1') {
|
|
this.initClassData()
|
|
this.initClassData()
|
|
}
|
|
}
|
|
@@ -127,14 +132,12 @@ import { data } from 'autoprefixer'
|
|
this.showTest = false
|
|
this.showTest = false
|
|
this.selectStudent = {}
|
|
this.selectStudent = {}
|
|
if (data.id) {
|
|
if (data.id) {
|
|
- console.log('4121561561')
|
|
|
|
data.classId = this.chooseClass
|
|
data.classId = this.chooseClass
|
|
data.className = this.getClassName(this.chooseClass)
|
|
data.className = this.getClassName(this.chooseClass)
|
|
data.queNo = index
|
|
data.queNo = index
|
|
this.showTest = true
|
|
this.showTest = true
|
|
}
|
|
}
|
|
this.selectStudent = { ...data }
|
|
this.selectStudent = { ...data }
|
|
- console.log(this.selectStudent)
|
|
|
|
},
|
|
},
|
|
getClassName(data) {
|
|
getClassName(data) {
|
|
if (this.classData.length) {
|
|
if (this.classData.length) {
|
|
@@ -147,7 +150,6 @@ import { data } from 'autoprefixer'
|
|
},
|
|
},
|
|
//初始化获取班级数据
|
|
//初始化获取班级数据
|
|
getClassData(data) {
|
|
getClassData(data) {
|
|
- console.log('2')
|
|
|
|
this.classData.length = 0
|
|
this.classData.length = 0
|
|
if (data !== undefined) {
|
|
if (data !== undefined) {
|
|
for (let item of this.classList) {
|
|
for (let item of this.classList) {
|
|
@@ -156,11 +158,9 @@ import { data } from 'autoprefixer'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log(this.classData)
|
|
|
|
},
|
|
},
|
|
//年级数据获取
|
|
//年级数据获取
|
|
getPeriod(data) {
|
|
getPeriod(data) {
|
|
- console.log('1')
|
|
|
|
this.chooseGrade = ''
|
|
this.chooseGrade = ''
|
|
if (data) {
|
|
if (data) {
|
|
this.chooseGrade = data
|
|
this.chooseGrade = data
|
|
@@ -179,7 +179,6 @@ import { data } from 'autoprefixer'
|
|
}, 0)
|
|
}, 0)
|
|
},
|
|
},
|
|
getScores(data) {
|
|
getScores(data) {
|
|
- console.log(data)
|
|
|
|
return data.id
|
|
return data.id
|
|
},
|
|
},
|
|
//获取班级测评数据
|
|
//获取班级测评数据
|
|
@@ -266,13 +265,11 @@ import { data } from 'autoprefixer'
|
|
}
|
|
}
|
|
this.scoreLists.push(data)
|
|
this.scoreLists.push(data)
|
|
}
|
|
}
|
|
- console.log('list', this.scoreLists)
|
|
|
|
let ans = []
|
|
let ans = []
|
|
for (let i = 0; i < this.studentAns.studentIds.length; i++) {
|
|
for (let i = 0; i < this.studentAns.studentIds.length; i++) {
|
|
for (let k = 0; k < this.studentData.students.length; k++) {
|
|
for (let k = 0; k < this.studentData.students.length; k++) {
|
|
let score = {}
|
|
let score = {}
|
|
if (this.studentAns.studentIds[i] == this.studentData.students[k].id) {
|
|
if (this.studentAns.studentIds[i] == this.studentData.students[k].id) {
|
|
- console.log(i)
|
|
|
|
score.name = this.studentData.students[k].name
|
|
score.name = this.studentData.students[k].name
|
|
score.id = this.studentAns.studentIds[i]
|
|
score.id = this.studentAns.studentIds[i]
|
|
score.data = this.studentAns.studentScores[i]
|
|
score.data = this.studentAns.studentScores[i]
|
|
@@ -309,7 +306,6 @@ import { data } from 'autoprefixer'
|
|
},
|
|
},
|
|
getAllStudentData() {
|
|
getAllStudentData() {
|
|
this.dataLoading = true
|
|
this.dataLoading = true
|
|
- console.log(this.paperData)
|
|
|
|
let requestData = {
|
|
let requestData = {
|
|
id: this.paperData.id,
|
|
id: this.paperData.id,
|
|
school: this.$store.state.user.schoolCode,
|
|
school: this.$store.state.user.schoolCode,
|
|
@@ -320,9 +316,7 @@ import { data } from 'autoprefixer'
|
|
this.$api.learnActivity.FindAllStudent(requestData).then(
|
|
this.$api.learnActivity.FindAllStudent(requestData).then(
|
|
res => {
|
|
res => {
|
|
this.studentAns = {}
|
|
this.studentAns = {}
|
|
- console.log(res)
|
|
|
|
if (res.examClassResults.length > 0) {
|
|
if (res.examClassResults.length > 0) {
|
|
- console.log(res.examClassResults[0])
|
|
|
|
this.studentAns = res.examClassResults[0]
|
|
this.studentAns = res.examClassResults[0]
|
|
this.setTableData()
|
|
this.setTableData()
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|