From 540f95db4e610504cd249401c6d51481fcf6c1d3 Mon Sep 17 00:00:00 2001 From: haha Date: Sun, 13 Aug 2023 22:11:18 +0800 Subject: [PATCH] update code --- src/components/header.js | 2 +- src/pages/index.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/header.js b/src/components/header.js index 8a3012f..e544500 100644 --- a/src/components/header.js +++ b/src/components/header.js @@ -182,7 +182,7 @@ Vue.component("screen-header", { this.data=(d?.data||[]).map(it=>{ it.text=it.projectName; return it; - }); + }).filter(it=>+it.progressVisible==0); this.$bus.$emit("loadProjects",this.data); if(this.data.length>0){ this.setScreenLiSel2(this.data[0],init); diff --git a/src/pages/index.vue b/src/pages/index.vue index 11fefd7..c8bff32 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -49,8 +49,8 @@
-
在岗人数
-
今日出勤
+
在岗人数
+
今日出勤
@@ -547,9 +547,9 @@ export default { this.elKey++; }, //劳务人员概况 - onWarningInfoNav(n, text) { + onWarningInfoNav(n) { this.infoNav = n - this.staffText = text + this.staffText = n==0?'在岗人数':'今日出勤' if (n == 0) { this.surveyUrl = 'images/survey_icon_4.png' this.laborPersonnelData = [