mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
fix: 所有可搜索列表在非第1页搜索时不返回第1页的问题
This commit is contained in:
parent
24e9ff4c86
commit
6fba94594b
@ -22,7 +22,7 @@
|
||||
placement="right"
|
||||
transfer-class-name="search-button-clear"
|
||||
transfer>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="getLists">{{$L('搜索')}}</Button>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="onSearch">{{$L('搜索')}}</Button>
|
||||
<div slot="content">
|
||||
<Button :loading="loadIng > 0" type="text" @click="refresh">{{$L('刷新')}}</Button>
|
||||
</div>
|
||||
@ -199,6 +199,11 @@ export default {
|
||||
this.getLists();
|
||||
},
|
||||
|
||||
onSearch() {
|
||||
this.page = 1;
|
||||
this.getLists();
|
||||
},
|
||||
|
||||
getLists() {
|
||||
this.loadIng++;
|
||||
this.$store.dispatch("call", {
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
placement="right"
|
||||
transfer-class-name="search-button-clear"
|
||||
transfer>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="getLists">{{$L('搜索')}}</Button>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="onSearch">{{$L('搜索')}}</Button>
|
||||
<div slot="content">
|
||||
<Button :loading="loadIng > 0" type="text" @click="getLists">{{$L('刷新')}}</Button>
|
||||
</div>
|
||||
@ -178,6 +178,10 @@ export default {
|
||||
},
|
||||
]
|
||||
},
|
||||
onSearch() {
|
||||
this.page = 1;
|
||||
this.getLists();
|
||||
},
|
||||
getLists() {
|
||||
let archived = 'all';
|
||||
if (this.keys.status == 'archived') {
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
placement="right"
|
||||
transfer-class-name="search-button-clear"
|
||||
transfer>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="searchTab">{{$L('搜索')}}</Button>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="onSearch">{{$L('搜索')}}</Button>
|
||||
<div slot="content">
|
||||
<Button :loading="loadIng > 0" type="text" @click="getLists">{{$L('刷新')}}</Button>
|
||||
</div>
|
||||
@ -154,6 +154,11 @@ export default {
|
||||
]
|
||||
},
|
||||
|
||||
onSearch() {
|
||||
this.listPage = 1;
|
||||
this.getLists();
|
||||
},
|
||||
|
||||
getLists() {
|
||||
this.loadIng = 1;
|
||||
this.$store.dispatch("call", {
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
placement="right"
|
||||
transfer-class-name="search-button-clear"
|
||||
transfer>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="searchTab">{{$L('搜索')}}</Button>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="onSearch">{{$L('搜索')}}</Button>
|
||||
<div slot="content">
|
||||
<Button :loading="loadIng > 0" type="text" @click="getLists">{{$L('刷新')}}</Button>
|
||||
</div>
|
||||
@ -178,6 +178,11 @@ export default {
|
||||
]
|
||||
},
|
||||
|
||||
onSearch() {
|
||||
this.listPage = 1;
|
||||
this.getLists();
|
||||
},
|
||||
|
||||
getLists() {
|
||||
this.loadIng = 1;
|
||||
this.$store.dispatch("call", {
|
||||
@ -216,10 +221,6 @@ export default {
|
||||
this.getLists();
|
||||
}
|
||||
},
|
||||
|
||||
searchTab() {
|
||||
this.getLists();
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
placement="right"
|
||||
transfer-class-name="search-button-clear"
|
||||
transfer>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="getLists">{{$L('搜索')}}</Button>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="onSearch">{{$L('搜索')}}</Button>
|
||||
<div slot="content">
|
||||
<Button :loading="loadIng > 0" type="text" @click="getLists">{{$L('刷新')}}</Button>
|
||||
</div>
|
||||
@ -238,6 +238,11 @@ export default {
|
||||
this.getLists()
|
||||
},
|
||||
|
||||
onSearch() {
|
||||
this.page = 1;
|
||||
this.getLists();
|
||||
},
|
||||
|
||||
getLists() {
|
||||
if (!this.projectId) {
|
||||
return;
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
placement="right"
|
||||
transfer-class-name="search-button-clear"
|
||||
transfer>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="getLists">{{$L('搜索')}}</Button>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="onSearch">{{$L('搜索')}}</Button>
|
||||
<div slot="content">
|
||||
<Button :loading="loadIng > 0" type="text" @click="getLists">{{$L('刷新')}}</Button>
|
||||
</div>
|
||||
@ -186,6 +186,11 @@ export default {
|
||||
this.getLists()
|
||||
},
|
||||
|
||||
onSearch() {
|
||||
this.page = 1;
|
||||
this.getLists();
|
||||
},
|
||||
|
||||
getLists() {
|
||||
if (!this.projectId) {
|
||||
return;
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
placement="bottom"
|
||||
transfer-class-name="search-button-clear"
|
||||
transfer>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="getLists">{{$L('搜索')}}</Button>
|
||||
<Button :loading="loadIng > 0" type="primary" icon="ios-search" @click="onSearch">{{$L('搜索')}}</Button>
|
||||
<div slot="content">
|
||||
<Button :loading="loadIng > 0" type="text" @click="getLists">{{$L('刷新')}}</Button>
|
||||
</div>
|
||||
@ -286,6 +286,10 @@ export default {
|
||||
}
|
||||
]
|
||||
},
|
||||
onSearch() {
|
||||
this.page = 1;
|
||||
this.getLists();
|
||||
},
|
||||
getLists() {
|
||||
this.loadIng++;
|
||||
this.$store.dispatch("call", {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user