Compare commits

...

2 Commits

Author SHA1 Message Date
yangws 8ec93353bc Merge pull request 'fix:修改添加的班级;' (#189) from yangws into main
Reviewed-on: #189
2024-09-10 17:56:33 +08:00
yangws 68df866db5 fix:修改添加的班级; 2024-09-10 17:55:48 +08:00
2 changed files with 6 additions and 3 deletions

View File

@ -71,7 +71,7 @@ export const constantRoutes = [
{
path: '/classTask',
component: () => import('@/views/classTask/classTask.vue'),
name: 'class',
name: 'classCorrect',
meta: {title: '作业批改'},
},
{

View File

@ -192,13 +192,16 @@
classList.value = []
listClassmain({ classuserid: userStore.userId, pageSize: 100, status: 'open' }).then(response => {
classList.value = [...response.rows]
//
gradeTree.value = groupByCondition(response.rows, item => item.agekey);
if(classList.value.length > 0){
classId.value = classList.value[0].id
currentIndex.value = 0
}
});
listClassmain({entpid: userStore.deptId, status: 'open', pageSize: 100}).then(response => {
//
gradeTree.value = groupByCondition(response.rows, item => item.agekey);
console.log(gradeTree.value,'gradeTree.value')
})
}
//
function groupByCondition(arr, condition) {