From e353f0e17dc46203512dd272c5b559b094e40761 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 25 七月 2025 15:02:36 +0800
Subject: [PATCH] 测试完成
---
src/views/index.vue | 174 +++++++++++++++++++++++++++-------------------------------
1 files changed, 81 insertions(+), 93 deletions(-)
diff --git a/src/views/index.vue b/src/views/index.vue
index f03c396..8f4e3f2 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -14,14 +14,14 @@
text-shadow: 2px 4px 7px rgb(85 132 255 / 50%);
color: black;
"
- >12322 (浜�)</span
+ >{{0}} (浜�)</span
>
<span>{{ endatd }} ~ {{ statd }}</span>
</div>
<el-row :gutter="20">
<el-col :span="8">
<div class="home-user-task-stats">
- <p>{{ 11231 }}</p>
+ <p>{{ 0 }}</p>
<div class="text-color2">
<p>闂ㄨ瘖鎬绘暟锛堜汉锛�</p>
</div>
@@ -29,7 +29,7 @@
</el-col>
<el-col :span="7">
<div class="home-user-task-stats">
- <p>{{ 9207 }}</p>
+ <p>{{ 0 }}</p>
<div class="text-color2">
<p>浣忛櫌鎬绘暟锛堜汉锛�</p>
</div>
@@ -37,7 +37,7 @@
</el-col>
<el-col :span="7">
<div class="home-user-task-stats">
- <p>{{ 1209 }}</p>
+ <p>{{ 0 }}</p>
<div class="text-color2">
<p>浣撴鎬绘暟锛堜汉锛�</p>
</div>
@@ -64,7 +64,7 @@
<el-row :gutter="20">
<el-col :span="12">
<div class="home-user-task-stats">
- <p style="color: red">{{ 3453 }}</p>
+ <p style="color: red">{{ 0 }}</p>
</div>
<div class="text-color2">
<p>浣忛櫌鏈嶅姟浜烘暟</p>
@@ -72,7 +72,7 @@
</el-col>
<el-col :span="12">
<div class="home-user-task-stats">
- <p style="color: red">{{ 4213 }}</p>
+ <p style="color: red">{{ 0 }}</p>
<div class="text-color2">
<p>浣撴鏈嶅姟浜烘暟</p>
</div>
@@ -167,7 +167,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 +187,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,12 +212,11 @@
<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">
@@ -237,12 +236,12 @@
<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>
@@ -255,12 +254,10 @@
<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">
@@ -280,8 +277,8 @@
<div class="subtitle">鍏朵粬閫氱煡</div>
<div class="grid-contents bg-purple-light">0娆�</div>
</div>
- </el-col> </el-row
- >
+ </el-col>
+ </el-row>
</div>
</div>
</el-col>
@@ -291,13 +288,14 @@
</template>
<script>
-// import {
-// getUserWork,
-// getregionCollect,
-// getregionOrderCount,
-
-// } from "@/api/home";
+import {
+ getoutpatientamount,
+ getInhospital,
+ getBarchart,
+ getQtemplateobj,
+} from "@/api/AiCentre/index";
import dayjs from "dayjs";
+import { data } from "jquery";
export default {
name: "home",
@@ -342,13 +340,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();
});
@@ -373,25 +369,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();
@@ -407,47 +391,38 @@
// const res = await getSkuTop(10, this.endatd, this.statd);
// this.SkuTop = res.data;
this.SkuTop = [
- { amount: 0, count: 123, skuId: "0", skuName: "蹇冭偤绉�" },
- { amount: 0, count: 122, skuId: "0", skuName: "鑲捐剰绉�" },
- { amount: 0, count: 112, skuId: "0", skuName: "娉屽翱绉�" },
- { amount: 0, count: 111, skuId: "0", skuName: "鐢风" },
- { amount: 0, count: 102, skuId: "0", skuName: "濡囦骇绉�" },
- { amount: 0, count: 98, skuId: "0", skuName: "澶栫" },
- { 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: 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: 123, skuId: "0", skuName: "蹇冭偤绉�" },
+ // { amount: 0, count: 122, skuId: "0", skuName: "鑲捐剰绉�" },
+ // { amount: 0, count: 112, skuId: "0", skuName: "娉屽翱绉�" },
+ // { amount: 0, count: 111, skuId: "0", skuName: "鐢风" },
+ // { amount: 0, count: 102, skuId: "0", skuName: "濡囦骇绉�" },
+ // { amount: 0, count: 98, skuId: "0", skuName: "澶栫" },
+ // { 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: 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: "鏀惧皠绉�" },
];
},
- // 鑾峰彇宸ュ崟鏁伴噺
- 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鏈�"];
@@ -539,7 +514,8 @@
return value + " 浜�";
},
},
- data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
+ // data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
+ data:[],
},
{
name: "闂ㄨ瘖闅忚閲�",
@@ -549,7 +525,8 @@
return value + " 浜�";
},
},
- data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
+ // data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
+ data:[],
},
{
name: "鍦ㄩ櫌闅忚閲�",
@@ -559,7 +536,9 @@
return value + " 浜�";
},
},
- data: [145, 92, 178, 134, 167, 85, 199, 112, 156, 88, 120, 145],
+ // data: [145, 92, 178, 134, 167, 85, 199, 112, 156, 88, 120, 145],
+ data:[],
+
},
{
@@ -572,7 +551,9 @@
return value + " 娆�";
},
},
- data: [45, 123, 78, 156, 89, 34, 199, 112, 67, 145, 88, 175],
+ // data: [45, 123, 78, 156, 89, 34, 199, 112, 67, 145, 88, 175],
+ data:[],
+
},
{
name: "闂ㄨ瘖澶嶈瘖閫氱煡",
@@ -584,7 +565,9 @@
return value + " 娆�";
},
},
- data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
+ // data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
+ data:[],
+
},
{
name: "鍦ㄩ櫌璇勪及閲�",
@@ -596,7 +579,9 @@
return value + " 娆�";
},
},
- data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
+ // data: [120, 150, 165, 90, 140, 200, 130, 85, 175, 95, 110, 160],
+ data:[],
+
},
],
};
@@ -635,10 +620,13 @@
},
dataset: {
source: [
- ["product", "2012", "2013", "2014", "2015", "2016", "2017"],
- ["鍑洪櫌瀹f暀", 56, 82, 88, 70, 53, 85],
- ["鍦ㄩ櫌瀹f暀", 51, 51, 55, 53, 73, 68],
- ["闂ㄨ瘖瀹f暀", 40, 62, 69, 36, 45, 32],
+ ["product", "2020", "2021", "2022", "2023", "2024", "2025"],
+ // ["鍑洪櫌瀹f暀", 56, 82, 88, 70, 53, 85],
+ // ["鍦ㄩ櫌瀹f暀", 51, 51, 55, 53, 73, 68],
+ // ["闂ㄨ瘖瀹f暀", 40, 62, 69, 36, 45, 32],
+ ["鍑洪櫌瀹f暀", ],
+ ["鍦ㄩ櫌瀹f暀", ],
+ ["闂ㄨ瘖瀹f暀", ],
],
},
xAxis: { type: "category" },
@@ -998,7 +986,7 @@
line-height: 36px;
width: 6vw;
}
-.subtitle{
+.subtitle {
text-align: center;
align-items: center;
}
--
Gitblit v1.9.3