Compare commits
No commits in common. "4e6e11ac2cf1d9b1a6add57d14a1ce42b68b0708" and "b3bf36613468c7bca7c13875c63e713360c927b3" have entirely different histories.
4e6e11ac2c
...
b3bf366134
|
@ -110,6 +110,7 @@
|
|||
import {listClassmain, listClassuser, addClassgroup, listClassgroup, delClassgroup,getClassgroup,updateClassgroup} from '@/api/classManage/index'
|
||||
import {ref, onMounted, reactive, defineProps, watch} from 'vue'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
import {useRoute} from 'vue-router'
|
||||
import {ElMessage} from "element-plus";
|
||||
|
||||
const userStore = useUserStore().user
|
||||
|
|
|
@ -9,10 +9,9 @@
|
|||
<el-descriptions :column="1">
|
||||
<el-descriptions-item label="班级名称">{{ classInfo.className }}</el-descriptions-item>
|
||||
<el-descriptions-item label="教师">
|
||||
<template v-if="classInfo.teacher.length > 0">
|
||||
<template>
|
||||
<el-tag type="primary" v-for="(item, index) in classInfo.teacher" :key="index">{{item.name}}</el-tag>
|
||||
</template>
|
||||
<template v-else>暂无</template>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="学生人数">{{ classInfo.student.length }}人</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
//学科列表
|
||||
const courseList = ref([])
|
||||
//班级id
|
||||
const classId = ref(0)
|
||||
const classId = ref('')
|
||||
//当前页面
|
||||
const currentIndex = ref(0)
|
||||
//年级
|
||||
|
@ -265,6 +265,7 @@
|
|||
onMounted(() => {
|
||||
getClassInfo()
|
||||
nextTick(() => {
|
||||
console.log(userStore.deptId,'123')
|
||||
viewportHeight.value = getViewportHeight()
|
||||
})
|
||||
window.addEventListener('resize', () => {
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
/>
|
||||
</div>
|
||||
<div>{{ item.name }}</div>
|
||||
<div>{{ item.username }}</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
|
|
Loading…
Reference in New Issue