Compare commits
No commits in common. "8ec93353bccab2551bcbb14101b196fdcf22e6cc" and "add564c4ed91e872004e4adcee339916563d3679" have entirely different histories.
8ec93353bc
...
add564c4ed
|
@ -71,7 +71,7 @@ export const constantRoutes = [
|
||||||
{
|
{
|
||||||
path: '/classTask',
|
path: '/classTask',
|
||||||
component: () => import('@/views/classTask/classTask.vue'),
|
component: () => import('@/views/classTask/classTask.vue'),
|
||||||
name: 'classCorrect',
|
name: 'class',
|
||||||
meta: {title: '作业批改'},
|
meta: {title: '作业批改'},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -192,16 +192,13 @@
|
||||||
classList.value = []
|
classList.value = []
|
||||||
listClassmain({ classuserid: userStore.userId, pageSize: 100, status: 'open' }).then(response => {
|
listClassmain({ classuserid: userStore.userId, pageSize: 100, status: 'open' }).then(response => {
|
||||||
classList.value = [...response.rows]
|
classList.value = [...response.rows]
|
||||||
|
//这里获取组装所有班级
|
||||||
|
gradeTree.value = groupByCondition(response.rows, item => item.agekey);
|
||||||
if(classList.value.length > 0){
|
if(classList.value.length > 0){
|
||||||
classId.value = classList.value[0].id
|
classId.value = classList.value[0].id
|
||||||
currentIndex.value = 0
|
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) {
|
function groupByCondition(arr, condition) {
|
||||||
|
|
Loading…
Reference in New Issue