mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 12:02:51 +00:00
no message
This commit is contained in:
parent
0c32b25ddf
commit
e9abf6ed05
@ -22,14 +22,6 @@
|
|||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</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">
|
<li class="search-button">
|
||||||
<SearchButton
|
<SearchButton
|
||||||
:loading="loadIng > 0"
|
:loading="loadIng > 0"
|
||||||
@ -274,7 +266,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
onSearch() {
|
onSearch() {
|
||||||
this.page = 1;
|
this.page = 1;
|
||||||
this.filterData();
|
this.getLists();
|
||||||
},
|
},
|
||||||
|
|
||||||
getLists() {
|
getLists() {
|
||||||
@ -360,7 +352,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.total = data.total || this.allData.length;
|
this.total = data.total || this.allData.length;
|
||||||
this.filterData();
|
this.list = this.allData.slice();
|
||||||
this.noText = '没有相关的收藏';
|
this.noText = '没有相关的收藏';
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.noText = '数据加载失败';
|
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) {
|
setPage(page) {
|
||||||
this.page = page;
|
this.page = page;
|
||||||
this.getLists();
|
this.getLists();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user