diff --git a/templates/auto_pt/status.html b/templates/auto_pt/status.html index 83b7948..bcb0abe 100644 --- a/templates/auto_pt/status.html +++ b/templates/auto_pt/status.html @@ -358,14 +358,15 @@ append-to-body style="background-color: rgba(227, 229, 229, 0.6);">
-

-历史数据

+

--历史数据

+ {# @change="showAllIncrementHistory">#} + @change="showHistoryList(site.id)"> 7天 15天 30天 @@ -577,6 +578,9 @@ }) }, showHistoryList(id) { + if (!id) { + id = 0 + } axios.get( "{% url 'site_data_api' %}" + '?id=' + id ).then(res => { @@ -1125,7 +1129,10 @@ dataList.sort((a, b) => { return a.info_date - b.info_date }) - dataList.forEach((info, index) => { + let resList = [] + resList = JSON.parse(JSON.stringify(dataList)).slice(this.dataLength); + {#dataList.forEach((info, index) => {#} + resList.forEach((info, index) => { uploadedList.push(info.uploaded) ratioList.push(info.ratio) seedingSizeList.push(info.seedingSize)