From 17efc8b0fb7d3fa66eb8e22f32b81e3e14bcd7f6 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 06 一月 2026 17:37:57 +0800
Subject: [PATCH] 测试完成

---
 src/views/index.vue |  108 +++++++++++++++++++++++++++++++++++------------------
 1 files changed, 71 insertions(+), 37 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index 500289c..5697f38 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -3,7 +3,7 @@
     <div class="home" style="margin-top: 40px; margin-left: 20px">
       <!-- 澶撮儴涓や釜 -->
       <el-row :gutter="20">
-        <el-col :span="11">
+        <el-col :span="8">
           <!-- 灏辫瘖缁熻鐩掑瓙 -->
           <div class="grid-content bg-purple headerBox bgc1">
             <div class="title">
@@ -45,7 +45,7 @@
             </el-row>
           </div>
         </el-col>
-        <el-col :span="9">
+        <el-col :span="12">
           <div class="grid-content bg-purple headerBox bgc2">
             <div class="title">
               鍑洪櫌鏈嶅姟
@@ -60,7 +60,8 @@
               <span>{{ endatd }} ~ {{ statd }}</span>
             </div>
             <el-row :gutter="20">
-              <el-col :span="10">
+              <!-- 鍑洪櫌灏辫瘖閲� -->
+              <el-col :span="6">
                 <div class="home-user-task-stats">
                   <p style="color: red">{{ DischargeData.rc }}</p>
                 </div>
@@ -68,12 +69,31 @@
                   <p>鍑洪櫌灏辫瘖閲忥紙浜烘锛�</p>
                 </div>
               </el-col>
-              <el-col :span="10">
+              <!-- 棣栨鏈嶅姟 -->
+              <el-col :span="6">
                 <div class="home-user-task-stats">
-                  <p style="color: red">{{ DischargeData.rs }}</p>
-                  <div class="text-color2">
-                    <p>鍑洪櫌鏈嶅姟閲忥紙浜烘锛�</p>
-                  </div>
+                  <p style="color: #67c23a">{{ DischargeData.scsf }}</p>
+                </div>
+                <div class="text-color2" style="color: #67c23a">
+                  <p>棣栨鏈嶅姟锛堜汉娆★級</p>
+                </div>
+              </el-col>
+              <!-- 鍐嶆鏈嶅姟 -->
+              <el-col :span="6">
+                <div class="home-user-task-stats">
+                  <p style="color: #e6a23c">{{ DischargeData.zcsf }}</p>
+                </div>
+                <div class="text-color2" style="color: #e6a23c">
+                  <p>鍐嶆鏈嶅姟锛堜汉娆★級</p>
+                </div>
+              </el-col>
+              <!-- 涓撶梾鏈嶅姟 -->
+              <el-col :span="6">
+                <div class="home-user-task-stats">
+                  <p style="color: #409eff">{{ DischargeData.zbsf }}</p>
+                </div>
+                <div class="text-color2" style="color: #409eff">
+                  <p>涓撶梾鏈嶅姟锛堜汉娆★級</p>
                 </div>
               </el-col>
             </el-row>
@@ -128,13 +148,18 @@
         </el-col>
         <!-- 鍙宠竟鍒楄〃 -->
         <el-col :span="4" class="aside">
-          <div class="grid-content bg-purple" style="margin-top: -180px">
+          <div class="grid-contentsa bg-purple" style="margin-top: -180px">
             <div class="title">
               绉戝鏈嶅姟閲�
               <span>{{ endatd }} ~ {{ statd }}</span>
             </div>
             <div class="dept-table-container">
-              <el-table v-if="SkuTop.length > 0" style="width: 100%" :data="SkuTop" :height="tableHeight">
+              <el-table
+                v-if="SkuTop.length > 0"
+                style="width: 100%"
+                :data="SkuTop"
+                :height="tableHeight"
+              >
                 <template v-for="(item, index) in SkuTop"></template>
                 <el-table-column
                   prop="order"
@@ -153,8 +178,8 @@
                 </el-table-column>
               </el-table>
               <div v-else class="empty-tip">
-  <el-empty description="鏆傛棤绉戝鏈嶅姟鏁版嵁"></el-empty>
-</div>
+                <el-empty description="鏆傛棤绉戝鏈嶅姟鏁版嵁"></el-empty>
+              </div>
             </div>
           </div>
         </el-col>
