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' }] } }