fix: dir problrm

This commit is contained in:
yinyuchen
2024-03-26 23:15:50 +08:00
parent db2efc5ab7
commit 16e79ac4cf
3 changed files with 12 additions and 3 deletions
+9
View File
@@ -1,3 +1,12 @@
# 4.0.2
1. 修复文件夹跳转列表获取问题
# 4.0.1
1. 修复一些已知问题
# 4.0.0
1. 共享空间
# 3.2.0 # 3.2.0
1. PC端不展示左侧关于菜单 1. PC端不展示左侧关于菜单
+2
View File
@@ -256,6 +256,8 @@ export default class Pager<T> extends HttpBase {
return params; return params;
} }
console.log("this.filters",this.filters)
for (let i = 0; i < this.filters.length; i++) { for (let i = 0; i < this.filters.length; i++) {
let filter = this.filters[i]; let filter = this.filters[i];
+1 -3
View File
@@ -475,14 +475,12 @@ export default class List extends TankComponent<IProps, IState> {
} }
searchFile(value?: string) { searchFile(value?: string) {
console.log('search', value);
this.pager.setFilterValue('name', value); this.pager.setFilterValue('name', value);
this.pager.setFilterValue('page', 0); this.pager.setFilterValue('page', 0);
this.refresh(); this.refresh();
} }
changeSearch(e: any) { changeSearch(e: any) {
console.log('change', e.currentTarget.value);
if (!e.currentTarget.value) this.searchFile(); if (!e.currentTarget.value) this.searchFile();
} }
@@ -551,7 +549,7 @@ export default class List extends TankComponent<IProps, IState> {
this.searchText = null; this.searchText = null;
this.pager.setFilterValues({ this.pager.setFilterValues({
puuid: id, puuid: id,
name: undefined, name: '',
}); });
this.pager.page = 0; this.pager.page = 0;
const query = this.pager.getParams(); const query = this.pager.getParams();