From bfa69a7a720421cb7ea15d2d819ba8d56706eaff Mon Sep 17 00:00:00 2001 From: haha Date: Sun, 13 Aug 2023 21:58:01 +0800 Subject: [PATCH 1/2] update code --- src/pages/progress/indexDlg3.vue | 40 ++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/pages/progress/indexDlg3.vue b/src/pages/progress/indexDlg3.vue index d2647ff..f8af35b 100644 --- a/src/pages/progress/indexDlg3.vue +++ b/src/pages/progress/indexDlg3.vue @@ -67,9 +67,9 @@ p-id="4998"> -
+
-
+
@@ -83,7 +83,8 @@
+ style="flex-grow: 1;max-height: 750px;min-height:750px;overflow: auto;width: calc(100% - 504px);margin-top:8px;display: inline-flex;align-items: center;"> +
+
@@ -159,15 +161,15 @@ export default { }, mounted() { - let objs = window.jhcaches?.progressProjects - if (objs && objs.length > 0) { - this.prjs = objs; - return; - } - this.$api.project.getProgressProjects().then(d => { - this.prjs = d.data || []; - window.jhcaches.progressProjects = this.prjs; - }); + // let objs = window.jhcaches?.progressProjects + // if (objs && objs.length > 0) { + // this.prjs = objs; + // return; + // } + // this.$api.project.getProgressProjects().then(d => { + // this.prjs = d.data || []; + // window.jhcaches.progressProjects = this.prjs; + // }); }, methods: { @@ -217,11 +219,15 @@ export default { hideScreenUlSel2() { this.showSel2 = false }, - showDialog(scheduleInfo, prjs) { - this.scheduleInfo = scheduleInfo; - this.localStorage2 = JSON.parse(localStorage.getItem("data2")) - this.dept2 = this.localStorage2.text; - this.show = true + showDialog(scheduleInfo, prjs,dept) { + //this.$api.project.getProgressProjects(dept.id).then(d => { + //this.prjs = d.data || []; + this.prjs=(prjs||[]).filter(d=>+d.progressVisible==0); + this.scheduleInfo = scheduleInfo; + this.localStorage2 = JSON.parse(localStorage.getItem("data2")) + this.dept2 = this.localStorage2.text; + this.show = true + //}); }, setScreenLiSel2(item) { this.dept2 = item.projectName From 540f95db4e610504cd249401c6d51481fcf6c1d3 Mon Sep 17 00:00:00 2001 From: haha Date: Sun, 13 Aug 2023 22:11:18 +0800 Subject: [PATCH 2/2] 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 = [