From 9641db2d3adc51c2a29f49ed77cbd66f37fa42cb Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Mon, 30 Jul 2018 17:07:52 +0800 Subject: Optimized Compnents' Layout Issue-ID: HOLMES-150 Change-Id: I47b398069a976cd3df9a85554c72cc4be75b251f Signed-off-by: GuangrongFu --- .../correlation-ruleList/alarmRule.component.html | 93 +++++++++++++--------- .../correlation-ruleList/alarmRule.component.ts | 6 +- 2 files changed, 59 insertions(+), 40 deletions(-) (limited to 'rulemgt-frontend/src/app/correlation-ruleList') diff --git a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.html b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.html index 01b7f12..4481e18 100644 --- a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.html +++ b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.html @@ -13,30 +13,38 @@ See the License for the specific language governing permissions and limitations under the License. --> -
+
- - +
+ +
+ +
+
- - +
+ +
+ +
+
-
-
+
+
-
-
-
- -
@@ -76,30 +82,43 @@ + + {{"nodata"|translate}} + - {{rule.rulename}} - - + + {{rule.rulename}} + + + + + + + + + + + {{rule.createTime | date:'yyyy-MM-dd HH:mm:ss'}} {{rule.creator}} {{rule.updateTime | date:'yyyy-MM-dd HH:mm:ss'}} - - + + - - - - - + + + + + - - + + - - + + @@ -114,7 +133,7 @@ -
diff --git a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.ts b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.ts index f6329f5..6273e9a 100644 --- a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.ts +++ b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.component.ts @@ -24,9 +24,9 @@ declare var jQuery: any; @Component({ selector: 'alarmRule', - templateUrl: './alarmRule.component.html', - + templateUrl: './alarmRule.component.html' }) + export class AlarmRule implements OnInit { ruleModel: RuleModel; rules: RuleModel[]; @@ -35,7 +35,7 @@ export class AlarmRule implements OnInit { ruleName: string; enable_on = "enabled"; enable_off = "disabled" - totalcount: number; + totalcount: number = 0; model: any; ruleRequest: RuleRequest; solution = 'ANGULAR'; -- cgit 1.2.3-korg