From 083c818af77d33d619dba3dc20f94e996225a1c7 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期四, 16 五月 2024 10:28:39 +0800
Subject: [PATCH] 增加人事系统对接

---
 src/components/view/index-index.vue |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/src/components/view/index-index.vue b/src/components/view/index-index.vue
index 4ccf7c5..8a8f1cb 100644
--- a/src/components/view/index-index.vue
+++ b/src/components/view/index-index.vue
@@ -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">
+            <scroll-pagination @load="getList" :finishLoding="finishLoding" :list="list" v-if="list.length>0">
               <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>
@@ -464,7 +465,8 @@
         total: null,
         listLoading: true, // 缁勪欢loading鐨勫睍绀�,榛樿涓簍rue
         finishLoding: false, // 鍔犺浇瀹屾垚锛屾樉绀哄凡缁忔病鏈夋洿澶氫簡
-        timer:null
+        timer:null,
+        keyMap:{},
 			}
 		},
     watch:{
@@ -472,6 +474,7 @@
         this.getScheduleByMe()
       },
       currentIndex(){
+        this.keyMap = {}
         this.currentPage = 1;
         this.list = [];
         this.getList();
@@ -486,6 +489,7 @@
       this.weekdays = this.getWeekdaysForNextWeek()
       this.init();
       this.currentPage = 1;
+      this.keyMap = {}
       this.list = [];
       this.getList();
       this.getScheduleByMe()
@@ -493,6 +497,7 @@
       this.timer = setInterval(() => {
         this.init();
         this.currentPage = 1;
+        this.keyMap = {}
         this.list = [];
         this.getList();
         this.getScheduleByMe()
@@ -500,6 +505,14 @@
 		},
 		methods: {
       getList(){
+        const key = `_${this.currentPage}`
+        const value = this.keyMap[key]
+        // 濡傛灉value瀛樺湪锛岃〃绀虹紦瀛樻湁鍊硷紝閭d箞闃绘璇锋眰
+        if(value) {
+          return
+        }
+        // value涓嶅瓨鍦紝琛ㄧず绗竴娆¤姹�,璁剧疆鍗犱綅
+        this.keyMap[key] = 'temp'
         if(this.currentPage==1){
           this.listLoading = true
         }

--
Gitblit v1.9.3