From 88d423ce3a1f624bc3b84b4c71ec06d8024da15b Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期六, 07 九月 2024 16:09:25 +0800
Subject: [PATCH] 测试完成

---
 src/views/index.vue |  274 +++++++++++++++++++++++++++++-------------------------
 1 files changed, 145 insertions(+), 129 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index a98450a..439d775 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -166,88 +166,118 @@
             </div>
             <div class="empenty">
               <el-row>
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">璇婄枟棰勭害</div></el-col
+                <el-col :span="3"
+                  ><div class="grid-contents bg-purples">鍑洪櫌锛�</div></el-col
                 >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">
-                    123娆�
-                  </div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">杞瘖鏈嶅姟</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">
-                    231娆�
-                  </div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">淇℃伅鎺ㄩ��</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">
-                    900娆�
-                  </div></el-col
-                > </el-row
-              ><el-row>
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">鏍囪瘑涓庡鑸�</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">23娆�</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">
-                    鎮h�呬究鍒╀繚闅滄湇鍔�
-                  </div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">13娆�</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">杩滅▼鍖荤枟</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">31娆�</div></el-col
-                > </el-row
-              ><el-row>
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">鎮h�呭弽棣�</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">
-                    150浜�
-                  </div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">鎮h�呯鐞�</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">
-                    231浜�
-                  </div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">鍋ュ悍瀹f暀</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">400</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">鍑洪櫌瀹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>
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple">鍙嶉鍗犳瘮</div></el-col
+                <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="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="4"
-                  ><div class="grid-contents bg-purple-light">23%</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">闂ㄨ瘖瀹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>
+                <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="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="4"
-                  ><div class="grid-contents bg-purple">绠$悊鍗犳瘮</div></el-col
-                >
-                <el-col :span="4"
-                  ><div class="grid-contents bg-purple-light">32%</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>
             </div>
           </div>
@@ -258,12 +288,12 @@
 </template>
 
 <script>
-// import {
-//   getUserWork,
-//   getregionCollect,
-//   getregionOrderCount,
-
-// } from "@/api/home";
+import {
+  getoutpatientamount,
+  getInhospital,
+  getBarchart,
+  getQtemplateobj,
+} from "@/api/AiCentre/index";
 import dayjs from "dayjs";
 
 export default {
@@ -309,13 +339,11 @@
     },
   },
   created() {
+    // this.getoutpatientamount();
+    // this.getInhospital();
+    // this.getBarchart();
     this.$nextTick(function () {
       this.getregionAmountCollect();
-      this.getUserWorks();
-      this.getregionCollect();
-      this.getregionOrderCount();
-      this.getNodeCount();
-      this.getPrtnerCount();
       this.getnodeCollect();
       this.getSkuTop();
     });
@@ -340,25 +368,13 @@
         this.dyat = 360;
       }
       this.getregionAmountCollect();
-      this.getUserWorks();
-      this.getregionCollect();
-      this.getregionOrderCount();
-      this.getNodeCount();
-      this.getPrtnerCount();
+      // this.getoutpatientamount();
+      // this.getInhospital();
+      // this.getBarchart();
       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();
@@ -390,31 +406,22 @@
         { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�" },
       ];
     },
-    // 鑾峰彇宸ュ崟鏁伴噺
-    async getUserWorks() {
-      // const res = await getUserWork(this.atd, this.td);
-      // this.ticketStatistics = res.data[0];
+    // 鑾峰彇闂ㄨ瘖鍩虹鏁版嵁
+    getoutpatientamount() {
+      getoutpatientamount().then((res) => {});
     },
     // 鑾峰彇灏辫瘖鏁伴噺
-    async getregionOrderCount() {
-      // const res = await getregionOrderCount({
-      //   start: this.atd,
-      //   end: this.td,
-      // });
-      // this.order = res.data;
+    getBarchart() {
+      getBarchart().then((res) => {});
     },
     // 鑾峰彇鎬婚噺鏁伴噺
-    async getregionCollect() {
-      // const res = await getregionCollect({
-      //   start: this.atd,
-      //   end: this.td,
-      // });
-      // this.Count = (res.data / 1000000).toFixed(2);
+    getInhospital() {
+      getInhospital().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鏈�"];
@@ -477,17 +484,17 @@
         yAxis: [
           {
             type: "value",
-            name: "Precipitation",
+            name: "闅忚閲�",
             min: 0,
             max: 250,
             interval: 50,
             axisLabel: {
-              formatter: "{value} ml",
+              formatter: "{value} 浜�",
             },
           },
           {
             type: "value",
-            name: "Temperature",
+            name: "澶嶈瘖/璇勪及娆℃暟",
             min: 0,
             max: 250,
             interval: 50,
@@ -503,7 +510,7 @@
             type: "bar",
             tooltip: {
               valueFormatter: function (value) {
-                return value + " ml";
+                return value + " 浜�";
               },
             },
             data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
@@ -513,7 +520,7 @@
             type: "bar",
             tooltip: {
               valueFormatter: function (value) {
-                return value + " ml";
+                return value + " 浜�";
               },
             },
             data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
@@ -523,7 +530,7 @@
             type: "bar",
             tooltip: {
               valueFormatter: function (value) {
-                return value + " ml";
+                return value + " 浜�";
               },
             },
             data: [145, 92, 178, 134, 167, 85, 199, 112, 156, 88, 120, 145],
@@ -603,9 +610,9 @@
         dataset: {
           source: [
             ["product", "2012", "2013", "2014", "2015", "2016", "2017"],
-            ["鍑洪櫌瀹f暀", 56.5, 82.1, 88.7, 70.1, 53.4, 85.1],
-            ["鍦ㄩ櫌瀹f暀", 51.1, 51.4, 55.1, 53.3, 73.8, 68.7],
-            ["闂ㄨ瘖瀹f暀", 40.1, 62.2, 69.5, 36.4, 45.2, 32.5],
+            ["鍑洪櫌瀹f暀", 56, 82, 88, 70, 53, 85],
+            ["鍦ㄩ櫌瀹f暀", 51, 51, 55, 53, 73, 68],
+            ["闂ㄨ瘖瀹f暀", 40, 62, 69, 36, 45, 32],
           ],
         },
         xAxis: { type: "category" },
@@ -954,11 +961,20 @@
 .bg-purple {
   background: #fff;
 }
+.bg-purples {
+  color: #206abe;
+  font-size: 18px;
+}
 .bg-purple-light {
   background: #e5e9f2;
   text-align: center;
   align-items: center;
   line-height: 36px;
+  width: 6vw;
+}
+.subtitle {
+  text-align: center;
+  align-items: center;
 }
 .grid-content {
   min-height: 36px;

--
Gitblit v1.9.3