From 2c2ed58b019b2ac7dca6f40e1e7e17f916fcc001 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Tue, 11 Jun 2024 10:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/list/unit.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/task/list/unit.vue b/src/views/task/list/unit.vue index 6fc9222..61948c6 100644 --- a/src/views/task/list/unit.vue +++ b/src/views/task/list/unit.vue @@ -62,7 +62,7 @@ 共有{{total}}项任务,共{{auditStatus1}}项未完成 @@ -207,10 +207,10 @@ dialogVisible: false, stateObj: {}, deptOptions:[], - treeProps:{children: 'pid_details', hasChildren: 'hasChildren' }, + treeProps:{children: 'mychildren', hasChildren: 'hasChildren'}, typeName: [{ type: 1, - name: '年度计划任务' + name: '任务追踪' }, { type: 4, name: '专项专题任务' @@ -223,7 +223,7 @@ select: { keyword: '', page: 1, - page_size: 10, + page_size: 999, myself: 0, myself_department: 0, type: '', @@ -236,7 +236,7 @@ sort_type: 'DESC', year: new Date().getFullYear(), month: '', - pid:0, + pid:'', main_department_id:'' }, total: 0, @@ -434,7 +434,7 @@ this.isMyPage = false this.select.page_size = 999 this.select.pid = '' - this.treeProps = {children: 'mychildren', hasChildren: 'hasChildren' } + // this.treeProps = {children: 'mychildren', hasChildren: 'hasChildren' } // } this.type_name = '我的任务' this.path_type = path[1] @@ -653,7 +653,8 @@ _arr = this.buildTree(newArr) }else{ - _arr = res.data + _arr = _arr = this.buildTree(res.data) + } _arr.map((r,index)=>{ r.pindex = index+1