fix:隐藏掉班级中心所有的操作按钮; #166

Merged
yangws merged 1 commits from yangws into main 2024-09-02 16:58:35 +08:00
4 changed files with 40 additions and 39 deletions
Showing only changes of commit 22239090ea - Show all commits

View File

@ -1,10 +1,10 @@
<template> <template>
<el-card style="width: 100%;height: 100%"> <el-card style="width: 100%;height: 100%">
<template #header> <!-- <template #header>-->
<div class="card-header" style="text-align: left"> <!-- <div class="card-header" style="text-align: left">-->
<el-button type="primary" @click="addGroup">新建分组</el-button> <!-- <el-button type="primary" @click="addGroup">新建分组</el-button>-->
</div> <!-- </div>-->
</template> <!-- </template>-->
<template v-if="groupList.length > 0"> <template v-if="groupList.length > 0">
<div style="font-size: 16px;font-weight: bold;color: #000;text-align: left;margin-bottom: 5px">可用分组</div> <div style="font-size: 16px;font-weight: bold;color: #000;text-align: left;margin-bottom: 5px">可用分组</div>
<div class="groupList"> <div class="groupList">

View File

@ -1,10 +1,10 @@
<template> <template>
<el-card style="width: 100%;height: 100%"> <el-card style="width: 100%;height: 100%">
<template #header> <!-- <template #header>-->
<div style="text-align: left"> <!-- <div style="text-align: left">-->
<el-button type="danger" @click="deleteClassRoom">删除班级</el-button> <!-- <el-button type="danger" @click="deleteClassRoom">删除班级</el-button>-->
</div> <!-- </div>-->
</template> <!-- </template>-->
<el-descriptions :column="1"> <el-descriptions :column="1">
<el-descriptions-item label="班级名称">{{ classInfo.caption }}</el-descriptions-item> <el-descriptions-item label="班级名称">{{ classInfo.caption }}</el-descriptions-item>
<el-descriptions-item label="教师"> <el-descriptions-item label="教师">

View File

@ -6,11 +6,12 @@
<div :style="{'max-height': (viewportHeight - 120) + 'px','overflow-y': 'auto'}"> <div :style="{'max-height': (viewportHeight - 120) + 'px','overflow-y': 'auto'}">
<Aside :menuItems="menuItems" :classList="classList" @handleSelect="handleSelect"></Aside> <Aside :menuItems="menuItems" :classList="classList" @handleSelect="handleSelect"></Aside>
</div> </div>
<template #footer> <!-- 隐藏操作按钮-->
<div> <!-- <template #footer>-->
<el-button @click="addClass" type="primary" :icon="Plus" >新增班级</el-button> <!-- <div>-->
</div> <!-- <el-button @click="addClass" type="primary" :icon="Plus" >新增班级</el-button>-->
</template> <!-- </div>-->
<!-- </template>-->
</el-card> </el-card>
</el-aside> </el-aside>
<el-main :style="{'min-height': (viewportHeight - 160) + 'px'}"> <el-main :style="{'min-height': (viewportHeight - 160) + 'px'}">

View File

@ -3,10 +3,10 @@
<el-card style="width: 100%;height: 100%;overflow-y: auto"> <el-card style="width: 100%;height: 100%;overflow-y: auto">
<template #header> <template #header>
<div style="text-align: left;display: flex;justify-content: space-between"> <div style="text-align: left;display: flex;justify-content: space-between">
<div> <!-- <div>-->
<el-button type="primary" @click="addStudent(0)">新增学生</el-button> <!-- <el-button type="primary" @click="addStudent(0)">新增学生</el-button>-->
<el-button type="primary" @click="importStudent()">导入学生</el-button> <!-- <el-button type="primary" @click="importStudent()">导入学生</el-button>-->
</div> <!-- </div>-->
<el-text class="mx-1">点击学生头像查看学生信息</el-text> <el-text class="mx-1">点击学生头像查看学生信息</el-text>
</div> </div>
</template> </template>
@ -54,27 +54,27 @@
<el-form-item label="电话" prop="parentmobile"> <el-form-item label="电话" prop="parentmobile">
<el-input v-model="studentForm.parentmobile" placeholder="请输入电话" style="width: 50%"/> <el-input v-model="studentForm.parentmobile" placeholder="请输入电话" style="width: 50%"/>
</el-form-item> </el-form-item>
<div> <!-- <div>-->
<el-row :gutter="4"> <!-- <el-row :gutter="4">-->
<el-col :span="12"> <!-- <el-col :span="12">-->
<el-form-item label-width="100px" label="平台登录账号"> <!-- <el-form-item label-width="100px" label="平台登录账号">-->
系统自动创建 <!-- 系统自动创建-->
</el-form-item> <!-- </el-form-item>-->
</el-col> <!-- </el-col>-->
<el-col :span="12"> <!-- <el-col :span="12">-->
<el-form-item label-width="100px" label="平台登录密码"> <!-- <el-form-item label-width="100px" label="平台登录密码">-->
系统自动创建默认为123123 <!-- 系统自动创建默认为123123-->
</el-form-item> <!-- </el-form-item>-->
</el-col> <!-- </el-col>-->
</el-row> <!-- </el-row>-->
</div> <!-- </div>-->
</el-form> </el-form>
<template #footer> <!-- <template #footer>-->
<el-button type="warning" v-show="studentForm.id > 0" @click="delStudent(1)">移出班级</el-button> <!-- <el-button type="warning" v-show="studentForm.id > 0" @click="delStudent(1)">移出班级</el-button>-->
<el-button type="danger" v-show="studentForm.id > 0 && studentForm.editoruserid == userStore.userId" @click="delStudent(2)">删除学生</el-button> <!-- <el-button type="danger" v-show="studentForm.id > 0 && studentForm.editoruserid == userStore.userId" @click="delStudent(2)">删除学生</el-button>-->
<el-button @click="studentVisible = false"> </el-button> <!-- <el-button @click="studentVisible = false"> </el-button>-->
<el-button type="primary" @click="btnStudentSave"> </el-button> <!-- <el-button type="primary" @click="btnStudentSave"> </el-button>-->
</template> <!-- </template>-->
</el-dialog> </el-dialog>
<!-- 学生导入--> <!-- 学生导入-->
<el-dialog title="学生导入" v-model="importVisiable" :width="600" append-to-body> <el-dialog title="学生导入" v-model="importVisiable" :width="600" append-to-body>