BUG修复

This commit is contained in:
朱浩 2024-09-22 16:46:37 +08:00
parent d5afede36c
commit 4c66cc90c0
1 changed files with 3 additions and 6 deletions

View File

@ -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,