This commit is contained in:
xbx 2024-05-30 19:25:28 +08:00
parent d7bdcadfc7
commit 7ba725c13f
7 changed files with 50 additions and 18 deletions

2
.env
View File

@ -2,7 +2,7 @@
VITE_PORT = 3100 VITE_PORT = 3100
# 网站标题 # 网站标题
VITE_GLOB_APP_TITLE =师大四级查询平台 VITE_GLOB_APP_TITLE =尔滨师范大学英语四六级综合管理平台
# 简称,用于配置文件名字 不要出现空格、数字开头等特殊字符 # 简称,用于配置文件名字 不要出现空格、数字开头等特殊字符
VITE_GLOB_APP_SHORT_NAME = JeecgBootAdmin VITE_GLOB_APP_SHORT_NAME = JeecgBootAdmin

BIN
logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -4,9 +4,10 @@
--> -->
<template> <template>
<div class="anticon" :class="getAppLogoClass" @click="goHome"> <div class="anticon" :class="getAppLogoClass" @click="goHome">
<img src="../../../assets/images/logo.png" /> <img style="width: 100%;" src="../../../assets/images/logo-red.png" />
<div class="ml-2 truncate md:opacity-100" :class="getTitleClass" v-show="showTitle"> <div style="display: flex;" class="ml-2 truncate md:opacity-100" :class="getTitleClass" v-show="showTitle">
{{ title }} <!-- {{ title }} -->
<!-- <span>英语四六级综合管理平台</span> -->
</div> </div>
</div> </div>
</template> </template>

View File

