修改bug

ww
wangwei 3 years ago
parent 2f7732ebf5
commit c5388f01a7

@ -317,6 +317,7 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:current-page="filterQuery.page"
></el-pagination> ></el-pagination>
</div> </div>
</template> </template>
@ -418,6 +419,7 @@ export default {
limit: 20, limit: 20,
}; };
this.getList(); this.getList();
this.filterQuery.page=null;
}, },
formSubmit() { formSubmit() {
this.formData.roleId = 1; this.formData.roleId = 1;
@ -441,13 +443,11 @@ export default {
}); });
}, },
onSubmit() { onSubmit() {
this.filterQuery.checkType=null;
this.getList(); this.getList();
}, },
getList() { getList() {
this.loading = true; this.loading = true;
if (this.filterQuery.companyName != null && this.filterQuery.companyName != '') {
this.filterQuery.page = 1;
}
getCustomers(this.filterQuery) getCustomers(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
@ -485,6 +485,7 @@ export default {
handleCurrentChange(val) { handleCurrentChange(val) {
this.filterQuery.page = val; this.filterQuery.page = val;
this.getList(); this.getList();
this.filterQuery.page = 1;
}, },
handleCheckedChange(val) { handleCheckedChange(val) {
}, },

@ -335,7 +335,7 @@
return { return {
filterQuery: { filterQuery: {
companyName: "", companyName: "",
checkType: "0", checkType: "",
page: 1, page: 1,
limit: 20, limit: 20,
}, },
@ -451,6 +451,7 @@
handleCurrentChange(val) { handleCurrentChange(val) {
this.filterQuery.page = val; this.filterQuery.page = val;
this.getList(); this.getList();
this.filterQuery.page = 1;
}, },
findMethod(query) { findMethod(query) {
this.fromOptions = []; this.fromOptions = [];

Loading…
Cancel
Save