yangws #249
|
@ -297,7 +297,6 @@ const nextStep = (formEl) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
getSubject()
|
getSubject()
|
||||||
console.log(res)
|
|
||||||
})
|
})
|
||||||
console.log('submit!')
|
console.log('submit!')
|
||||||
}
|
}
|
||||||
|
@ -311,7 +310,8 @@ const getSubject = async ()=>{
|
||||||
const rows= await listEvaluation({ itemkey: "subject", pageSize: 500 })
|
const rows= await listEvaluation({ itemkey: "subject", pageSize: 500 })
|
||||||
console.log(rows,'所有学科')
|
console.log(rows,'所有学科')
|
||||||
allSubjectList.value = rows.data
|
allSubjectList.value = rows.data
|
||||||
|
accessToDisciplines()
|
||||||
|
getClassmain()
|
||||||
}
|
}
|
||||||
|
|
||||||
const submitForm = async (formEl) => {
|
const submitForm = async (formEl) => {
|
||||||
|
@ -456,8 +456,8 @@ const accessToDisciplines = () => {
|
||||||
}
|
}
|
||||||
// 获取班级
|
// 获取班级
|
||||||
const getClassmain = async ()=>{
|
const getClassmain = async ()=>{
|
||||||
|
console.log(ruleForm.school)
|
||||||
const res = await listClassmain( {entpid: ruleForm.school[2], pageSize: 500, status: 'open'})
|
const res = await listClassmain( {entpid: ruleForm.school[2], pageSize: 500, status: 'open'})
|
||||||
console.log(res,'res')
|
|
||||||
gradeTree.value = groupByCondition(res.rows, item => item.agekey);
|
gradeTree.value = groupByCondition(res.rows, item => item.agekey);
|
||||||
}
|
}
|
||||||
//将所有班级筛选成二级的数组
|
//将所有班级筛选成二级的数组
|
||||||
|
@ -498,9 +498,6 @@ const gradeName = (key) =>{
|
||||||
ruleForm.address = ['50']
|
ruleForm.address = ['50']
|
||||||
//默认给到学校的值
|
//默认给到学校的值
|
||||||
ruleForm.school = [100,255,279]
|
ruleForm.school = [100,255,279]
|
||||||
//默认获取重庆第一个学校的学科
|
|
||||||
accessToDisciplines()
|
|
||||||
getClassmain()
|
|
||||||
})
|
})
|
||||||
defineExpose({
|
defineExpose({
|
||||||
OpenModel,
|
OpenModel,
|
||||||
|
|
Loading…
Reference in New Issue