Commit 7a1225b8 by Jaxon

Merge branch 'SAAS+V5.8.2_zls' into 'SAAS+V5.8.2'

代码恢复

See merge request !709
2 parents 74162de9 891c6829
......@@ -575,8 +575,6 @@ export default {
pagination: {},
// 多选数组
mutiSelectArr: {},
/** 请求序列号:防止快速切换时旧请求覆盖新数据 */
_refreshSeq: 0,
};
},
computed: {
......@@ -691,7 +689,6 @@ export default {
},
refreshTable(clearMuti = false, resetCurrentPage = false) {
const seq = ++this._refreshSeq
this.beforeSearchFn().then((res) => {
// console.log(res)
// 清空多选
......@@ -714,7 +711,6 @@ export default {
}
this.getListApi(params)
.then((res) => {
if (seq !== this._refreshSeq) return
this.pagination = {
currentPage: res.pageNum,
pageSize: res.pageSize,
......@@ -739,11 +735,9 @@ export default {
this.$emit("setTableFinishFun", this.data, this.page.currentPage);
})
.catch(() => {
if (seq !== this._refreshSeq) return
this.loading = false;
})
.finally(() => {
if (seq !== this._refreshSeq) return
this.$emit("apiFinish", this.data);
});
});
......@@ -872,4 +866,4 @@ export default {
margin-bottom: 8px;
}
}
</style>
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!