Browse Source

[完善]面包屑完善

master
陈鹏飞 5 years ago
parent
commit
9f3ffd7991
  1. 4
      src/app/ui/all-file/all-file.component.html
  2. 3
      src/app/ui/all-file/all-file.component.ts

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

@ -50,9 +50,11 @@
</div>
<div class="titlebox">
<div class="titleleft">
<span class="goBack" (click)='backToTop()'>返回级目录</span>
<span class="goBack" (click)='backToTop()'>返回级目录</span>
<span style="margin: 0 3px;color: #c5d8f3;">|</span>
<span class="allFile">全部文件</span>
<span style="margin: 0 3px;color: #c5d8f3;"></span>
<span class="allFile">{{selectedDataBank}}</span>
</div>

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

@ -293,12 +293,13 @@ export class AllFileComponent {
backToTop () {
if (this.selectedDataBank.includes('/')) {
let arr = this.selectedDataBank.split('/')
this.selectedDataBank = arr[0]
this.getALLFileList(arr[0])
} else {
const config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000
this.snackBar.open('目前已是级目录','确定',config)
this.snackBar.open('目前已是级目录','确定',config)
}
}

Loading…
Cancel
Save