From 49cda3df29a9111f419a9a9a4168ae7eb4066de3 Mon Sep 17 00:00:00 2001 From: cxx Date: Fri, 17 May 2024 15:08:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E7=94=B3=E8=AF=B7=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/page/taskManagement.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/view/page/taskManagement.html b/app/view/page/taskManagement.html index e3def90..3d9c2e1 100644 --- a/app/view/page/taskManagement.html +++ b/app/view/page/taskManagement.html @@ -198,7 +198,6 @@ isViewDrawerShown: false, viewItem: {}, - userId: '<$ ctx.userInfo.userId $>', taskStatusColor:{ '已通过': 'primary', '已拒绝': 'red', @@ -248,13 +247,17 @@ async getTableData() { this.isTableLoading = true; + var where = {} + if(this.constantObj.userGroupRoleList.includes('超级管理员')){ + where.taskInitUser = '<$ ctx.userInfo.userId $>' + } const result = await window.jianghuAxios({ data: { appData: { pageId: 'taskManagement', actionId: 'selectItemList', actionData: {}, - where:{taskInitUser: this.userId}, + where: where, orderBy: [{ column: 'operationAt', order: 'desc' }] } }