数据
This commit is contained in:
@@ -185,12 +185,24 @@ export default {
|
||||
async _sortingAndPackaging () {
|
||||
let res = await sortingAndPackaging()
|
||||
if (res.code === 200) {
|
||||
this.SortingDayList = [...res.result.SortingDayList]
|
||||
this.PackingAreaTaskList = [...res.result.PackingAreaTaskList]
|
||||
this.HalfSupportCacheList = [...res.result.HalfSupportCacheList]
|
||||
this.CPDayList = [...res.result.CPDayList]
|
||||
this.setEchart1()
|
||||
this.setEchart2()
|
||||
if (res.result.hasOwnProperty('SortingDayList')) {
|
||||
this.SortingDayList = [...res.result.SortingDayList]
|
||||
if (this.SortingDayList.length) {
|
||||
this.setEchart1()
|
||||
}
|
||||
}
|
||||
if (res.result.hasOwnProperty('PackingAreaTaskList')) {
|
||||
this.PackingAreaTaskList = [...res.result.PackingAreaTaskList]
|
||||
}
|
||||
if (res.result.hasOwnProperty('HalfSupportCacheList')) {
|
||||
this.HalfSupportCacheList = [...res.result.HalfSupportCacheList]
|
||||
}
|
||||
if (res.result.hasOwnProperty('CPDayList')) {
|
||||
this.CPDayList = [...res.result.CPDayList]
|
||||
if (this.CPDayList.length) {
|
||||
this.setEchart2()
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
setEchart1 () {
|
||||
|
||||
Reference in New Issue
Block a user