fix: stats not update when change tab with data updated
This commit is contained in:
parent
59674d1295
commit
b07966c4e6
1 changed files with 27 additions and 18 deletions
|
|
@ -247,6 +247,7 @@ onMounted(async () => {
|
|||
});
|
||||
|
||||
async function fetchQuotationList() {
|
||||
{
|
||||
const ret = await quotationStore.getQuotationList({
|
||||
page: quotationPage.value,
|
||||
pageSize: quotationPageSize.value,
|
||||
|
|
@ -267,6 +268,14 @@ async function fetchQuotationList() {
|
|||
quotationData.value = ret.result;
|
||||
quotationPageMax.value = Math.ceil(ret.total / quotationPageSize.value);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const ret = await quotationStore.getQuotationStats();
|
||||
if (ret) {
|
||||
quotationStats.value = Object.assign(quotationStats.value, ret);
|
||||
}
|
||||
}
|
||||
|
||||
flowStore.rotate();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue