Skip to content

Commit

Permalink
删掉一些空代码,方便prod编译
Browse files Browse the repository at this point in the history
  • Loading branch information
damoqiongqiu committed Mar 24, 2019
1 parent 54f51ae commit 3c44297
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h3 class="panel-title">编辑权限</h3>
</div>
<div class="panel-body">
<form #form="ngForm" (ngSubmit)="form.form.valid && doLogin()" novalidate class="form-horizontal" role="form">
<form #form="ngForm" (ngSubmit)="form.form.valid" novalidate class="form-horizontal" role="form">
<div class="form-group" [ngClass]="{ 'has-error': form.submitted && !permissionName.valid }">
<label class="col-md-2 control-label">名称:</label>
<div class="col-md-10">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
</div>
<div class="col-md-2">
<div class="input-group pull-right">
<button class="btn btn-primary" type="button" (click)="newPermission()"><i class="fa fa-user"
aria-hidden="true"></i>
<button class="btn btn-primary" type="button"><i class="fa fa-user" aria-hidden="true"></i>
创建权限</button>
</div>
</div>
Expand All @@ -37,8 +36,7 @@
<td>
<a [routerLink]="['/manage/permission-edit',1]"><i class="fa fa-pencil-square-o"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);" (click)="delete(1)"><i class="fa fa-trash"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);"><i class="fa fa-trash" aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr>
Expand All @@ -47,8 +45,7 @@
<td>
<a [routerLink]="['/manage/permission-edit',1]"><i class="fa fa-pencil-square-o"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);" (click)="delete(1)"><i class="fa fa-trash"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);"><i class="fa fa-trash" aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/app/manage/role-edit/role-edit.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h3 class="panel-title">编辑角色</h3>
</div>
<div class="panel-body">
<form #form="ngForm" (ngSubmit)="form.form.valid && doLogin()" novalidate class="form-horizontal" role="form">
<form #form="ngForm" (ngSubmit)="form.form.valid" novalidate class="form-horizontal" role="form">
<div class="form-group" [ngClass]="{ 'has-error': form.submitted && !roleName.valid }">
<label class="col-md-2 control-label">名称:</label>
<div class="col-md-10">
Expand Down
12 changes: 4 additions & 8 deletions src/app/manage/role-table/role-table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
</div>
<div class="col-md-2">
<div class="input-group pull-right">
<button class="btn btn-primary" type="button" (click)="newRole()"><i class="fa fa-user"
aria-hidden="true"></i>
<button class="btn btn-primary" type="button"><i class="fa fa-user" aria-hidden="true"></i>
创建角色</button>
</div>
</div>
Expand All @@ -39,8 +38,7 @@
<td>
<a [routerLink]="['/manage/role-edit',1]"><i class="fa fa-pencil-square-o"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);" (click)="blockRole(1)"><i class="fa fa-trash"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);"><i class="fa fa-trash" aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr>
Expand All @@ -50,8 +48,7 @@
<td>
<a [routerLink]="['/manage/role-edit',1]"><i class="fa fa-pencil-square-o"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);" (click)="blockRole(1)"><i class="fa fa-trash"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);"><i class="fa fa-trash" aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
<tr>
Expand All @@ -61,8 +58,7 @@
<td>
<a [routerLink]="['/manage/role-edit',1]"><i class="fa fa-pencil-square-o"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);" (click)="blockRole(1)"><i class="fa fa-trash"
aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);"><i class="fa fa-trash" aria-hidden="true"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 3c44297

Please sign in to comment.