|
@@ -188,16 +188,16 @@ export default {
|
|
result: this.months.reduce((pre,month) => {
|
|
result: this.months.reduce((pre,month) => {
|
|
return {
|
|
return {
|
|
...pre,
|
|
...pre,
|
|
|
|
+ status:current.result.status ? current.result.status : '--',
|
|
[month]:{
|
|
[month]:{
|
|
- '1': current.result[month] && current.result[month]['1'] ? current.result[month]['1'] : {num: 0 ,send_status : null},
|
|
|
|
- '2': current.result[month] && current.result[month]['2'] ? current.result[month]['2'] : {num: 0, send_status : null },
|
|
|
|
|
|
+ '1': current.result[month] && current.result[month]['1'] ? { ... current.result[month]['1']} : {num: 0 ,send_status : null},
|
|
|
|
+ '2': current.result[month] && current.result[month]['2'] ? {...current.result[month]['2']} : {num: 0, send_status : null },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},{})
|
|
},{})
|
|
}]
|
|
}]
|
|
},[])
|
|
},[])
|
|
|
|
|
|
- console.log(this.tableData)
|
|
|
|
|
|
|
|
const totalItemDefault = this.months.reduce((prev,month) => ({
|
|
const totalItemDefault = this.months.reduce((prev,month) => ({
|
|
...prev,
|
|
...prev,
|
|
@@ -233,10 +233,8 @@ export default {
|
|
}
|
|
}
|
|
}),{})
|
|
}),{})
|
|
|
|
|
|
-
|
|
|
|
|
|
+ console.log(this.tableData)
|
|
noAddr.result.status = "--"
|
|
noAddr.result.status = "--"
|
|
-
|
|
|
|
- console.log(noAddr)
|
|
|
|
this.tableData.push(noAddr)
|
|
this.tableData.push(noAddr)
|
|
} else {
|
|
} else {
|
|
this.tableData = [];
|
|
this.tableData = [];
|