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 { ...@@ -575,8 +575,6 @@ export default {
pagination: {}, pagination: {},
// 多选数组 // 多选数组
mutiSelectArr: {}, mutiSelectArr: {},
/** 请求序列号:防止快速切换时旧请求覆盖新数据 */
_refreshSeq: 0,
}; };
}, },
computed: { computed: {
...@@ -691,7 +689,6 @@ export default { ...@@ -691,7 +689,6 @@ export default {
}, },
refreshTable(clearMuti = false, resetCurrentPage = false) { refreshTable(clearMuti = false, resetCurrentPage = false) {
const seq = ++this._refreshSeq
this.beforeSearchFn().then((res) => { this.beforeSearchFn().then((res) => {
// console.log(res) // console.log(res)
// 清空多选 // 清空多选
...@@ -714,7 +711,6 @@ export default { ...@@ -714,7 +711,6 @@ export default {
} }
this.getListApi(params) this.getListApi(params)
.then((res) => { .then((res) => {
if (seq !== this._refreshSeq) return
this.pagination = { this.pagination = {
currentPage: res.pageNum, currentPage: res.pageNum,
pageSize: res.pageSize, pageSize: res.pageSize,
...@@ -739,11 +735,9 @@ export default { ...@@ -739,11 +735,9 @@ export default {
this.$emit("setTableFinishFun", this.data, this.page.currentPage); this.$emit("setTableFinishFun", this.data, this.page.currentPage);
}) })
.catch(() => { .catch(() => {
if (seq !== this._refreshSeq) return
this.loading = false; this.loading = false;
}) })
.finally(() => { .finally(() => {
if (seq !== this._refreshSeq) return
this.$emit("apiFinish", this.data); this.$emit("apiFinish", this.data);
}); });
}); });
...@@ -872,4 +866,4 @@ export default { ...@@ -872,4 +866,4 @@ export default {
margin-bottom: 8px; margin-bottom: 8px;
} }
} }
</style> </style>
\ No newline at end of file \ 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!