From bfa69a7a720421cb7ea15d2d819ba8d56706eaff Mon Sep 17 00:00:00 2001 From: haha Date: Sun, 13 Aug 2023 21:58:01 +0800 Subject: [PATCH] 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