From 8e71817416de83a5ca9243c5e7fdd1c71317c4dc Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 21 五月 2025 14:40:29 +0800 Subject: [PATCH] 测试完成 --- src/views/index.vue | 36 +++++++++++++++++++++++++++--------- 1 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index b43ec1e..9b1f7fc 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -20,7 +20,7 @@ <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> @@ -28,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> @@ -62,7 +62,7 @@ <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> @@ -70,7 +70,7 @@ </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> @@ -310,6 +310,14 @@ lastHeight: window.innerHeight, radio1: "鍛�", ticketStatistics: {}, + DischargeData: { + rs: "", + rc: "", + }, + OutpatientData: { + rs: "", + rc: "", + }, order: "", Count: "", datatni: [], @@ -340,9 +348,9 @@ }, }, created() { - // this.getTopdata(); - // this.getgraphdata(); - // this.getranking(); + this.getTopdata(); + this.getgraphdata(); + this.getranking(); this.$nextTick(function () { this.getregionAmountCollect(); this.getnodeCollect(); @@ -420,8 +428,18 @@ endDate: this.statd, cy: 1, }; - getEChartsPatMedOuthospCount(hospCountdata).then((res) => {}); - getechartsListCountdata(Countdata).then((res) => {}); + // 鏌ヨ闂ㄨ瘖鐪嬬梾浜烘鍜屼汉鏁� + getEChartsPatMedOuthospCount(hospCountdata).then((res) => { + if (res.code == 200) { + this.OutpatientData = res.data; + } + }); + // 鏌ヨ鍑恒�佸叆闄㈢湅鐥呬汉娆″拰浜烘暟 + getechartsListCountdata(Countdata).then((res) => { + if (res.code == 200) { + this.DischargeData = res.data; + } + }); }, // 鑾峰彇灏辫瘖鏁伴噺 getranking() { -- Gitblit v1.9.3