学生统计页面添加

This commit is contained in:
joylink_cuiweidong 2022-04-15 14:46:24 +08:00
parent a56505a3d0
commit f876c33603
3 changed files with 105 additions and 0 deletions

View File

@ -13,6 +13,9 @@
<el-dropdown-item v-if="companyAdmin && isSameProject">
<span style="display:block;" @click="handleOrganization">教学管理</span>
</el-dropdown-item>
<el-dropdown-item v-if="isNotCompanyAdmin && isCGY && isSameProject">
<span style="display:block;" @click="handleStatistics">数据统计</span>
</el-dropdown-item>
<el-dropdown-item>
<span style="display:block;" @click="logout">{{ $t('global.exit') }}</span>
</el-dropdown-item>
@ -42,8 +45,14 @@ export default {
companyAdmin() {
return this.$store.state.user.companyAdmin;
},
isNotCompanyAdmin(){
return this.$store.state.user.companyAdmin==false;
},
isSameProject() {
return this.$store.state.user.companyProjectList.includes(getSessionStorage('project').toUpperCase());
},
isCGY() {
return getSessionStorage('project') === 'cgy';
}
},
mounted() {
@ -62,6 +71,9 @@ export default {
},
handleOrganization() {
this.$router.push({ path: `/info/organization` });
},
handleStatistics(){
this.$router.push({ path: `/info/gradeStatistics` });
}
}
};

View File

@ -172,6 +172,7 @@ const StudentManage = () => import('@/views/organization/classManage/studentMana
const DurationView = () => import('@/views/organization/classManage/durationView');
const GradeList = () => import('@/views/organization/examManage/gradeList');
const GradeStatistics = () => import('@/views/organization/examManage/gradeStatistics');
const StudentStatistics = () => import('@/views/organization/studentStatistics/index');
const CreateRule = () => import('@/views/organization/ruleManage/createRule');
const TotalGrade = () => import('@/views/organization/ruleManage/totalGrade');
const InfoLessonDetail = () => import('@/views/organization/lessonManage/lessonDetail');
@ -658,6 +659,11 @@ export const publicAsyncRoute = [
component: GradeStatistics,
hidden: true
},
{
path: 'studentStatistics',
component: StudentStatistics,
hidden: true
},
{
path: 'createRule',
component: CreateRule,

View File

@ -0,0 +1,87 @@
<template>
<div>
<!-- <div class="title_content">{{ $route.query.name + ' 成绩统计' }}</div>
<el-button type="text" style="position: fixed;right: 20px;top: 70px;" @click="back">返回</el-button>
<div class="gradeStatisticPane">
<el-form
ref="queryForm"
size="small"
style="padding-top: 18px;"
>
<el-form-item prop="orgId" label="班级:" :required="false">
<el-select
ref="orgId"
v-model="orgId"
:clearable="false"
:placeholder="$t('global.choose')"
filterable
@change="onChange"
>
<el-option
v-for="option in classList"
:key="option['value']"
:label="option['label']"
:value="option['value']"
/>
</el-select>
</el-form-item>
</el-form>
</div>
<div class="statisticChart">
<div id="mychart1" class="statisticChartLeft" />
<div id="mychart2" class="statisticChartRight" />
</div> -->
</div>
</template>
<script>
import * as echarts from 'echarts';
// import { getClassGradeStatistic } from '@/api/management/userexam';
// import { getClassListUnPage } from '@/api/company';
// import { getExamLessonDetail } from '@/api/management/exam';
// import localStore from 'storejs';
export default {
name: 'StudentStatistics',
data() {
return {
}
},
async created() {
},
methods: {
}
};
</script>
<style scoped>
.title_content {
width: 100%;
margin: 20px 0 30px;
text-align: center;
font-size: 24px;
font-weight: bold;
}
.gradeStatisticPane{
margin: 0 auto;
width: 300px;
}
.statisticChart{
/* margin-left: 50%; */
/* transform: translateX(-50%); */
width:90%;
display: flex;
margin-left:5%;
}
.statisticChartLeft{
width: 50%;
display: inline-block;
height: 700px;
/* border:1px #ccc solid */
}
.statisticChartRight{
width: 50%;
display: inline-block;
height: 700px;
/* border:1px #ccc solid */
}
</style>