@ -11,6 +11,16 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xl="24" :style="{ marginBottom: '24px' }"> <a-col :xl="24" :style="{ marginBottom: '24px' }">
<div class="container"> <div class="container">
<div style="display: flex;">
<span class="title">学院 / 专业通过率变化</span>
<div v-if="topCollege != null">
<span style="color: red; font-size: 18px; padding-left: 100px;"> {{ topCollege }}</span>
<span style="font-size: 15px;"> </span>
<span style="color: red; font-size: 18px;"> {{ topBath }} </span>
<span style="font-size: 15px;"> 批次的通过率为</span>
<span style="color: red; font-size: 18px;"> {{ sumRate }}%</span>
</div>
</div>
<div id="map1" style="width: 100%; height: 450px;"></div> <div id="map1" style="width: 100%; height: 450px;"></div>
</div> </div>
</a-col> </a-col>
@ -21,6 +31,7 @@
</template> </template>
<script> <script>
import { result } from 'lodash-es';
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '/@/utils/http/axios';
import * as echarts from 'echarts'; import * as echarts from 'echarts';
@ -46,14 +57,16 @@ export default {
level: null, level: null,
college: null, college: null,
batch: null, batch: null,
collegeMajor: null collegeMajor: null,
sumRate: null,//
topCollege: null,//
topBath: null,//
}; };
}, },
methods: { methods: {
dataChart(data) { dataChart(data) {
let xData = []; let xData = [];
let yData = []; let yData = [];
console.log(data, "data")
for (let key in data) { for (let key in data) {
xData.push(key); xData.push(key);
// % // %
@ -64,7 +77,7 @@ export default {
// //
let option = { let option = {
title: { title: {
text: "学院 / 专业通过率变化", // text: " / ",
}, },
xAxis: { xAxis: {
type: 'category', type: 'category',
@ -175,9 +188,8 @@ export default {
}, },
// //
async query() { async query() {
let data = null; let resultData = null;
try { try {
console.log("sb", this.batch);
//this.batchnull //this.batchnull
if (!this.batch) { if (!this.batch) {
this.batch = '2017-12-01'; this.batch = '2017-12-01';
@ -187,18 +199,21 @@ export default {
} }
//this.batch[1]null //this.batch[1]null
let major = this.batch.length > 1 ? this.batch[1] : ""; let major = this.batch.length > 1 ? this.batch[1] : "";
this.topCollege = this.collegeMajor;
this.topBath = this.batch;
this.loading = true; this.loading = true;
let params = { let params = {
batch: this.batch, batch: this.batch,
college: this.collegeMajor, college: this.collegeMajor,
level: 'cet4', level: 'cet4',
} }
console.log("params", params); resultData = await defHttp.get({ url: this.Url.getRate, params });
data = await defHttp.get({ url: this.Url.getRate, params }); this.sumRate = resultData.sumRate;
console.log("result", resultData)
} finally { } finally {
this.loading = false; this.loading = false;
this.$nextTick(() => { this.$nextTick(() => {
this.dataChart(data); this.dataChart(resultData.data);
}) })
} }
} }
@ -214,7 +229,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.container { .container {
display: flex; // display: flex;
background-color: #fff; background-color: #fff;
padding: 15px; padding: 15px;
border-radius: 4px; border-radius: 4px;
@ -222,7 +237,7 @@ export default {
} }
.title { .title {
font-size: 34px; font-size: 20px;
color: rgb(8, 8, 8); color: rgb(8, 8, 8);
font-weight: bold; font-weight: bold;
} }

View File

@ -11,6 +11,14 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xl="13"> <a-col :xl="13">
<div style="padding-left: 10px;min-height: 400px;"> <div style="padding-left: 10px;min-height: 400px;">
<div v-if="topCollege != null" style="margin-bottom: 5px;">
<span style="font-size: 15px;">当前数据为 </span>
<span style="color: red; font-size: 18px;">{{ topCollege }}</span>
<span v-if="topMajor != null && topMajor != '' " style="color: red; font-size: 18px;"> / {{ topMajor }}</span>
<span style="font-size: 15px;"> </span>
<span style="color: red; font-size: 20px;">{{ topEntrydate }}</span>
<span style="font-size: 15px;"> 级数据</span>
</div>
<a-table :dataSource="dataSourceCet4" :columns="columns" :pagination='false' bordered> <a-table :dataSource="dataSourceCet4" :columns="columns" :pagination='false' bordered>
<template v-slot:passRateSlot> <template v-slot:passRateSlot>
累计总通过率 累计总通过率
@ -109,8 +117,12 @@ export default {
collegeMajorOptions: [], collegeMajorOptions: [],
entrydateOptions: [], entrydateOptions: [],
college: null, college: null,
entrydate: null, entrydate: 2017,//
collegeMajor: null //
collegeMajor: ['全校'],//
topCollege: null,//
topMajor: null,//
topEntrydate: null,//
}; };
}, },
methods: { methods: {
@ -123,7 +135,7 @@ export default {
this.collegeOptions.unshift({ value: '全校', label: '全校' }); this.collegeOptions.unshift({ value: '全校', label: '全校' });
this.college = this.collegeOptions[0].value; this.college = this.collegeOptions[0].value;
this.entrydateOptions = getEntrydate.entrydates; this.entrydateOptions = getEntrydate.entrydates;
this.entrydate = this.entrydateOptions[0].value; // this.entrydate = this.entrydateOptions[0].value;
}, },
// //
async getCollegeMajorData() { async getCollegeMajorData() {
@ -145,7 +157,7 @@ export default {
this.collegeMajorOptions.unshift({ value: '专升本', label: '专升本' }); this.collegeMajorOptions.unshift({ value: '专升本', label: '专升本' });
// //
this.collegeMajorOptions.unshift({ value: '全校', label: '全校' }); this.collegeMajorOptions.unshift({ value: '全校', label: '全校' });
this.collegeMajor = ['全校']; // this.collegeMajor = [''];
console.log(this.collegeMajorOptions); console.log(this.collegeMajorOptions);
}, },
@ -154,6 +166,9 @@ export default {
try { try {
//this.collegeMajor[1]null //this.collegeMajor[1]null
let major = this.collegeMajor.length > 1 ? this.collegeMajor[1] : ""; let major = this.collegeMajor.length > 1 ? this.collegeMajor[1] : "";
this.topCollege = this.collegeMajor[0];
this.topMajor = major;
this.topEntrydate = this.entrydate;
if (this.college) if (this.college)
this.loading = true; this.loading = true;
let params = { let params = {
@ -301,6 +316,7 @@ export default {
mounted() { mounted() {
this.getEntrydateAndCollegeData(); this.getEntrydateAndCollegeData();
this.getCollegeMajorData(); this.getCollegeMajorData();
this.query();
} }