修改分页bug

ywj_dev
wangwei 2 years ago
parent f723cf41ef
commit 96822524b8

@ -261,11 +261,11 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="bizTotal>0" v-show="codeTotal>0"
:total="bizTotal" :total="codeTotal"
:page.sync="bizQuery.page" :page.sync="codeQuery.page"
:limit.sync="bizQuery.limit" :limit.sync="codeQuery.limit"
@pagination="getBizDetailList" @pagination="getOrderDetails"
/> />
</el-tab-pane> </el-tab-pane>
@ -362,8 +362,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="bizTotal>0" v-show="invTotal>0"
:total="bizTotal" :total="invTotal"
:page.sync="bizQuery.page" :page.sync="bizQuery.page"
:limit.sync="bizQuery.limit" :limit.sync="bizQuery.limit"
@pagination="getBizDetailList" @pagination="getBizDetailList"
@ -568,6 +568,7 @@ export default {
limit: 10 limit: 10
}, },
bizTotal: 0, bizTotal: 0,
invTotal: 0,
bizDetailLoading: false, bizDetailLoading: false,
bizDetailList: [], bizDetailList: [],
codeQuery: { codeQuery: {
@ -746,10 +747,10 @@ export default {
// //
getOrderDetails() { getOrderDetails() {
this.codeQuery.page = 1; this.codeQuery.page = 1;
this.resultQuery.page = 1; //this.resultQuery.page = 1;
this.getCodeDetailList(); this.getCodeDetailList();
this.getResultDetailList(); //this.getResultDetailList();
}, },
// //
clearDetailList() { clearDetailList() {
@ -929,17 +930,17 @@ export default {
this.bizDetailLoading = false; this.bizDetailLoading = false;
if (res.code === 20000) { if (res.code === 20000) {
this.bizDetailList = res.data.list || []; this.bizDetailList = res.data.list || [];
this.bizTotal = res.data.total || 0; this.invTotal = res.data.total || 0;
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
this.bizDetailList = []; this.bizDetailList = [];
this.bizTotal = 0; this.invTotal = 0;
} }
}).catch((error) => { }).catch((error) => {
this.bizDetailLoading = false; this.bizDetailLoading = false;
this.$message.error(error.message); this.$message.error(error.message);
this.bizDetailList = []; this.bizDetailList = [];
this.bizTotal = 0; this.invTotal = 0;
}) })
}, },

Loading…
Cancel
Save