diff --git a/templates/auto_pt/status.html b/templates/auto_pt/status.html
index e53f6b3..88fa122 100644
--- a/templates/auto_pt/status.html
+++ b/templates/auto_pt/status.html
@@ -591,16 +591,28 @@
//console.log(params)
// console.log(params[0].value[1])
let text = ''
+ let total = 0
params.forEach((param, index) => {
let temp = param.value == 0 ? '' : `
-
-
${param.seriesName}:
-
${renderSize(param.value)}
+
+ ${param.seriesName}:
+ ${renderSize(param.value)}
`
text += temp
+ total += param.value
})
- return `
${text}
`
+ let total_str = `
+
+
+
+ ${params[0].axisValue}:
+ ${renderSize(total)}
+
+
+ `
+ total_str += text
+ return `
${total_str}
`
},
position: function (point, params, dom, rect, size) {
console.log(point)
@@ -648,10 +660,10 @@
},
series: data.diff,
};
+ this.site.name = '全部站点'
this.showSiteChart = true
this.showAllHistory = true
setTimeout(() => {
- this.site.name = '全部站点'
this.chart = this.$refs.history_charts.chart
this.setChartOption(this.chart, option)
}, 15)