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