From e9b515a1f3e10ad299366600689eba8b258f7be9 Mon Sep 17 00:00:00 2001 From: Crunchy <3114200645@qq.com> Date: 星期日, 26 五月 2024 23:56:24 +0800 Subject: [PATCH] 2024-5-24 需求小调整 --- src/components/do/b1-inspect-order-plan/Inspection.vue | 2 +- src/assets/api/controller.js | 2 ++ src/components/view/index-index.vue | 15 +++++++++++---- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/assets/api/controller.js b/src/assets/api/controller.js index a6bf7a6..01d3ac1 100644 --- a/src/assets/api/controller.js +++ b/src/assets/api/controller.js @@ -167,6 +167,7 @@ upPlanUser: "/insOrderPlan/upPlanUser", //浠诲姟浜ゆ帴 verifyPlan: "/insOrderPlan/verifyPlan", //澶嶆牳妫�楠屼换鍔� submitPlan: "/insOrderPlan/submitPlan", //妫�楠屼换鍔℃彁浜� + inspectionOrderDetailsTaskSwitching: "/insOrderPlan/inspectionOrderDetailsTaskSwitching", // 妫�楠屽崟璇︽儏-浠诲姟鍒囨崲 } const systemLog = { @@ -269,6 +270,7 @@ page: "/informationNotification/page", //婊氬姩鍒嗛〉鏌ヨ updateMessageStatus: "/informationNotification/updateMessageStatus", //鏇存柊娑堟伅鐘舵�侊紙鎷掔粷銆佹帴鏀讹級 triggerModificationStatusToRead: "/informationNotification/triggerModificationStatusToRead", //鐐瑰嚮璇︽儏瑙﹀彂淇敼鐘舵�佷负宸茶 + getNumberFourTypesMessagesHomePage: "/informationNotification/getNumberFourTypesMessagesHomePage", // 娑堟伅閫氱煡-鑾峰彇棣栭〉鍥涚娑堟伅鏁伴噺 } const performanceShift = { diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue index 49302c5..b776a4f 100644 --- a/src/components/do/b1-inspect-order-plan/Inspection.vue +++ b/src/components/do/b1-inspect-order-plan/Inspection.vue @@ -319,7 +319,7 @@ </el-table> </el-drawer> <el-drawer title="浠诲姟鍒囨崲" :visible.sync="taskVisible" :size="500"> - <ValueTable class="value-table" ref="insOrderPlan" :url="$api.insOrderPlan.selectInsOrderPlanList" + <ValueTable class="value-table" ref="insOrderPlan" :url="$api.insOrderPlan.inspectionOrderDetailsTaskSwitching" :componentData="componentData" :key="upIndex" style="height: 100%;"/> </el-drawer> <el-dialog title="妫�楠屽鏍�" :visible.sync="reviewDia" width="500px"> 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