mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
no message
This commit is contained in:
parent
0c32b25ddf
commit
e9abf6ed05
@ -22,14 +22,6 @@
|
||||
</Select>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="search-label">
|
||||
{{$L("名称")}}
|
||||
</div>
|
||||
<div class="search-content">
|
||||
<Input v-model="keys.name" clearable :placeholder="$L('搜索收藏名称')"/>
|
||||
</div>
|
||||
</li>
|
||||
<li class="search-button">
|
||||
<SearchButton
|
||||
:loading="loadIng > 0"
|
||||
@ -274,7 +266,7 @@ export default {
|
||||
methods: {
|
||||
onSearch() {
|
||||
this.page = 1;
|
||||
this.filterData();
|
||||
this.getLists();
|
||||
},
|
||||
|
||||
getLists() {
|
||||
@ -360,7 +352,7 @@ export default {
|
||||
}
|
||||
|
||||
this.total = data.total || this.allData.length;
|
||||
this.filterData();
|
||||
this.list = this.allData.slice();
|
||||
this.noText = '没有相关的收藏';
|
||||
}).catch(() => {
|
||||
this.noText = '数据加载失败';
|
||||
@ -369,19 +361,6 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
filterData() {
|
||||
let filteredData = this.allData;
|
||||
|
||||
// 按名称筛选
|
||||
if (this.keys.name) {
|
||||
filteredData = filteredData.filter(item => {
|
||||
return item.name && item.name.toLowerCase().includes(this.keys.name.toLowerCase());
|
||||
});
|
||||
}
|
||||
|
||||
this.list = filteredData;
|
||||
},
|
||||
|
||||
setPage(page) {
|
||||
this.page = page;
|
||||
this.getLists();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user