mirror of
https://github.com/eyebluecn/tank-front
synced 2024-04-21 12:31:55 +00:00
fix: dir problrm
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
# 4.0.2
|
||||
1. 修复文件夹跳转列表获取问题
|
||||
|
||||
# 4.0.1
|
||||
1. 修复一些已知问题
|
||||
|
||||
# 4.0.0
|
||||
1. 共享空间
|
||||
|
||||
# 3.2.0
|
||||
1. PC端不展示左侧关于菜单
|
||||
|
||||
|
||||
@@ -256,6 +256,8 @@ export default class Pager<T> extends HttpBase {
|
||||
return params;
|
||||
}
|
||||
|
||||
console.log("this.filters",this.filters)
|
||||
|
||||
for (let i = 0; i < this.filters.length; i++) {
|
||||
let filter = this.filters[i];
|
||||
|
||||
|
||||
@@ -475,14 +475,12 @@ export default class List extends TankComponent<IProps, IState> {
|
||||
}
|
||||
|
||||
searchFile(value?: string) {
|
||||
console.log('search', value);
|
||||
this.pager.setFilterValue('name', value);
|
||||
this.pager.setFilterValue('page', 0);
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
changeSearch(e: any) {
|
||||
console.log('change', e.currentTarget.value);
|
||||
if (!e.currentTarget.value) this.searchFile();
|
||||
}
|
||||
|
||||
@@ -551,7 +549,7 @@ export default class List extends TankComponent<IProps, IState> {
|
||||
this.searchText = null;
|
||||
this.pager.setFilterValues({
|
||||
puuid: id,
|
||||
name: undefined,
|
||||
name: '',
|
||||
});
|
||||
this.pager.page = 0;
|
||||
const query = this.pager.getParams();
|
||||
|
||||
Reference in New Issue
Block a user