Merge pull request 'lyc-dev' (#203) from lyc-dev into main

This commit is contained in:
lyc 2024-09-12 16:03:56 +08:00
commit 69362a6153
1 changed files with 4 additions and 6 deletions

View File

@ -4,8 +4,8 @@
<span>工作动态</span>
<el-radio-group v-model="type" @change="changeTab">
<el-radio-button label="全部" :value="-1" />
<el-radio-button label="备课" :value="1" />
<el-radio-button label="上课" :value="2" />
<el-radio-button label="备课" :value="1" disabled />
<el-radio-button label="上课" :value="2" disabled />
<el-radio-button label="作业" :value="3" />
</el-radio-group>
</div>
@ -99,11 +99,9 @@ const tagType = (time) => {
}
//
const changeTab = (val) =>{
console.log(type.value)
switch(val){
case -1:
getClass()
// getClass()
getHomework()
break;
case 1:
@ -117,7 +115,7 @@ const changeTab = (val) =>{
}
onMounted(() => {
getClass()
// getClass()
getHomework()
})
</script>