From bc241c45a62a92045c18ef18f9355c8f4ea71c56 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 15 五月 2025 15:26:57 +0800
Subject: [PATCH] 测试完成

---
 src/views/index.vue |  276 +++++++++++++++++++++++++++---------------------------
 1 files changed, 138 insertions(+), 138 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index 2fe2587..b43ec1e 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -7,49 +7,48 @@
           <!-- 灏辫瘖缁熻鐩掑瓙 -->
           <div class="grid-content bg-purple headerBox bgc1">
             <div class="title">
-              鎮h�呯粺璁�<span
+              闂ㄨ瘖鏈嶅姟<span
                 style="
                   font-size: 25px;
                   font-weight: 600;
                   text-shadow: 2px 4px 7px rgb(85 132 255 / 50%);
                   color: black;
                 "
-                >12322 (浜�)</span
-              >
+              ></span>
               <span>{{ endatd }} ~ {{ statd }}</span>
             </div>
             <el-row :gutter="20">
-              <el-col :span="8">
+              <el-col :span="10">
                 <div class="home-user-task-stats">
                   <p>{{ 11231 }}</p>
                   <div class="text-color2">
-                    <p>闂ㄨ瘖鎬绘暟锛堜汉锛�</p>
+                    <p>闂ㄨ瘖灏辫瘖閲忥紙浜烘锛�</p>
                   </div>
                 </div>
               </el-col>
-              <el-col :span="7">
+              <el-col :span="10">
                 <div class="home-user-task-stats">
                   <p>{{ 9207 }}</p>
                   <div class="text-color2">
-                    <p>浣忛櫌鎬绘暟锛堜汉锛�</p>
+                    <p>闂ㄨ瘖鏈嶅姟閲忥紙浜烘锛�</p>
                   </div>
                 </div>
               </el-col>
-              <el-col :span="7">
+              <!-- <el-col :span="7">
                 <div class="home-user-task-stats">
                   <p>{{ 1209 }}</p>
                   <div class="text-color2">
                     <p>浣撴鎬绘暟锛堜汉锛�</p>
                   </div>
                 </div>
-              </el-col>
+              </el-col> -->
             </el-row>
           </div>
         </el-col>
         <el-col :span="9">
           <div class="grid-content bg-purple headerBox bgc2">
             <div class="title">
-              闂ㄨ瘖鏈嶅姟鎬绘暟
+              鍑洪櫌鏈嶅姟
               <span
                 style="
                   font-size: 25px;
@@ -57,24 +56,23 @@
                   font-weight: 600;
                   color: red;
                 "
-                >12322 (浜�)</span
-              >
+              ></span>
               <span>{{ endatd }} ~ {{ statd }}</span>
             </div>
             <el-row :gutter="20">
-              <el-col :span="12">
+              <el-col :span="10">
                 <div class="home-user-task-stats">
                   <p style="color: red">{{ 3453 }}</p>
                 </div>
                 <div class="text-color2">
-                  <p>浣忛櫌鏈嶅姟浜烘暟</p>
+                  <p>鍑洪櫌灏辫瘖閲忥紙浜烘锛�</p>
                 </div>
               </el-col>
-              <el-col :span="12">
+              <el-col :span="10">
                 <div class="home-user-task-stats">
                   <p style="color: red">{{ 4213 }}</p>
                   <div class="text-color2">
-                    <p>浣撴鏈嶅姟浜烘暟</p>
+                    <p>鍑洪櫌鏈嶅姟閲忥紙浜烘锛�</p>
                   </div>
                 </div>
               </el-col>
@@ -88,7 +86,7 @@
           <!-- echars鏁版嵁鍙鍖� -->
           <div class="grid-content bg-purple" style="min-height: 365px">
             <div class="title">
-              灏辫瘖缁熻
+              鏈嶅姟缁熻
               <span>{{ endatd }} ~ {{ statd }}</span>
               <el-radio-group
                 v-model="radio1"
@@ -117,7 +115,7 @@
         <el-col :span="4" class="aside">
           <div class="grid-content bg-purple" style="margin-top: -180px">
             <div class="title">
-              鍋ュ悍瀹f暀
+              绉戝鏈嶅姟閲�
               <span>{{ endatd }} ~ {{ statd }}</span>
             </div>
             <div style="max-height: 690px; width: 100%; overflow: auto">
@@ -134,6 +132,7 @@
                   width="88"
                   class-name="name"
                 ></el-table-column>
+
                 <el-table-column prop="count" class-name="count">
                   <template slot-scope="scope">
                     {{ scope.row.count }}娆�
@@ -146,7 +145,7 @@
       </el-row>
       <!-- 搴曢儴涓�涓� -->
       <el-row :gutter="20" style="margin-bottom: 20px">
