From 904bca110bbd3cd7775c7dcbfabf0447f03e4c91 Mon Sep 17 00:00:00 2001 From: xufenglei <xufenglei> Date: Mon, 08 Jan 2018 11:55:21 +0800 Subject: [PATCH] 账户 管理 --- src/app/routes/systems/organization/organization.component.ts | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/app/routes/systems/organization/organization.component.ts b/src/app/routes/systems/organization/organization.component.ts index ef58ac4..5aa3a9a 100644 --- a/src/app/routes/systems/organization/organization.component.ts +++ b/src/app/routes/systems/organization/organization.component.ts @@ -51,7 +51,20 @@ }, rank: { text: '������', - width: '60px' + width: '80px', + format: (value: any, col: Column, row: any) => { + const item = [ + { value: 0, label: '������' }, + { value: 1, label: '������������' }, + { value: 2, label: '���������' }, + { value: 3, label: '������������' }, + { value: 4, label: '���������' }, + { value: 5, label: '���������' } + ].filter( (rankItem: {value: number, label: string }) => { + return rankItem.value === value; + }); + return item != null && item.length === 1 ? item[0].label : ''; + } }, telephone: { text: '������', -- Gitblit v1.8.0