成绩管理

master
yujialong 4 years ago
parent c80fc22a1f
commit 7e9d0247c2
  1. 2
      src/components/page/Dashboard.vue
  2. 13
      src/components/page/classExperimentAss.vue

@ -60,7 +60,7 @@
<div class="flex-column flex-start mat10"> <div class="flex-column flex-start mat10">
<p style="height: 38px;"> <p style="height: 38px;">
<span>班级名称</span> <span>班级名称</span>
<span class="list-text" style="font-size: 16px;font-weight: bold;color: #333">{{item.className}}</span> <span class="list-text" style="font-size: 16px;font-weight: bold;color: #333">{{item.className}}</span>
</p> </p>
<p class="mat10"> <p class="mat10">
<span>创建时间</span> <span>创建时间</span>

@ -132,25 +132,30 @@ export default {
let data = { let data = {
id: this.id, id: this.id,
classId: this.classId, classId: this.classId,
isRead: this.isRead == 1 ? '' : (this.isRead == 2 ? 0 : 1), //''01 isRead: this.isRead == 1 ? '' : (this.isRead == 2 ? 1 : 0), //''10
searchContent: this.encodeString(this.keyword), searchContent: this.encodeString(this.keyword),
} }
this.$get(this.api.getKdAchievement,data).then(res => { this.$get(this.api.getKdAchievement,data).then(res => {
let list = res.data let list = res.data
let score = 0 let score = 0
if(this.isRead == '1'){
let already = 0 let already = 0
let not = 0 let not = 0
list.map(n => { list.map(n => {
n.class = this.className n.class = this.className
score += n.score
if(!n.isRead){ if(!n.isRead){
already++
}else{
not++ not++
}else{
already++
} }
}) })
this.already = already this.already = already
this.not = not this.not = not
}
list.map(n => {
score += n.score
})
this.listDataAll = list this.listDataAll = list
this.handlePage() this.handlePage()

Loading…
Cancel
Save