From dc17fed8071f54916db4149a5aa74eeab8886387 Mon Sep 17 00:00:00 2001
From: DESKTOP-6GG29MI\dell <2847338803@qq.com>
Date: Tue, 21 Oct 2025 08:18:58 +0000
Subject: [PATCH] pms首页修改

---
 eladmin-web-master/src/views/home.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/eladmin-web-master/src/views/home.vue b/eladmin-web-master/src/views/home.vue
index 493de3d..faddfa0 100644
--- a/eladmin-web-master/src/views/home.vue
+++ b/eladmin-web-master/src/views/home.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="dashboard-container">
-    <div class="dashboard-editor-container">
+    <div v-loading="loading" class="dashboard-editor-container">
       <panel-group
         :user-info="userInfo"
         :merit-wage-list="meritWageList"
@@ -136,7 +136,8 @@
       userInfo: {},
       meritWageList: [],
       // 年月
-      yearMonth: new Date()
+      yearMonth: new Date(),
+      loading: false
     }
   },
   mounted() {
@@ -149,6 +150,7 @@
     },
     // 箭头点击事件
     monthClick(type) {
+      this.loading = true
       const calendarApi = this.$refs['fullCalendar'].getApi()
       if (type === 'prev') {
         calendarApi.prev()
@@ -188,6 +190,10 @@
         })
         .catch(() => {
           this.calendarOptions.events = []
+          this.loading = false
+        })
+        .finally(() => {
+          this.loading = false
         })
     },
     // 日期点击

--
Gitblit v1.9.3