-        <el-col :span="15">
+        <el-col :span="24">
           <div class="grid-content bg-purple" style="min-height: 300px">
             <div class="title">
               瀹f暀缁熻
@@ -158,7 +157,7 @@
             </div>
           </div>
         </el-col>
-        <el-col :span="9">
+        <!-- <el-col :span="9">
           <div class="grid-content bg-purple" style="min-height: 300px">
             <div class="title">
               鍚勯」鏈嶅姟缁熻
@@ -167,7 +166,7 @@
             <div class="empenty">
               <el-row>
                 <el-col :span="3"
-                  ><div class="grid-contents bg-purples" >鍑洪櫌锛�</div></el-col
+                  ><div class="grid-contents bg-purples">鍑洪櫌锛�</div></el-col
                 >
                 <el-col :span="7">
                   <div style="display: flex">
@@ -187,13 +186,13 @@
                     <div class="subtitle">澶嶈瘖閫氱煡</div>
                     <div class="grid-contents bg-purple-light">0娆�</div>
                   </div>
-                </el-col> </el-row
-              >
+                </el-col>
+              </el-row>
               <el-row>
                 <el-col :span="3"
-                  ><div class="grid-contents bg-purples" ></div></el-col
-                >
-                <el-col :span="7" >
+                  ><div class="grid-contents bg-purples"></div
+                ></el-col>
+                <el-col :span="7">
                   <div style="display: flex">
                     <div class="subtitle">鍑洪櫌璇勪及</div>
                     <div class="grid-contents bg-purple-light">0娆�</div>
@@ -212,16 +211,15 @@
                     <div class="grid-contents bg-purple-light">0娆�</div>
                   </div>
                 </el-col>
-                 </el-row
-              >
+              </el-row>
 
               <el-row>
                 <el-col :span="3"
-                  ><div class="grid-contents bg-purples" >闂ㄨ瘖锛�</div></el-col
+                  ><div class="grid-contents bg-purples">闂ㄨ瘖锛�</div></el-col
                 >
                 <el-col :span="7">
                   <div style="display: flex">
-                    <div class="subtitle">闂ㄨ瘖闅忚</div>
+                    <div class="subtitle">褰卞儚闅忚</div>
                     <div class="grid-contents bg-purple-light">0娆�</div>
                   </div>
                 </el-col>
@@ -237,71 +235,66 @@
                     <div class="subtitle">澶嶈瘖閫氱煡</div>
                     <div class="grid-contents bg-purple-light">0娆�</div>
                   </div>
-                </el-col> </el-row
-              >
+                </el-col>
+              </el-row>
               <el-row>
                 <el-col :span="3"
-                  ><div class="grid-contents bg-purples" ></div></el-col
-                >
+                  ><div class="grid-contents bg-purples"></div
+                ></el-col>
                 <el-col :span="7">
                   <div style="display: flex">
-                    <div class="subtitle">鍑洪櫌闅忚</div>
+                    <div class="subtitle">婊℃剰搴﹁皟鏌�</div>
                     <div class="grid-contents bg-purple-light">0娆�</div>
                   </div>
                 </el-col>
                 <el-col :span="7">
                   <div style="display: flex">
-                    <div class="subtitle">鍑洪櫌瀹f暀</div>
+                    <div class="subtitle">鍏朵粬閫氱煡</div>
+                    <div class="grid-contents bg-purple-light">0娆�</div>
+                  </div>
+                </el-col>
+              </el-row>
+              <el-row>
+                <el-col :span="3"
+                  ><div class="grid-contents bg-purples">鍦ㄩ櫌锛�</div></el-col
+                >
+                <el-col :span="7">
+                  <div style="display: flex">
+                    <div class="subtitle">鍦ㄩ櫌瀹f暀</div>
+                    <div class="grid-contents bg-purple-light">0娆�</div>
+                  </div>
+                </el-col>
+                <el-col :span="7">
+                  <div style="display: flex">
+                    <div class="subtitle">鍦ㄩ櫌璇勪及</div>
                     <div class="grid-contents bg-purple-light">0娆�</div>
                   </div>
                 </el-col>
 
                 <el-col :span="7">
                   <div style="display: flex">
-                    <div class="subtitle">澶嶈瘖閫氱煡</div>
-                    <div class="grid-contents bg-purple-light">0娆�</div>
-                  </div>
-                </el-col> </el-row
-              >
-              <el-row>
-                <el-col :span="3"
-                  ><div class="grid-contents bg-purples" >鍦ㄩ櫌锛�</div></el-col
-                >
-                <el-col :span="7">
-                  <div style="display: flex">
-                    <div class="subtitle">鍑洪櫌闅忚</div>
+                    <div class="subtitle">鍏朵粬閫氱煡</div>
                     <div class="grid-contents bg-purple-light">0娆�</div>
                   </div>
                 </el-col>
