From 5da64f0259ee42794f2af234fdb951a35fb4a680 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Tue, 25 Jun 2024 16:09:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/XyTable/index.vue | 3 + src/views/dashboard/index.vue | 12 ++- src/views/task/list/unit.vue | 125 ++++++++++++++++++++++++------- 3 files changed, 110 insertions(+), 30 deletions(-) diff --git a/src/components/XyTable/index.vue b/src/components/XyTable/index.vue index f08ec82..519c72b 100644 --- a/src/components/XyTable/index.vue +++ b/src/components/XyTable/index.vue @@ -212,6 +212,9 @@ export default { let topHeight = 50; //页面 头部 this.tableHeight = clientHeight - lxHeader_height - topHeight - paginationHeight; + if(!this.isPage){ + this.tableHeight = this.tableHeight - 50 + } // console.log(this.tableHeight) }, getTableData(isRefresh = false){ diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index c9f3cb6..d2f7915 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1218,12 +1218,20 @@ export default { } }) const newArr = res.data.filter((_, index) => !spliceIndex.includes(index)); - _arr = this.buildTree(newArr) + newArr.map(item=>{ + if(item.audit_status==5 || (item.mission_finished && item.mission_finished.length>0)){ + + }else{ + _arr.push(item) + } + }) + this.myselfTotal = _arr.length + _arr = this.buildTree(_arr) _arr.map((r,index)=>{ r.pindex = index+1 }) this.myselfList = _arr - this.myselfTotal = res.total + // this.myselfTotal = res.total // this.activeCount = parseInt(this.activeList.length/6)==1?1:parseInt(this.activeList.length/6)+1 // this.autoScroll() diff --git a/src/views/task/list/unit.vue b/src/views/task/list/unit.vue index 66c12cd..12178b3 100644 --- a/src/views/task/list/unit.vue +++ b/src/views/task/list/unit.vue @@ -57,11 +57,19 @@ --> -
-
- 共有{{total}}项任务,共{{auditStatus1}}项未完成
- +
+
+ 共有{{total}}项任务,共{{auditStatus1}}项未完成 +
+
+
待办事项
+
完成事项
+
+
+ + -