2022-03-17 14:58:49 +08:00
|
|
|
<template>
|
2024-03-26 17:33:19 +08:00
|
|
|
<div style="background: #ececec; padding: 25px">
|
|
|
|
<a-card title="四六级总通过率查询" :bordered="false">
|
|
|
|
<template #extra>
|
|
|
|
<a-select v-model:value="college" style="width: 300px" :options="collegeOptions"></a-select>
|
|
|
|
<a-select v-model:value="entrydate" style="margin-left: 15px;width: 100px"
|
|
|
|
:options="entrydateOptions"></a-select>
|
2024-03-27 15:49:00 +08:00
|
|
|
<a-button style="margin-left: 10px;" type="primary" @click="query">查询</a-button>
|
2024-03-26 17:33:19 +08:00
|
|
|
</template>
|
|
|
|
<a-row :gutter="24">
|
|
|
|
<a-col :xl="12" :style="{ marginBottom: '24px' }">
|
2024-03-27 15:49:00 +08:00
|
|
|
<a-table :dataSource="dataSourceCet4" bordered :columns="columns" :pagination='false'>
|
|
|
|
<template #title>
|
|
|
|
<span style="font-size: 20px;font-weight:bold">四级成绩分析</span>
|
|
|
|
</template>
|
|
|
|
</a-table>
|
2024-03-26 17:33:19 +08:00
|
|
|
</a-col>
|
|
|
|
<a-col :xl="12" :style="{ marginBottom: '24px' }">
|
2024-03-27 15:49:00 +08:00
|
|
|
<a-table :dataSource="dataSourceCet6" bordered :columns="columns" :pagination='false'>
|
|
|
|
<template #title>
|
|
|
|
<span style="font-size: 20px;font-weight:bold">六级成绩分析</span>
|
|
|
|
</template>
|
|
|
|
</a-table>
|
2024-03-26 17:33:19 +08:00
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-card>
|
2024-03-26 13:30:08 +08:00
|
|
|
</div>
|
2022-03-17 14:58:49 +08:00
|
|
|
</template>
|
2024-03-26 13:30:08 +08:00
|
|
|
|
|
|
|
<script>
|
2024-03-26 17:33:19 +08:00
|
|
|
import { defHttp } from '/@/utils/http/axios';
|
2024-03-26 13:30:08 +08:00
|
|
|
import * as echarts from 'echarts';
|
|
|
|
|
|
|
|
export default {
|
2024-03-27 15:49:00 +08:00
|
|
|
|
2024-03-26 17:33:19 +08:00
|
|
|
name: "Analysis",
|
|
|
|
data() {
|
|
|
|
return {
|
2024-03-27 15:49:00 +08:00
|
|
|
dataSourceCet4: [],
|
|
|
|
dataSourceCet6: [],
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
title: '年级',
|
|
|
|
dataIndex: 'grade',
|
|
|
|
key: 'grade',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '参加人数',
|
|
|
|
dataIndex: 'attendNumber',
|
|
|
|
key: 'attendNumber',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '新通过人数',
|
|
|
|
dataIndex: 'passNumber',
|
|
|
|
key: 'passNumber',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '累计总通过率',
|
|
|
|
dataIndex: 'passRate',
|
|
|
|
key: 'passRate',
|
|
|
|
}
|
|
|
|
],
|
2024-03-26 17:33:19 +08:00
|
|
|
Url: {
|
|
|
|
getGradeAndCollegeData: '/cet/getGradeAndCollege',
|
2024-03-27 15:49:00 +08:00
|
|
|
getData: '/cet/getData'
|
2024-03-26 17:33:19 +08:00
|
|
|
},
|
|
|
|
collegeOptions: [],
|
|
|
|
entrydateOptions: [],
|
|
|
|
college: null,
|
2024-03-27 15:49:00 +08:00
|
|
|
entrydate: null,
|
2024-03-26 17:33:19 +08:00
|
|
|
};
|
|
|
|
},
|
2024-03-26 13:30:08 +08:00
|
|
|
methods: {
|
2024-03-26 17:33:19 +08:00
|
|
|
// 获取年级和学院数据
|
|
|
|
async getGradeAndCollegeData() {
|
|
|
|
const data = await defHttp.get({ url: this.Url.getGradeAndCollegeData });
|
|
|
|
this.collegeOptions = data.colleges;
|
2024-03-27 15:49:00 +08:00
|
|
|
this.college = this.collegeOptions[0].value;
|
2024-03-26 17:33:19 +08:00
|
|
|
this.entrydateOptions = data.entrydates;
|
|
|
|
this.entrydate = this.entrydateOptions[0].value;
|
2024-03-27 15:49:00 +08:00
|
|
|
},
|
|
|
|
// 查询数据
|
|
|
|
async query() {
|
|
|
|
let params = {
|
|
|
|
college: this.college,
|
|
|
|
entrydate: this.entrydate
|
|
|
|
}
|
|
|
|
const result = await defHttp.get({ url: this.Url.getData, params });
|
|
|
|
this.dataSourceCet4 = result.data.cet4;
|
|
|
|
this.dataSourceCet6 = result.data.cet6;
|
|
|
|
this.$message.info(`查询结果:${JSON.stringify(result)}`);
|
2024-03-26 17:33:19 +08:00
|
|
|
}
|
2024-03-26 13:30:08 +08:00
|
|
|
},
|
|
|
|
mounted() {
|
2024-03-26 17:33:19 +08:00
|
|
|
this.getGradeAndCollegeData();
|
2024-03-26 13:30:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2022-03-17 14:58:49 +08:00
|
|
|
</script>
|
2024-03-26 13:30:08 +08:00
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
.title {
|
|
|
|
font-size: 34px;
|
|
|
|
color: rgb(8, 8, 8);
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2024-03-27 15:58:02 +08:00
|
|
|
</style>
|