-                <el-col :span="7">
-                  <div style="display: flex">
-                    <div class="subtitle">鍑洪櫌瀹f暀</div>
-                    <div class="grid-contents bg-purple-light">0娆�</div>
-                  </div>
-                </el-col>
-
-                <el-col :span="7">
-                  <div style="display: flex">
-                    <div class="subtitle">澶嶈瘖閫氱煡</div>
-                    <div class="grid-contents bg-purple-light">0娆�</div>
-                  </div>
-                </el-col> </el-row
-              >
+              </el-row>
             </div>
           </div>
-        </el-col>
+        </el-col> -->
       </el-row>
     </div>
   </div>
 </template>
 
 <script>
-// import {
-//   getUserWork,
-//   getregionCollect,
-//   getregionOrderCount,
-
-// } from "@/api/home";
+import {
+  getEChartsPatMedOuthospCount,
+  getechartsListCountdata,
+  getechartsMedOuthospList,
+  getechartsMedInhospList,
+  getechartsandData,
+  getDeptRanking,
+} from "@/api/AiCentre/index";
 import dayjs from "dayjs";
 
 export default {
@@ -347,13 +340,11 @@
     },
   },
   created() {
+    // this.getTopdata();
+    // this.getgraphdata();
+    // this.getranking();
     this.$nextTick(function () {
       this.getregionAmountCollect();
-      this.getUserWorks();
-      this.getregionCollect();
-      this.getregionOrderCount();
-      this.getNodeCount();
-      this.getPrtnerCount();
       this.getnodeCollect();
       this.getSkuTop();
     });
@@ -377,32 +368,20 @@
       } else {
         this.dyat = 360;
       }
+      this.getgraphdata();
+      this.getranking();
+      this.getTopdata();
       this.getregionAmountCollect();
-      this.getUserWorks();
-      this.getregionCollect();
-      this.getregionOrderCount();
-      this.getNodeCount();
-      this.getPrtnerCount();
       this.getnodeCollect();
       this.getSkuTop();
     },
 
