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