Commit a35cdd77 by huaying

fix: dd

parent 7a68cfd6
...@@ -108,6 +108,7 @@ export default { ...@@ -108,6 +108,7 @@ export default {
this.tableData = res.result.result; this.tableData = res.result.result;
this.total = res.result.totalCount; this.total = res.result.totalCount;
} catch (err) { } catch (err) {
this.loading = false;
this.$tips({ type: 'error', message: '加载列表失败' }); this.$tips({ type: 'error', message: '加载列表失败' });
} }
this.loading = false; this.loading = false;
......
...@@ -90,6 +90,7 @@ export default { ...@@ -90,6 +90,7 @@ export default {
this.tableData = res.result.result || []; this.tableData = res.result.result || [];
this.total = res.result.totalCount; this.total = res.result.totalCount;
} else { } else {
this.loading = false;
this.$tips({ type: 'error', message: '加载列表失败' }); this.$tips({ type: 'error', message: '加载列表失败' });
} }
this.loading = false; this.loading = false;
......
...@@ -63,6 +63,7 @@ export default { ...@@ -63,6 +63,7 @@ export default {
this.tableData = res.result.result || []; this.tableData = res.result.result || [];
this.total = res.result.totalCount; this.total = res.result.totalCount;
} else { } else {
this.loading = false;
this.$tips({ type: 'error', message: '加载列表失败' }); this.$tips({ type: 'error', message: '加载列表失败' });
} }
this.loading = false; this.loading = false;
......
...@@ -52,15 +52,21 @@ export default { ...@@ -52,15 +52,21 @@ export default {
...this.params, ...this.params,
storeId: this.$route.query.id storeId: this.$route.query.id
}; };
await getCardDetailPage(this.params).then(res => { await getCardDetailPage(this.params)
if (res.errorCode == 0) { .then(res => {
this.tableData = res.result.result || []; if (res.errorCode == 0) {
this.total = res.result.totalCount; this.tableData = res.result.result || [];
} else { this.total = res.result.totalCount;
} else {
this.loading = false;
this.$tips({ type: 'error', message: res.message });
}
this.loading = false;
})
.catch(err => {
this.$tips({ type: 'error', message: '加载列表失败' }); this.$tips({ type: 'error', message: '加载列表失败' });
} this.loading = false;
this.loading = false; });
});
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment