From 0529f319b668d11a0479ae3b615ad8418442a10e Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 27 五月 2025 16:19:57 +0800 Subject: [PATCH] 测试完成 --- src/views/index.vue | 100 ++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 72 insertions(+), 28 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index fdb6d9e..9b1f7fc 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -14,14 +14,13 @@ text-shadow: 2px 4px 7px rgb(85 132 255 / 50%); color: black; " - ></span - > + ></span> <span>{{ endatd }} ~ {{ statd }}</span> </div> <el-row :gutter="20"> <el-col :span="10"> <div class="home-user-task-stats"> - <p>{{ 11231 }}</p> + <p>{{ OutpatientData.rs }}</p> <div class="text-color2"> <p>闂ㄨ瘖灏辫瘖閲忥紙浜烘锛�</p> </div> @@ -29,7 +28,7 @@ </el-col> <el-col :span="10"> <div class="home-user-task-stats"> - <p>{{ 9207 }}</p> + <p>{{ OutpatientData.rc }}</p> <div class="text-color2"> <p>闂ㄨ瘖鏈嶅姟閲忥紙浜烘锛�</p> </div> @@ -49,7 +48,7 @@ <el-col :span="9"> <div class="grid-content bg-purple headerBox bgc2"> <div class="title"> - 闂ㄨ瘖鏈嶅姟 + 鍑洪櫌鏈嶅姟 <span style=" font-size: 25px; @@ -57,23 +56,21 @@ font-weight: 600; color: red; " - ></span - > + ></span> <span>{{ endatd }} ~ {{ statd }}</span> </div> <el-row :gutter="20"> <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> </div> - </el-col> <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> </div> @@ -291,10 +288,12 @@ <script> import { - getoutpatientamount, - getInhospital, - getBarchart, - getQtemplateobj, + getEChartsPatMedOuthospCount, + getechartsListCountdata, + getechartsMedOuthospList, + getechartsMedInhospList, + getechartsandData, + getDeptRanking, } from "@/api/AiCentre/index"; import dayjs from "dayjs"; @@ -311,6 +310,14 @@ lastHeight: window.innerHeight, radio1: "鍛�", ticketStatistics: {}, + DischargeData: { + rs: "", + rc: "", + }, + OutpatientData: { + rs: "", + rc: "", + }, order: "", Count: "", datatni: [], @@ -341,9 +348,9 @@ }, }, created() { - // this.getoutpatientamount(); - // this.getInhospital(); - // this.getBarchart(); + this.getTopdata(); + this.getgraphdata(); + this.getranking(); this.$nextTick(function () { this.getregionAmountCollect(); this.getnodeCollect(); @@ -369,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(); }, @@ -409,17 +416,54 @@ { 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() { + let Rankingdata = { + startDate: this.endatd, + endDate: this.statd, + cy: 1, + }; + getDeptRanking(Rankingdata).then((res) => {}); }, - // 鑾峰彇鎬婚噺鏁伴噺 - 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) => {}); }, // 鑾峰彇绾跨姸鍥炬椂闂� -- Gitblit v1.9.3