Browse Source

[完善]完善删除功能

master
邵佳豪 5 years ago
parent
commit
2ccaa36463
  1. 2
      src/app/ui/all-file/all-file.component.html
  2. 2
      src/app/ui/all-file/all-file.component.scss
  3. 4
      src/app/ui/all-file/all-file.component.ts

2
src/app/ui/all-file/all-file.component.html

@ -73,7 +73,7 @@
<span>已全部加载,共 {{fileNum}} 个</span>
</div>
</div>
<div class="mainbox">
<div class="mainbox" style="overflow-y: auto;max-height: 80%;width: 100%;">
<table style="width: 100%;" mat-table [dataSource]="dataSource" matSort (matSortChange)="sortData($event)" class="mat-elevation-z8">
<ng-container matColumnDef="select">
<th style="width: 4%;" mat-header-cell *matHeaderCellDef>

2
src/app/ui/all-file/all-file.component.scss

@ -174,7 +174,7 @@
}
}
.mainbox{
overflow-y: auto;
// overflow-y: auto;
table{
td{
img{

4
src/app/ui/all-file/all-file.component.ts

@ -699,7 +699,7 @@ export class AllFileComponent {
prefix : element.key,
recursive : true
}
this.http.delete(`/api/Objects/drives/allFiles`,{
this.http.delete(`/api/Objects/drives`,{
params:paramsdata
}).subscribe(data=>{
arr.push("删除成功了")
@ -716,7 +716,7 @@ export class AllFileComponent {
})
}else{
this.http.delete(`/api/Objects/drives/allFiles/${element.key}`).subscribe(data=>{
this.http.delete(`/api/Objects/drives/${element.key}`).subscribe(data=>{
arr.push("删除成功了")
if (arr.length == this.selection.selected.length) {
this.getALLFileList(this.selectedDataBank)

Loading…
Cancel
Save