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 @@