|
|
@@ -70,6 +70,7 @@ async function refresh() {
|
|
|
}
|
|
|
|
|
|
async function codeStatistics() {
|
|
|
+ tableData.value = []
|
|
|
const quantityResponse = await http.get('/task/codeStatistics')
|
|
|
const balanceResponse = await http.get('/task/balanceStatistics')
|
|
|
|
|
|
@@ -83,19 +84,19 @@ async function codeStatistics() {
|
|
|
channel: item.channel,
|
|
|
todayData: parseInt(item.todayData, 10) || 0,
|
|
|
yesterdayData: parseInt(item.yesterdayData, 10) || 0,
|
|
|
- balance: balance !== undefined ? parseInt(balance, 10) : '-',
|
|
|
- });
|
|
|
+ balance: balance !== undefined ? parseInt(balance, 10) : '-'
|
|
|
+ })
|
|
|
|
|
|
- balanceMap.delete(item.channel);
|
|
|
- });
|
|
|
+ balanceMap.delete(item.channel)
|
|
|
+ })
|
|
|
|
|
|
for (const [channel, balance] of balanceMap) {
|
|
|
tableData.value.push({
|
|
|
channel,
|
|
|
todayData: 0,
|
|
|
yesterdayData: 0,
|
|
|
- balance: parseInt(balance, 10),
|
|
|
- });
|
|
|
+ balance: parseInt(balance, 10)
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|