From 097d9a2751bee4a371e5ab12562bbc45ed17f2a9 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 16 九月 2022 15:36:42 +0800
Subject: [PATCH] 1.看板公告那块暂时把时间写成定时请求2.委外工序报表、人员工资报表、班组工资报表开发

---
 src/views/kb/zhkb.vue |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/src/views/kb/zhkb.vue b/src/views/kb/zhkb.vue
index 4d3255d..9bea1a6 100644
--- a/src/views/kb/zhkb.vue
+++ b/src/views/kb/zhkb.vue
@@ -13,8 +13,9 @@
       <MarqueeTips
         :content="MarqueeTipsContent"
         class="MarqueeTipsContentClass"
-        :speed="speed"
+        :speed="300"
       />
+      <!--      :speed="speed"-->
       <div class="kb_content">
         <div class="kb_left">
           <!-- 1-->
@@ -287,7 +288,7 @@
   LineSearchBottomRightData,
   LineSearchTopLeftData,
   LineSearchTopRightData, ShopSearch,
-  ShopSearchLine
+  ShopSearchLine, WkspReportNotice
 } from '@/api/dzkb'
 import MarqueeTips from 'vue-marquee-tips'
 
@@ -331,13 +332,30 @@
       await this.getTableDataRoll()
       await this.getTableDataRankRoll()
       await this.getMarqueeTipsContent()
+      await this.getMarqueeTipsContent()
     },
     // 鑾峰彇鍏憡
     getMarqueeTipsContent() {
-      this.MarqueeTipsContent = '鍚勪綅鍛樺伐浠細鏍规嵁涓婄骇鐨勯�氱煡锛岀粨鍚堟垜浼佸疄闄呮儏鍐碉紝鐜板皢20xx骞寸殑鍏冩棪鏀惧亣閫氱煡濡備笅锛氫竴銆�1鏈�1鏃ヨ嚦1鏈�3鏃ユ斁鍋囪皟浼戯紝鍏�3澶┿��1鏈�4鏃ユ寮忎笂鐝�備簩銆佽妭鍋囨棩鏈熼棿锛屽悇鐝粍瑕佷弗鏍艰惤瀹炰笂绾х殑閲嶈鎸囩ず绮剧锛屾寜鐓т笂绾х殑鍏蜂綋瑕佹眰锛岃鐪熸姄濂借惤瀹炶妭鏃ユ湡闂村�肩彮澶囧嫟宸ヤ綔锛岀‘淇濊妭鏃ユ湡闂翠紒涓氬悇椤瑰伐浣滄甯歌繍杞�倄x浼佷笟20xx骞�12鏈�28鏃�'
-      const spance = ' '.padStart(this.MarqueeTipsContent.length * 2, ' ')
-      this.MarqueeTipsContent = this.MarqueeTipsContent + spance
-      this.speed = this.MarqueeTipsContent.length / 10
+      WkspReportNotice({ shopcode: this.ShopArr.join(',') }).then(res => {
+        let contentAll = ''
+        res.data.forEach(item => {
+          contentAll += item.contents + ' '.padStart(item.contents.toString().length * 2, ' ')
+        })
+        this.MarqueeTipsContent = contentAll
+        this.speed = this.MarqueeTipsContent.length / 10
+
+        setInterval(() => {
+          WkspReportNotice({ shopcode: this.ShopArr.join(',') }).then(res1 => {
+            let contentAll = ''
+            res1.data.forEach(item => {
+              contentAll += item.contents + ' '.padStart(item.contents.toString().length * 2, ' ')
+            })
+            this.MarqueeTipsContent = contentAll
+            this.speed = this.MarqueeTipsContent.length / 10
+          })
+        // }, this.speed * 1000)
+        }, 1000 * 60 * 5)
+      })
     },
     // 鑾峰彇杞﹂棿缂栫爜
     async  getShopSearch() {

--
Gitblit v1.9.3