update report-detail

This commit is contained in:
2022-08-22 10:28:58 +08:00
parent 37df2abcc5
commit a30e2e1ae2
3 changed files with 59 additions and 77 deletions

View File

@@ -44,12 +44,12 @@ export default {
method: 'get',
params: {}
}).then(({ data: res }) => {
this.allNum = 0
this.allNum = 0
if (res.data) {
this.dataList = res.data
res.data.forEach(item => {
this.allNum += item.quantity
})
res.data.forEach(item => {
this.allNum += item.quantity
})
} else this.dataList.splice(0)
})
},
@@ -58,7 +58,7 @@ export default {
this.$router.push({
name: 'monitoring-reportDetail',
query: {
sortId: id
category: id
}
})
}