support task order by upload speed in task list page

This commit is contained in:
MaysWind 2016-06-11 18:28:00 +08:00
parent 5851469cc0
commit 2164736834
4 changed files with 10 additions and 0 deletions

View file

@ -121,6 +121,12 @@
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('dspeed')}"></i> <i class="fa" ng-class="{'fa-check': isSetDisplayOrder('dspeed')}"></i>
</a> </a>
</li> </li>
<li>
<a class="pointer-cursor" ng-click="changeDisplayOrder('uspeed:desc')">
<span translate>By Upload Speed</span>
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('uspeed')}"></i>
</a>
</li>
</ul> </ul>
</li> </li>
</ul> </ul>

View file

@ -19,6 +19,7 @@
"By Completed Percent": "按进度", "By Completed Percent": "按进度",
"By Remain Time": "按剩余时间", "By Remain Time": "按剩余时间",
"By Download Speed": "按下载速度", "By Download Speed": "按下载速度",
"By Upload Speed": "按上传速度",
"Download": "下载", "Download": "下载",
"Upload": "上传", "Upload": "上传",
"Downloading": "正在下载", "Downloading": "正在下载",

View file

@ -23,6 +23,7 @@
'By Completed Percent': 'By Completed Percent', 'By Completed Percent': 'By Completed Percent',
'By Remain Time': 'By Remain Time', 'By Remain Time': 'By Remain Time',
'By Download Speed': 'By Download Speed', 'By Download Speed': 'By Download Speed',
'By Upload Speed': 'By Upload Speed',
'Download': 'Download', 'Download': 'Download',
'Upload': 'Upload', 'Upload': 'Upload',
'Downloading': 'Downloading', 'Downloading': 'Downloading',

View file

@ -23,6 +23,8 @@
return orderByFilter(array, ['idle', 'remainTime', 'remainLength'], orderType.reverse); return orderByFilter(array, ['idle', 'remainTime', 'remainLength'], orderType.reverse);
} else if (orderType.type == 'dspeed') { } else if (orderType.type == 'dspeed') {
return orderByFilter(array, ['downloadSpeed'], orderType.reverse); return orderByFilter(array, ['downloadSpeed'], orderType.reverse);
} else if (orderType.type == 'uspeed') {
return orderByFilter(array, ['uploadSpeed'], orderType.reverse);
} else { } else {
return array; return array;
} }