From 45d40501534b95bfd4a8f744b560651a87849fa4 Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Fri, 05 Jan 2018 11:21:37 +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