From 1344317356b0407f4aff867865ba72248871ac1f Mon Sep 17 00:00:00 2001 From: 晏有为 <13214124+yan-youwei@user.noreply.gitee.com> Date: 星期一, 27 五月 2024 14:16:17 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before --- src/components/view/index-index.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/view/index-index.vue b/src/components/view/index-index.vue index 8a8f1cb..16a3025 100644 --- a/src/components/view/index-index.vue +++ b/src/components/view/index-index.vue @@ -304,7 +304,7 @@ <img src="../../../static/img/index-0.svg" alt=""> </div> <div class="mun"> - <p style="font-size: 20px;">0</p> + <p style="font-size: 20px;">{{getNumberFourTypes.totalNumberOfMessages}}</p> <p style="font-size: 14px;margin-bottom: 10px;">鎴戠殑寰呭姙</p> </div> </div> @@ -313,7 +313,7 @@ <img src="../../../static/img/index-1.svg" alt=""> </div> <div class="mun"> - <p style="font-size: 20px;">0</p> + <p style="font-size: 20px;">{{ getNumberFourTypes.remainingToDo }}</p> <p style="font-size: 14px;margin-bottom: 10px;">宸插姙浜嬪疁</p> </div> </div> @@ -322,7 +322,7 @@ <img src="../../../static/img/index-2.svg" alt=""> </div> <div class="mun"> - <p style="font-size: 20px;">0</p> + <p style="font-size: 20px;">{{ getNumberFourTypes.totalNumberOfReadMessages }}</p> <p style="font-size: 14px;margin-bottom: 10px;">鍓╀綑寰呭姙</p> </div> </div> @@ -331,7 +331,7 @@ <img src="../../../static/img/index-3.svg" alt=""> </div> <div class="mun"> - <p style="font-size: 20px;">0</p> + <p style="font-size: 20px;">{{ getNumberFourTypes.totalNumberOfMessagesInThePastSevenDays }}</p> <p style="font-size: 14px;margin-bottom: 10px;">杩戞湡浜嬪疁</p> </div> </div> @@ -467,6 +467,7 @@ finishLoding: false, // 鍔犺浇瀹屾垚锛屾樉绀哄凡缁忔病鏈夋洿澶氫簡 timer:null, keyMap:{}, + getNumberFourTypes: {}, } }, watch:{ @@ -502,8 +503,14 @@ this.getList(); this.getScheduleByMe() },1000*60*10) + this.getNumberFourTypesFun() }, methods: { + getNumberFourTypesFun() { + this.$axios.get(this.$api.informationNotification.getNumberFourTypesMessagesHomePage).then(res => { + this.getNumberFourTypes = res.data + }) + }, getList(){ const key = `_${this.currentPage}` const value = this.keyMap[key] -- Gitblit v1.9.3