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 | 342 +++++++++++++++++++++++++++++++--------------------------
1 files changed, 186 insertions(+), 156 deletions(-)
diff --git a/src/views/index.vue b/src/views/index.vue
index a98450a..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>
@@ -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,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",
@@ -309,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();
});
@@ -340,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();
@@ -374,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鏈�"];
@@ -477,17 +485,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,30 +511,34 @@
type: "bar",
tooltip: {
valueFormatter: function (value) {
- return value + " ml";
+ 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: "闂ㄨ瘖闅忚閲�",
type: "bar",
tooltip: {
valueFormatter: function (value) {
- return value + " ml";
+ 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: "鍦ㄩ櫌闅忚閲�",
type: "bar",
tooltip: {
valueFormatter: function (value) {
- return value + " ml";
+ 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:[],
+
},
{
@@ -539,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: "闂ㄨ瘖澶嶈瘖閫氱煡",
@@ -551,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: "鍦ㄩ櫌璇勪及閲�",
@@ -563,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:[],
+
},
],
};
@@ -602,10 +620,13 @@
},
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],
+ ["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" },
@@ -954,11 +975,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