|
@@ -1,56 +1,84 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-alert
|
|
|
- title="学员分布"
|
|
|
+ title=""
|
|
|
:closable="false"
|
|
|
class="alert marginBtm22"
|
|
|
type="info"
|
|
|
>
|
|
|
- <template slot="title">
|
|
|
+ <template slot="title">
|
|
|
<div>
|
|
|
- 师资安排
|
|
|
- <span style="color:red;font-weight:bold;">该乐团当前有 8 名学员在毕业年级</span>
|
|
|
+ 学员分布
|
|
|
+ <span style="color: red; font-weight: bold"
|
|
|
+ >该乐团当前有 8 名学员在毕业年级</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
</el-alert>
|
|
|
<p class="title">声部分布</p>
|
|
|
<el-divider class="divider"></el-divider>
|
|
|
- <descriptions :column="6" class="marginBtm22">
|
|
|
- <descriptions-item label="长笛:"> </descriptions-item>
|
|
|
- <descriptions-item label="沙克斯"> 2021-07-09</descriptions-item>
|
|
|
- </descriptions>
|
|
|
-
|
|
|
+ <div>
|
|
|
+ <el-row class="row">
|
|
|
+ <el-col class="col" :span="6" v-for="(item, index) in subject" :key="index">
|
|
|
+ <span class="col-title">{{ item.key }}:</span>
|
|
|
+ <span class="col-value">{{ item.value }}人</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
<p class="title">年级分布</p>
|
|
|
<el-divider class="divider"></el-divider>
|
|
|
- <descriptions class="marginBtm22">
|
|
|
- <descriptions-item label="长笛:"> </descriptions-item>
|
|
|
- <descriptions-item label="沙克斯"> 2021-07-09</descriptions-item>
|
|
|
- <descriptions-item label="沙克斯"> 2021-07-09</descriptions-item>
|
|
|
- </descriptions>
|
|
|
+ <el-row class="row">
|
|
|
+ <el-col class="col" :span="6" v-for="(item, index) in grade" :key="index">
|
|
|
+ <span class="col-title">{{ item.key }}:</span>
|
|
|
+ <span class="col-value">{{ item.value }}人</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
|
|
|
- <el-alert :closable="false" class="alert" type="info" >
|
|
|
+ <el-alert :closable="false" class="alert marginBtm22" type="info">
|
|
|
<template slot="title">
|
|
|
<div>
|
|
|
- 师资安排
|
|
|
- <el-tooltip placement="top" popper-class="mTooltip">
|
|
|
- <div slot="content">师资安排中第一位为主教老师</div>
|
|
|
- <i
|
|
|
- class="el-icon-question micon el-tooltip"
|
|
|
- style="font-size: 18px; color: #f56c6c"
|
|
|
- v-permission="'export/teacherSalary'"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
+ 师资安排
|
|
|
+ <el-tooltip placement="top" popper-class="mTooltip">
|
|
|
+ <div slot="content">师资安排中第一位为主教老师</div>
|
|
|
+ <i
|
|
|
+ class="el-icon-question micon el-tooltip"
|
|
|
+ style="font-size: 18px; color: #f56c6c"
|
|
|
+ v-permission="'export/teacherSalary'"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-alert>
|
|
|
- <descriptions class="marginBtm22">
|
|
|
- <descriptions-item label="长笛:"> </descriptions-item>
|
|
|
- <descriptions-item label="沙克斯"> 2021-07-09</descriptions-item>
|
|
|
- <descriptions-item label="沙克斯"> 2021-07-09</descriptions-item>
|
|
|
- </descriptions>
|
|
|
+ <el-row class="row">
|
|
|
+ <el-col class="col" :span="6" v-for="(item, index) in teacher" :key="index">
|
|
|
+ <span class="col-title">{{ item.key }}:</span>
|
|
|
+ <span >{{ item.value }}</span>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
+<script>
|
|
|
+import { getStudentAndTeacher } from "./api";
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ grade: [],
|
|
|
+ subject: [],
|
|
|
+ teacher: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ async mounted() {
|
|
|
+ try {
|
|
|
+ const res = await getStudentAndTeacher({
|
|
|
+ musicGroupId: this.$route.query.id,
|
|
|
+ });
|
|
|
+ this.grade = res.data.grade;
|
|
|
+ this.subject = res.data.subject;
|
|
|
+ this.teacher = res.data.teacher;
|
|
|
+ } catch (e) {}
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
<style lang="scss" scoped="scoped">
|
|
|
.title {
|
|
|
padding: 8px 16px;
|
|
@@ -61,4 +89,20 @@
|
|
|
.marginBtm22 {
|
|
|
margin-bottom: 22px;
|
|
|
}
|
|
|
+.row {
|
|
|
+ padding: 8px 16px;
|
|
|
+ margin-bottom: 30px;
|
|
|
+ .col {
|
|
|
+ margin-bottom: 20px;
|
|
|
+ .col-title {
|
|
|
+ display: inline-block;
|
|
|
+ width: 120px;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ .col-value{
|
|
|
+ color: #14928a;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|