-    // 鑾峰彇鐐逛綅鎬绘暟
-    async getNodeCount() {
-      // const res = await getNodeCount();
-      // this.NodeCount = res.data;
-    },
-    // 鑾峰彇鍚堜綔鍟嗘�绘暟
-    async getPrtnerCount() {
-      // const res = await getPrtnerCount();
-      // this.PrtnerCount = res.data;
-    },
     // 鍚堜綔鍟嗙偣浣嶆眹鎬荤粺璁¢ゼ鐘跺浘
     async getnodeCollect() {
       // const res = await getnodeCollect();
       // this.nodeCollect = res.data;
       this.nodeCollect = [
-        { name: "闂ㄨ瘖闅忚", value: 1232 },
+        { name: "褰卞儚闅忚", value: 1232 },
         { name: "鍑洪櫌闅忚", value: 342 },
       ];
       this.myPieChart();
@@ -425,34 +404,53 @@
         { amount: 0, count: 89, skuId: "0", skuName: "鎬ヨ瘖" },
         { amount: 0, count: 88, skuId: "0", skuName: "鍣ㄦ绉�" },
         { amount: 0, count: 87, skuId: "0", skuName: "楠ㄧ" },
-        { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�" },
+        { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�1" },
+        { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�2" },
       ];
     },
-    // 鑾峰彇宸ュ崟鏁伴噺
-    async getUserWorks() {
-      // const res = await getUserWork(this.atd, this.td);
-      // this.ticketStatistics = res.data[0];
+    // 鑾峰彇澶撮儴鏁版嵁
+    getTopdata() {
+      let hospCountdata = {
+        startDate: this.endatd,
+        endDate: this.statd,
+        cy: 1,
+      };
+      let Countdata = {
+        startDate: this.endatd,
+        endDate: this.statd,
+        cy: 1,
+      };
+      getEChartsPatMedOuthospCount(hospCountdata).then((res) => {});
+      getechartsListCountdata(Countdata).then((res) => {});
     },
     // 鑾峰彇灏辫瘖鏁伴噺
-    async getregionOrderCount() {
-      // const res = await getregionOrderCount({
-      //   start: this.atd,
-      //   end: this.td,
-      // });
-      // this.order = res.data;
+    getranking() {
+      let Rankingdata = {
+        startDate: this.endatd,
+        endDate: this.statd,
+        cy: 1,
+      };
+      getDeptRanking(Rankingdata).then((res) => {});
     },
-    // 鑾峰彇鎬婚噺鏁伴噺
-    async getregionCollect() {
-      // const res = await getregionCollect({
-      //   start: this.atd,
-      //   end: this.td,
-      // });
-      // this.Count = (res.data / 1000000).toFixed(2);
+    // 鑾峰彇涓儴绾挎煴鍥炬暟鎹�
+    getgraphdata() {
+      let Outhospdata = {
+        startDate: this.endatd,
+        endDate: this.statd,
+        cy: 1,
+      };
+      let Inhospdata = {
+        startDate: this.endatd,
+        endDate: this.statd,
+        cy: 1,
+      };
+      getechartsMedOuthospList(Outhospdata).then((res) => {});
+      getechartsMedInhospList(Inhospdata).then((res) => {});
     },
 
     // 鑾峰彇绾跨姸鍥炬椂闂�
     async getregionAmountCollect() {
-      // const res = await getregionAmountCollect(1, this.endatd, this.statd);
+      //getregionAmountCollect(1, this.endatd, this.statd);
       // this.xAxis = res.data.xAxis;
       // this.series = res.data.series;
       this.xAxis = ["1鏈�", "2鏈�", "3鏈�", "4鏈�", "5鏈�", "6鏈�", "7鏈�", "8鏈�"];
@@ -486,10 +484,10 @@
           data: [
             "鍑洪櫌闅忚閲�",
             "闂ㄨ瘖闅忚閲�",
-            "鍦ㄩ櫌闅忚閲�",
-            "闂ㄨ瘖澶嶈瘖閫氱煡",
-            "鍑洪櫌澶嶈瘖閫氱煡",
-            "鍦ㄩ櫌璇勪及閲�",
+            // "鍦ㄩ櫌闅忚閲�",
+            // "闂ㄨ瘖澶嶈瘖閫氱煡",
+            "鍑洪櫌鏈嶅姟浜烘",
+            "闂ㄨ瘖鏈嶅姟浜烘",
           ],
         },
         xAxis: [
@@ -546,18 +544,18 @@
             },
             data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
           },
+          // {
+          //   name: "褰卞儚闅忚閲�",
+          //   type: "bar",
+          //   tooltip: {
+          //     valueFormatter: function (value) {
+          //       return value + " 浜�";
+          //     },
+          //   },
+          //   data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
+          // },
           {
             name: "闂ㄨ瘖闅忚閲�",
-            type: "bar",
-            tooltip: {
-              valueFormatter: function (value) {
-                return value + " 浜�";
-              },
-            },
-            data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
-          },
-          {
-            name: "鍦ㄩ櫌闅忚閲�",
             type: "bar",
             tooltip: {
               valueFormatter: function (value) {
@@ -567,20 +565,20 @@
             data: [145, 92, 178, 134, 167, 85, 199, 112, 156, 88, 120, 145],
           },
 
+          // {
+          //   name: "鍑洪櫌澶嶈瘖閫氱煡",
+          //   type: "line",
+          //   smooth: 0.3,
+          //   yAxisIndex: 1,
+          //   tooltip: {
+          //     valueFormatter: function (value) {
+          //       return value + " 娆�";
+          //     },
+          //   },
+          //   data: [45, 123, 78, 156, 89, 34, 199, 112, 67, 145, 88, 175],
+          // },
           {
-            name: "鍑洪櫌澶嶈瘖閫氱煡",
-            type: "line",
-            smooth: 0.3,
-            yAxisIndex: 1,
-            tooltip: {
-              valueFormatter: function (value) {
-                return value + " 娆�";
-              },
-            },
-            data: [45, 123, 78, 156, 89, 34, 199, 112, 67, 145, 88, 175],
-          },
-          {
-            name: "闂ㄨ瘖澶嶈瘖閫氱煡",
+            name: "鍑洪櫌鏈嶅姟浜烘",
             type: "line",
             smooth: 0.3,
             yAxisIndex: 1,
@@ -592,7 +590,7 @@
             data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
           },
           {
-            name: "鍦ㄩ櫌璇勪及閲�",
+            name: "闂ㄨ瘖鏈嶅姟浜烘",
             type: "line",
             smooth: 0.3,
             yAxisIndex: 1,
@@ -1003,7 +1001,7 @@
   line-height: 36px;
   width: 6vw;
 }
-.subtitle{
+.subtitle {
   text-align: center;
   align-items: center;
 }
@@ -1011,7 +1009,9 @@
   min-height: 36px;
   border-radius: 20px;
   padding: 0 10px;
+  text-align: center;
 }
+
 .grid-contents {
   min-height: 36px;
   border-radius: 20px;

--
Gitblit v1.9.3