From 10618c315c8db8fe2b378032d810544fce9a0678 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 11 Aug 2025 13:53:59 +0800
Subject: [PATCH] feat: 延迟显示
---
src/views/wel/index.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue
index ae808f9..36d4359 100644
--- a/src/views/wel/index.vue
+++ b/src/views/wel/index.vue
@@ -1,26 +1,26 @@
<template>
<wel-container>
- <div class="workbench">
+ <div class="workbench" v-if="display">
<div class="workleft">
<!-- 设备统计 -->
<statistics></statistics>
<!-- 综合统计分析 -->
<div class="comprehensiveCon">
<div class="comprehensive">
-
+
<div class="center">
<div class="centerLeft">
<!-- 工单统计 -->
<proportionStatic></proportionStatic>
<!-- 飞行统计 -->
<flightStatistics></flightStatistics>
-
+
</div>
<div class="centerRight">
<!-- 机巢工单数量排名(件) -->
<flyratio></flyratio>
<!-- 任务成果 -->
- <taskOutcome></taskOutcome>
+ <taskOutcome></taskOutcome>
</div>
</div>
</div>
@@ -53,6 +53,7 @@
import statistics from './components/statistics.vue'
import { ElMessage } from 'element-plus'
let checked = ref('CURRENT_YEAR')
+const display = ref(false)
let timeListStr = ['本周', '本月', '本年']
let timeListEnum = ['CURRENT_WEEK', 'CURRENT_MONTH', 'CURRENT_YEAR']
const params = ref({
@@ -68,7 +69,7 @@
dateSelect.value = item
-
+
}
const refresh = () => {
params.value.date_enum = 'CURRENT_YEAR'
@@ -89,8 +90,9 @@
getJobEventTotal().then(res => {
eventTotal.value = res?.data?.data || 0
})
-
-
+ setTimeout(() => {
+ display.value = true
+ },1000)
})
</script>
@@ -194,7 +196,7 @@
.centerLeft {
width: 50%;
-
+
}
.centerRight {
--
Gitblit v1.9.3