From ab87478ba941f90cd60252cf4d34aa585dc1a63f Mon Sep 17 00:00:00 2001 From: Crunchy <3114200645@qq.com> Date: 星期一, 22 七月 2024 18:29:10 +0800 Subject: [PATCH] 设备数采配置 调整 --- src/components/view/index-index.vue | 26 +++++++++++++++++--------- 1 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/components/view/index-index.vue b/src/components/view/index-index.vue index 7c0fc28..288e95b 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.totalNumberOfReadMessages }}</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.remainingToDo }}</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> @@ -368,7 +368,7 @@ <p class="ellipsis-multiline" >{{ m.text }}</p> </el-tooltip> </div> - <span style="color:rgb(153, 153, 153);font-size: 12px;text-align: center;margin: 120px 0;display: inline-block;width: 100%;" v-if="listScheduleByMe.length==0">鏆傛棤</span> + <span style="color:rgb(144, 147, 153);font-size: 14px;text-align: center;margin: 120px 0;display: inline-block;width: 100%;" v-if="listScheduleByMe.length==0">鏆傛棤鏁版嵁</span> </div> </div> </div> @@ -378,7 +378,7 @@ <div class="tab-item" style="cursor: pointer;" :class="{active:currentIndex==5}" @click="currentIndex=5">閫氱煡閫氬憡</div> </div> <div class="right-3-list" v-loading="listLoading"> - <scroll-pagination @load="getList" :finishLoding="finishLoding" :list="list"> + <scroll-pagination @load="getList" :finishLoding="finishLoding" :list="list" v-if="list.length>1||listLoading"> <div class="list3-item" v-for="(m,i) in list" :key="i"> <div class="list3-item-title"> <img src="../../../static/img/index-tip.svg" alt=""> @@ -402,7 +402,7 @@ <div class="body" style="max-height: 60vh;"> <el-row> <el-col class="search_thing" :span="22"> - <div class="search_label">鏃堕棿锛�</div> + <div class="search_label"><span style="color: red;margin-right: 4px;">*</span>鏃堕棿锛�</div> <div class="search_input"> <el-date-picker v-model="query.time" @@ -414,9 +414,10 @@ </div> </el-col> <el-col class="search_thing" :span="22"> - <div class="search_label">鍐呭锛�</div> + <div class="search_label"><span style="color: red;margin-right: 4px;">*</span>鍐呭锛�</div> <div class="search_input"> - <el-input v-model="query.text" size="small" placeholder="璇疯緭鍏ュ唴瀹�"></el-input> + <el-input v-model="query.text" type="textarea" + :rows="2" size="small" placeholder="璇疯緭鍏ュ唴瀹�"></el-input> </div> </el-col> </el-row> @@ -466,6 +467,7 @@ finishLoding: false, // 鍔犺浇瀹屾垚锛屾樉绀哄凡缁忔病鏈夋洿澶氫簡 timer:null, keyMap:{}, + getNumberFourTypes: {}, } }, watch:{ @@ -501,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