diff --git a/haiwei-activiti/src/main/resources/templates/activiti/experiment_request/experiment_request.html b/haiwei-activiti/src/main/resources/templates/activiti/experiment_request/experiment_request.html index 577505c..694db7a 100644 --- a/haiwei-activiti/src/main/resources/templates/activiti/experiment_request/experiment_request.html +++ b/haiwei-activiti/src/main/resources/templates/activiti/experiment_request/experiment_request.html @@ -181,8 +181,10 @@ if (response.code === 0) { var timeList = response.data; - // 按照 updateTime 降序排序 - timeList.sort((a, b) => new Date(b.updateTime) - new Date(a.updateTime)) +/* // 按照 updateTime 降序排序 + timeList.sort((a, b) => new Date(b.updateTime) - new Date(a.updateTime))*/ + // 按照请求状态升序排列 + timeList.sort((a, b) => a.status - b.status); var timeline = $("#vertical-timeline"); timeline.empty();