From 4413b4649c337dd65e27c7a4be0d5ca1294477ab Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 04 六月 2025 14:32:36 +0800
Subject: [PATCH] 测试完成
---
src/views/index.vue | 242 +++++++++++++++++++++++++++++------------------
1 files changed, 148 insertions(+), 94 deletions(-)
diff --git a/src/views/index.vue b/src/views/index.vue
index fe67590..984673c 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>
+ <p>{{ OutpatientData.rs }}</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>
+ <p>{{ OutpatientData.rc }}</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>
+ <p style="color: red">{{ DischargeData.rs }}</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>
+ <p style="color: red">{{ DischargeData.rc }}</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">
@@ -130,13 +128,14 @@
type="index"
></el-table-column>
<el-table-column
- prop="skuName"
+ prop="deptname"
width="88"
class-name="name"
></el-table-column>
- <el-table-column prop="count" class-name="count">
+
+ <el-table-column prop="rc" class-name="rc">
<template slot-scope="scope">
- {{ scope.row.count }}娆�
+ {{ scope.row.rc }}娆�
</template>
</el-table-column>
</el-table>
@@ -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">
鍚勯」鏈嶅姟缁熻
@@ -281,7 +280,7 @@
</el-row>
</div>
</div>
- </el-col>
+ </el-col> -->
</el-row>
</div>
</div>
@@ -289,10 +288,12 @@
<script>
import {
- getoutpatientamount,
- getInhospital,
- getBarchart,
- getQtemplateobj,
+ getEChartsPatMedOuthospCount,
+ getechartsListCountdata,
+ getechartsMedOuthospList,
+ getechartsMedInhospList,
+ getechartsandData,
+ getDeptRanking,
} from "@/api/AiCentre/index";
import dayjs from "dayjs";
@@ -309,6 +310,14 @@
lastHeight: window.innerHeight,
radio1: "鍛�",
ticketStatistics: {},
+ DischargeData: {
+ rs: "",
+ rc: "",
+ },
+ OutpatientData: {
+ rs: "",
+ rc: "",
+ },
order: "",
Count: "",
datatni: [],
@@ -339,9 +348,9 @@
},
},
created() {
- // this.getoutpatientamount();
- // this.getInhospital();
- // this.getBarchart();
+ this.getTopdata();
+ this.getgraphdata();
+ this.getranking();
this.$nextTick(function () {
this.getregionAmountCollect();
this.getnodeCollect();
@@ -367,10 +376,10 @@
} else {
this.dyat = 360;
}
+ this.getgraphdata();
+ this.getranking();
+ this.getTopdata();
this.getregionAmountCollect();
- // this.getoutpatientamount();
- // this.getInhospital();
- // this.getBarchart();
this.getnodeCollect();
this.getSkuTop();
},
@@ -387,36 +396,79 @@
},
// top鎺掕
async getSkuTop() {
- // 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: "鏀惧皠绉�" },
- ];
+ let Rankingdata = {
+ startDate: this.endatd,
+ endDate: this.statd,
+ cy: 1,
+ };
+ await getDeptRanking(Rankingdata).then((res) => {
+ if (res.code == 200) {
+ this.SkuTop=res.rows.sort((a, b) => b.rc - a.rc);
+ console.log(this.SkuTop,'this.SkuTop');
+ }
+ });
+
+ // 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: "鏀惧皠绉�1" },
+ // { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�2" },
+ // ];
},
- // 鑾峰彇闂ㄨ瘖鍩虹鏁版嵁
- getoutpatientamount() {
- getoutpatientamount().then((res) => {});
+ // 鑾峰彇澶撮儴鏁版嵁
+ 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) => {
+ if (res.code == 200) {
+ this.OutpatientData = res.data;
+ }
+ });
+ // 鏌ヨ鍑恒�佸叆闄㈢湅鐥呬汉娆″拰浜烘暟
+ getechartsListCountdata(Countdata).then((res) => {
+ if (res.code == 200) {
+ this.DischargeData = res.data;
+ }
+ });
},
// 鑾峰彇灏辫瘖鏁伴噺
- getBarchart() {
- getBarchart().then((res) => {});
+ getranking() {
+
},
- // 鑾峰彇鎬婚噺鏁伴噺
- getInhospital() {
- getInhospital().then((res) => {});
+ // 鑾峰彇涓儴绾挎煴鍥炬暟鎹�
+ 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) => {});
},
// 鑾峰彇绾跨姸鍥炬椂闂�
@@ -454,11 +506,11 @@
legend: {
data: [
"鍑洪櫌闅忚閲�",
- "褰卞儚闅忚閲�",
- "鍦ㄩ櫌闅忚閲�",
- "闂ㄨ瘖澶嶈瘖閫氱煡",
- "鍑洪櫌澶嶈瘖閫氱煡",
- "鍦ㄩ櫌璇勪及閲�",
+ "闂ㄨ瘖闅忚閲�",
+ // "鍦ㄩ櫌闅忚閲�",
+ // "闂ㄨ瘖澶嶈瘖閫氱煡",
+ "鍑洪櫌鏈嶅姟浜烘",
+ "闂ㄨ瘖鏈嶅姟浜烘",
],
},
xAxis: [
@@ -515,18 +567,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: "鍦ㄩ櫌闅忚閲�",
+ name: "闂ㄨ瘖闅忚閲�",
type: "bar",
tooltip: {
valueFormatter: function (value) {
@@ -536,20 +588,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,
@@ -561,7 +613,7 @@
data: [102, 190, 135, 88, 175, 160, 83, 145, 200, 110, 97, 180],
},
{
- name: "鍦ㄩ櫌璇勪及閲�",
+ name: "闂ㄨ瘖鏈嶅姟浜烘",
type: "line",
smooth: 0.3,
yAxisIndex: 1,
@@ -980,7 +1032,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