Compare commits

...

2 Commits

Author SHA1 Message Date
小杨 e44909f747 fix:学科学段联动; 2024-10-31 14:26:35 +08:00
yangws da1390a0df Merge pull request 'add:创建班级;' (#11) from yangws_ws into main
Reviewed-on: #11
2024-10-30 15:55:21 +08:00
1 changed files with 8 additions and 2 deletions

View File

@ -27,7 +27,7 @@
<template #dropdown>
<el-dropdown-menu>
<template v-for="(item, index) in subjectList">
<el-dropdown-item :command="item.itemtitle">{{
<el-dropdown-item v-if="item.edustage == userStore.edustage" :command="item.itemtitle">{{
item.itemtitle }}</el-dropdown-item>
</template>
</el-dropdown-menu>
@ -51,18 +51,24 @@ const getSubject = () => {
listEvaluation({ itemkey: 'subject', pageSize: 500 }).then((res) => {
const arr = userStore.subject.split(',')
subjectList.value = res.rows.filter(item => arr.includes(String(item.id))).map(items => items)
console.log(subjectList,'subjectList');
})
}
//
const handleUserEduStage = (item) => {
userStore.edustage = item
if(item === '幼儿园'){
//
userStore.edusubject = '语文'
}
}
//
const handleUserEduSubject = (item) => {
userStore.edusubject = item
}
onMounted(() => {
getSubject()
console.log(userStore,'123')
})
</script>
<style scoped>