-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: delete group without delete api
- Loading branch information
Showing
23 changed files
with
353 additions
and
396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 13 additions & 20 deletions
33
src/app/pages/api/group/edit/api-group-edit.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
<div class="group_edit"> | ||
<form nz-form [nzLayout]="'vertical'" [formGroup]="validateForm" (ngSubmit)="submit()" *ngIf="!isDelete"> | ||
<nz-form-item nz-col class="fg1"> | ||
<nz-form-label nzFor="name">分组名称 </nz-form-label> | ||
<nz-form-control nzErrorTip="请输入分组名称"> | ||
<input type="text" autofocus nz-input id="name" formControlName="name" [(ngModel)]="group.name" /> | ||
</nz-form-control> | ||
</nz-form-item> | ||
</form> | ||
<p *ngIf="isDelete"> | ||
删除 <strong title="{{ group.name }}">{{ | ||
group.name.length > 50 ? group.name.slice(0, 50) + '...' : group.name | ||
}}</strong | ||
> 后,该分组下的数据都会删除。该操作无法撤销,确认删除吗? | ||
</p> | ||
</div> | ||
<footer class="group_edit_footer"> | ||
<button nz-button nzType="primary" (click)="submit()" [nzLoading]="showLoading">确定</button> | ||
<button nz-button (click)="close()">取消</button> | ||
</footer> | ||
<form nz-form [nzLayout]="'vertical'" [formGroup]="validateForm" (ngSubmit)="submit()" *ngIf="!isDelete"> | ||
<nz-form-item nz-col class="fg1"> | ||
<nz-form-label nzFor="name">分组名称 </nz-form-label> | ||
<nz-form-control nzErrorTip="请输入分组名称"> | ||
<input type="text" autofocus nz-input id="name" formControlName="name" [(ngModel)]="group.name" /> | ||
</nz-form-control> | ||
</nz-form-item> | ||
</form> | ||
<p *ngIf="isDelete"> | ||
删除 | ||
<strong title="{{ group.name }}">{{ group.name.length > 50 ? group.name.slice(0, 50) + '...' : group.name }}</strong> | ||
后,该分组下的数据都会删除。该操作无法撤销,确认删除吗? | ||
</p> |
15 changes: 0 additions & 15 deletions
15
src/app/pages/api/group/edit/api-group-edit.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +0,0 @@ | ||
.group_edit{ | ||
padding: 24px; | ||
} | ||
.group_edit_footer{ | ||
padding: 10px 16px; | ||
border-top: 1px solid #f0f0f0; | ||
text-align: right; | ||
button { | ||
display: inline-block; | ||
margin-left: 8px; | ||
} | ||
} | ||
::ng-deep .ant-modal-body { | ||
padding: 0; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.