Compare commits

..

No commits in common. "4e6e11ac2cf1d9b1a6add57d14a1ce42b68b0708" and "b3bf36613468c7bca7c13875c63e713360c927b3" have entirely different histories.

4 changed files with 4 additions and 4 deletions

View File

@ -110,6 +110,7 @@
import {listClassmain, listClassuser, addClassgroup, listClassgroup, delClassgroup,getClassgroup,updateClassgroup} from '@/api/classManage/index' import {listClassmain, listClassuser, addClassgroup, listClassgroup, delClassgroup,getClassgroup,updateClassgroup} from '@/api/classManage/index'
import {ref, onMounted, reactive, defineProps, watch} from 'vue' import {ref, onMounted, reactive, defineProps, watch} from 'vue'
import useUserStore from '@/store/modules/user' import useUserStore from '@/store/modules/user'
import {useRoute} from 'vue-router'
import {ElMessage} from "element-plus"; import {ElMessage} from "element-plus";
const userStore = useUserStore().user const userStore = useUserStore().user

View File

@ -9,10 +9,9 @@
<el-descriptions :column="1"> <el-descriptions :column="1">
<el-descriptions-item label="班级名称">{{ classInfo.className }}</el-descriptions-item> <el-descriptions-item label="班级名称">{{ classInfo.className }}</el-descriptions-item>
<el-descriptions-item label="教师"> <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> <el-tag type="primary" v-for="(item, index) in classInfo.teacher" :key="index">{{item.name}}</el-tag>
</template> </template>
<template v-else>暂无</template>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="学生人数">{{ classInfo.student.length }}</el-descriptions-item> <el-descriptions-item label="学生人数">{{ classInfo.student.length }}</el-descriptions-item>
</el-descriptions> </el-descriptions>

View File

@ -110,7 +110,7 @@
// //
const courseList = ref([]) const courseList = ref([])
//id //id
const classId = ref(0) const classId = ref('')
// //
const currentIndex = ref(0) const currentIndex = ref(0)
// //
@ -265,6 +265,7 @@
onMounted(() => { onMounted(() => {
getClassInfo() getClassInfo()
nextTick(() => { nextTick(() => {
console.log(userStore.deptId,'123')
viewportHeight.value = getViewportHeight() viewportHeight.value = getViewportHeight()
}) })
window.addEventListener('resize', () => { window.addEventListener('resize', () => {

View File

@ -20,7 +20,6 @@
/> />
</div> </div>
<div>{{ item.name }}</div> <div>{{ item.name }}</div>
<div>{{ item.username }}</div>
</div> </div>
</template> </template>
<template v-else> <template v-else>