@@ -331,8 +356,11 @@
         骞�: "year",
       },
       DischargeData: {
-        rs: "",
-        rc: "",
+        rc: "", // 鍑洪櫌灏辫瘖閲忥紙鎬讳汉娆★級
+        rs: "", // 鍑洪櫌鏈嶅姟閲忥紙鎬讳汉娆★級
+        scsf: 0, // 鏂板锛氶娆℃湇鍔′汉娆�
+        zcsf: 0, // 鏂板锛氬啀娆℃湇鍔′汉娆�
+        zbsf: 0, // 鏂板锛氫笓鐥呮湇鍔′汉娆�
       },
       OutpatientData: {
         rs: "",
@@ -361,7 +389,7 @@
     atd() {
       return dayjs().subtract(this.dyat, "day").format("YYYY-MM-DD HH:mm:ss");
     },
-   statd() {
+    statd() {
       if (this.radio1 === "鑷畾涔�" && this.customDateRange.length > 0) {
         return this.customDateRange[1];
       }
@@ -374,15 +402,15 @@
       return dayjs().subtract(this.dyat, "day").format("YYYY-MM-DD");
     },
     tableHeight() {
-    // 鏍规嵁鏁版嵁閲忓姩鎬佽绠楅珮搴�
-    const rowHeight = 40; // 姣忚澶х害楂樺害
-    const headerHeight = 40; // 琛ㄥご楂樺害
-    const minHeight = 500; // 鏈�灏忛珮搴�
-    const maxHeight = 600; // 鏈�澶ч珮搴�
+      // 鏍规嵁鏁版嵁閲忓姩鎬佽绠楅珮搴�
+      const rowHeight = 40; // 姣忚澶х害楂樺害
+      const headerHeight = 40; // 琛ㄥご楂樺害
+      const minHeight = 500; // 鏈�灏忛珮搴�
+      const maxHeight = 600; // 鏈�澶ч珮搴�
 
-    const calculatedHeight = this.SkuTop.length * rowHeight + headerHeight;
-    return Math.min(Math.max(calculatedHeight, minHeight), maxHeight);
-  }
+      const calculatedHeight = this.SkuTop.length * rowHeight + headerHeight;
+      return Math.min(Math.max(calculatedHeight, minHeight), maxHeight);
+    },
   },
   created() {
     this.getTopdata();
@@ -515,7 +543,7 @@
       let params = {
         startDate: this.endatd,
         endDate: this.statd,
-        timeType: this.getTimeType()
+        timeType: this.getTimeType(),
       };
 
       try {
@@ -542,7 +570,7 @@
       if (this.radio1 === "鑷畾涔�" && this.customDateRange.length === 2) {
         const start = dayjs(this.customDateRange[0]);
         const end = dayjs(this.customDateRange[1]);
-        const diffDays = end.diff(start, 'day');
+        const diffDays = end.diff(start, "day");
 
         return diffDays > 60 ? "month" : "day";
       }
@@ -562,18 +590,19 @@
       const pmoData = [];
 
       sortedData.forEach((item) => {
-  // 鏍规嵁鏃堕棿绫诲瀷鏍煎紡鍖栨樉绀�
-  const timeType = this.getTimeType();
-  const timeLabel = timeType === "day"
-    ? dayjs(item.timePeriod).format("MM-DD")
-    : dayjs(item.timePeriod).format("YYYY-MM");
+        // 鏍规嵁鏃堕棿绫诲瀷鏍煎紡鍖栨樉绀�
+        const timeType = this.getTimeType();
+        const timeLabel =
+          timeType === "day"
+            ? dayjs(item.timePeriod).format("MM-DD")
+            : dayjs(item.timePeriod).format("YYYY-MM");
 
-  xAxisData.push(timeLabel);
-  dischargeFollowData.push(item.dischargeFollowCount);
-  outpatientFollowData.push(item.outpatientFollowCount);
-  pmiData.push(item.pmiCount);
-  pmoData.push(item.pmoCount);
-});
+        xAxisData.push(timeLabel);
+        dischargeFollowData.push(item.dischargeFollowCount);
+        outpatientFollowData.push(item.outpatientFollowCount);
+        pmiData.push(item.pmiCount);
+        pmoData.push(item.pmoCount);
+      });
 
       // 鏇存柊鍥捐〃
       this.updateChart(
@@ -867,7 +896,6 @@
     },
     // 椤甸潰鍙樺寲璋冩暣澶у皬
     handleResize() {
-      console.log(111);
       // 璋冩暣 ECharts 鍥捐〃澶у皬
       if (this.myChart2) {
         this.myChart2.resize();
@@ -1167,6 +1195,12 @@
   padding: 0 10px;
   text-align: center;
 }
+.grid-contentsa {
+  min-height: 600px;
+  border-radius: 20px;
+  padding: 0 10px;
+  text-align: center;
+}
 
 .grid-contents {
   min-height: 36px;

--
Gitblit v1.9.3