update report-detail
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user