Compare commits

...

2 Commits

Author SHA1 Message Date
yangws edfdf8b9ad Merge pull request 'fix:年级不允许切换;' (#155) from yangws into main
Reviewed-on: #155
2024-08-26 09:31:02 +08:00
yangws 59be0c07d1 fix:年级不允许切换; 2024-08-26 09:30:26 +08:00
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<el-tabs v-model="active" class="demo-tabs" @tab-change="handleClick"> <el-tabs v-model="active" class="demo-tabs" @tab-change="handleClick">
<template v-for="(item,index) in gradeList" :key="index"> <template v-for="(item,index) in gradeList" :key="index">
<el-tab-pane :label="item.label" :name="item.value"> <el-tab-pane :label="item.label" :name="item.value" disabled>
<SelectSubject ref="selectSubject" :subjectList="subjectList" @clickTag="getTagId"></SelectSubject> <SelectSubject ref="selectSubject" :subjectList="subjectList" @clickTag="getTagId"></SelectSubject>
</el-tab-pane> </el-tab-pane>
</template> </template>
@ -24,7 +24,9 @@ const active = ref(1)
const subjectList = ref([]) const subjectList = ref([])
//id //id
const textbookVersionId = ref(0) const textbookVersionId = ref(0)
//
const handleClick = (tab) => { const handleClick = (tab) => {
console.log(tab,'tab')
getSubject(tab) getSubject(tab)
} }
// //