diff --git a/templates/auto_pt/status.html b/templates/auto_pt/status.html index d75b9ac..2692b15 100644 --- a/templates/auto_pt/status.html +++ b/templates/auto_pt/status.html @@ -694,10 +694,13 @@ // console.log(params[0].value[1]) let text = '' let total = 0 + params.sort((a, b) => { + return b.value - a.value + }) params.forEach((param, index) => { let temp = param.value == 0 ? '' : ` -
- ${param.seriesName}: +
+ ${param.seriesName}: ${renderSize(param.value)}
` @@ -705,20 +708,28 @@ total += param.value }) let total_str = ` -
+
- - ${params[0].axisValue}: - ${renderSize(total)} + + 总计:${renderSize(total)} + ${params[0].axisValue}

` total_str += text - return `
${total_str}
` + return `
${total_str}
` }, position: function (point, params, dom, rect, size) { - // console.log(point) - return [point[1], 8] + let customVH = window.innerWidth + if (customVH - point[0] < 250) { + point[0] = customVH - 300 + } + console.log(customVH) + console.log(point[0]) + if (customVH > 768) { + return point + } + return [point[0], 5] }, order: 'valueDesc', confine: false,