|
@@ -11,7 +11,7 @@
|
|
|
<van-button round type="info" icon="smile" @click="onClickRight()">添加分数</van-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="leaveList">
|
|
|
- <pingfenList :groupList="groupList" :leaveList="leaveList" :stuList="groupList" @clickShow="clickShow"></pingfenList>
|
|
|
+ <pingfenList :groupList="groupList" :leaveList="leaveList" :stuList="groupList"></pingfenList>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -68,9 +68,10 @@ export default {
|
|
|
...group({ groupinfo: 'query', groupfetch: 'fetch' }),
|
|
|
...mapclass({ mapclass: 'query', classfetch: 'fetch' }),
|
|
|
async searchInfo() {
|
|
|
+ console.log('a');
|
|
|
let classid = this.id;
|
|
|
const acc = await this.query({ classid });
|
|
|
- console.log(res);
|
|
|
+ console.log(acc);
|
|
|
var res = acc.data.filter(item => item.classid === classid);
|
|
|
let selfscore = res.map(i => i.selfscore);
|
|
|
let nes = selfscore.filter(d => d);
|
|
@@ -94,7 +95,7 @@ export default {
|
|
|
}
|
|
|
this.$set(this, `groupList`, resq.data);
|
|
|
},
|
|
|
- async clickShow(acc) {},
|
|
|
+
|
|
|
// 跳转到请假
|
|
|
onClickRight() {
|
|
|
this.$router.push({ path: '/user/socre', query: { classid: this.id } });
|