From ef9633e0d1689fd8869170f3aa0af6c90c2e5e7f Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 07 九月 2022 16:18:24 +0800
Subject: [PATCH] 1.优化项目2.搜索栏多行的变为一行可展开
---
src/views/kb/zpcj.vue | 25 ++++++++++++++++++++-----
1 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/src/views/kb/zpcj.vue b/src/views/kb/zpcj.vue
index 175bee3..63f9d7a 100644
--- a/src/views/kb/zpcj.vue
+++ b/src/views/kb/zpcj.vue
@@ -287,7 +287,7 @@
LineSearchBottomRightData,
LineSearchTopLeftData,
LineSearchTopRightData, ShopSearch,
- ShopSearchLine
+ ShopSearchLine, WkspReportNotice
} from '@/api/dzkb'
import MarqueeTips from 'vue-marquee-tips'
@@ -334,10 +334,25 @@
},
// 鑾峰彇鍏憡
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)
+ })
},
// 鑾峰彇杞﹂棿缂栫爜
async getShopSearch() {
--
Gitblit v1.9.3