Compare commits
3 Commits
f57c67aab2
...
69362a6153
Author | SHA1 | Date |
---|---|---|
lyc | 69362a6153 | |
lyc | 1da3ca0ee0 | |
lyc | d4a6f74cfc |
|
@ -4,8 +4,8 @@
|
||||||
<span>工作动态</span>
|
<span>工作动态</span>
|
||||||
<el-radio-group v-model="type" @change="changeTab">
|
<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="1" />
|
<el-radio-button label="备课" :value="1" disabled />
|
||||||
<el-radio-button label="上课" :value="2" />
|
<el-radio-button label="上课" :value="2" disabled />
|
||||||
<el-radio-button label="作业" :value="3" />
|
<el-radio-button label="作业" :value="3" />
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</div>
|
</div>
|
||||||
|
@ -99,11 +99,9 @@ const tagType = (time) => {
|
||||||
}
|
}
|
||||||
// 切换
|
// 切换
|
||||||
const changeTab = (val) =>{
|
const changeTab = (val) =>{
|
||||||
|
|
||||||
console.log(type.value)
|
|
||||||
switch(val){
|
switch(val){
|
||||||
case -1:
|
case -1:
|
||||||
getClass()
|
// getClass()
|
||||||
getHomework()
|
getHomework()
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -117,7 +115,7 @@ const changeTab = (val) =>{
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getClass()
|
// getClass()
|
||||||
getHomework()
|
getHomework()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue