diff --git a/src/components/layout/index.vue b/src/components/layout/index.vue
index 1f6b4ac..2c6027e 100644
--- a/src/components/layout/index.vue
+++ b/src/components/layout/index.vue
@@ -7,7 +7,7 @@
{{systemInfo.base_name}}
- {{ userInfo.name }}
+ {{ userInfo.name }}
diff --git a/src/pages/cal/dq.vue b/src/pages/cal/dq.vue
index 9828ac0..9fd63d9 100644
--- a/src/pages/cal/dq.vue
+++ b/src/pages/cal/dq.vue
@@ -191,35 +191,32 @@ const textInterval = setInterval(() => {
textIndex = (textIndex + 1) % loadingTexts.length;
}, 800);
-// 模拟API调用延迟
-setTimeout(() => {
- http.postForm("/cal/", formData).then(res => {
- const elapsedTime = Date.now() - startTime; // 已过去的时间
- const remainingTime = Math.max(0, minLoadingTime - elapsedTime); // 还需要等待的时间
+http.postForm("/cal/", formData).then(res => {
+ const elapsedTime = Date.now() - startTime; // 已过去的时间
+ const remainingTime = Math.max(0, minLoadingTime - elapsedTime); // 还需要等待的时间
+
+ setTimeout(() => {
+ clearInterval(textInterval);
+ calLoading.value = false;
+ score.value = res.total_score;
+ // 动画完成后显示结果
setTimeout(() => {
- clearInterval(textInterval);
- calLoading.value = false;
- score.value = res.total_score;
-
- // 动画完成后显示结果
- setTimeout(() => {
- showAnimation.value = false;
- showResult.value = true;
- }, 500);
- }, remainingTime);
-
- }).catch(e => {
- const elapsedTime = Date.now() - startTime;
- const remainingTime = Math.max(0, minLoadingTime - elapsedTime);
-
- setTimeout(() => {
- clearInterval(textInterval);
- calLoading.value = false;
showAnimation.value = false;
- }, remainingTime);
- });
-}, 3000); // 模拟网络延迟
+ showResult.value = true;
+ }, 500);
+ }, remainingTime);
+
+}).catch(e => {
+ const elapsedTime = Date.now() - startTime;
+ const remainingTime = Math.max(0, minLoadingTime - elapsedTime);
+
+ setTimeout(() => {
+ clearInterval(textInterval);
+ calLoading.value = false;
+ showAnimation.value = false;
+ }, remainingTime);
+});
}
diff --git a/src/pages/cal/index.vue b/src/pages/cal/index.vue
index 7e2ae42..572dcc3 100644
--- a/src/pages/cal/index.vue
+++ b/src/pages/cal/index.vue
@@ -1,11 +1,13 @@
-
+
转型金融贷前计算器
+ 前往测算
-
+
+
-
+
转型金融贷后计算器
@@ -71,7 +73,6 @@ const goDh = () => {
}
// 添加响应式变量
-const chartKey = ref(0);
const currentData = ref([35, 20, 10, 10, 10, 8, 7]);
const dialogVisible = ref(false);
const currentIndicator = ref(null);
@@ -256,16 +257,14 @@ const updateRadarData = () => {
// 更新图表数据
option.value.series[0].data[0].value = newData;
-
- // 强制图表重新渲染
- chartKey.value += 1;
};
// 定时器引用
let timer = null;
-
+const chartShow = ref(false);
onMounted(() => {
- // 每2秒更新一次数据
+ // 每4秒更新一次数据
+ setTimeout(() =>{ chartShow.value = true;}, 200);
timer = setInterval(updateRadarData, 4000);
});