|
@@ -256,7 +256,7 @@ export default {
|
|
|
this.nowDate = moment().format('DD日HH点mm分')
|
|
|
this.spinning = true
|
|
|
const data = await salesReportDailyList({ reportType, reportDate }).then(res => res.data)
|
|
|
- if (data) {
|
|
|
+ if (data && data.length) {
|
|
|
this.tableData = data
|
|
|
// 全国销售日报
|
|
|
if (this.activeKey == 0) {
|
|
@@ -283,6 +283,8 @@ export default {
|
|
|
this.$refs['table' + this.activeKey].pageInit()
|
|
|
}
|
|
|
})
|
|
|
+ } else {
|
|
|
+ this.tableData = []
|
|
|
}
|
|
|
this.spinning = false
|
|
|
},
|