From 7e7c31417f38021a9d63075453be9a8a37284bc2 Mon Sep 17 00:00:00 2001
From: hh <2397241381@qq.com>
Date: Wed, 27 Mar 2024 18:46:10 +0800
Subject: [PATCH] =?UTF-8?q?UI=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env | 2 +-
src/views/cet/cet-ana-1.vue | 29 +++++++++++-------------
src/views/cet/cet-ana-2.vue | 25 ++++++++++----------
src/views/dashboard/Analysis/index.vue | 29 ++++++++++++++----------
src/views/sys/login/TokenLoginPage.vue | 2 +-
src/views/system/loginmini/MiniLogin.vue | 2 +-
6 files changed, 46 insertions(+), 43 deletions(-)
diff --git a/.env b/.env
index 7316116..7422833 100644
--- a/.env
+++ b/.env
@@ -2,7 +2,7 @@
VITE_PORT = 3100
# 网站标题
-VITE_GLOB_APP_TITLE = 哈师大四六级查询平台
+VITE_GLOB_APP_TITLE = 哈师大四级查询平台
# 简称,用于配置文件名字 不要出现空格、数字开头等特殊字符
VITE_GLOB_APP_SHORT_NAME = JeecgBootAdmin
diff --git a/src/views/cet/cet-ana-1.vue b/src/views/cet/cet-ana-1.vue
index d4c6972..6355ae4 100644
--- a/src/views/cet/cet-ana-1.vue
+++ b/src/views/cet/cet-ana-1.vue
@@ -96,31 +96,28 @@ export default {
// 获取批次数据
async getBatch() {
const getBatch = await defHttp.get({ url: this.Url.getBatch });
- // const getCollege = await defHttp.get({ url: this.Url.getCollege });
-
- // this.collegeOptions = getCollege.colleges;
- // 手动添加一个全校字段
- // this.collegeOptions.unshift({ value: '全校', label: '全校' });
- // this.college = this.collegeOptions[0].value;
this.batchOptions = getBatch.batches;
this.batch = this.batchOptions[0].value;
this.level = this.levelOptions[0].value;
- // this.query();
+ this.query();
},
// 查询数据
async query() {
- this.loading = true;
- let params = {
- batch: this.batch,
- level: 'cet4'
+ try {
+ this.loading = true;
+ let params = {
+ batch: this.batch,
+ level: 'cet4'
+ }
+ const data = await defHttp.get({ url: this.Url.getRate, params });
+ } finally {
+ this.loading = false;
+ this.$nextTick(() => {
+ this.dataChart();
+ })
}
- const data = await defHttp.get({ url: this.Url.getRate, params });
- this.loading = false;
- this.$nextTick(() => {
- this.dataChart();
- })
}
},
mounted() {
diff --git a/src/views/cet/cet-ana-2.vue b/src/views/cet/cet-ana-2.vue
index 5915d75..08b15d6 100644
--- a/src/views/cet/cet-ana-2.vue
+++ b/src/views/cet/cet-ana-2.vue
@@ -103,24 +103,25 @@ export default {
this.collegeOptions = getCollege.colleges;
this.college = this.collegeOptions[0].value;
- // this.batchOptions = getBatch.batches;
- // this.batch = this.batchOptions[0].value;
this.level = this.levelOptions[0].value;
- // this.query();
+ this.query();
},
// 查询数据
async query() {
- this.loading = true;
- let params = {
- college: this.college,
- level: 'cet4'
+ try {
+ this.loading = true;
+ let params = {
+ college: this.college,
+ level: 'cet4'
+ }
+ const data = await defHttp.get({ url: this.Url.getRate, params });
+ } finally {
+ this.loading = false;
+ this.$nextTick(() => {
+ this.dataChart();
+ })
}
- const data = await defHttp.get({ url: this.Url.getRate, params });
- this.loading = false;
- this.$nextTick(() => {
- this.dataChart();
- })
}
},
mounted() {
diff --git a/src/views/dashboard/Analysis/index.vue b/src/views/dashboard/Analysis/index.vue
index d668241..3ecae0d 100644
--- a/src/views/dashboard/Analysis/index.vue
+++ b/src/views/dashboard/Analysis/index.vue
@@ -1,6 +1,6 @@