Skip to content

Commit

Permalink
fix: 按到期时间排序没有时间应该排到最后
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Dec 23, 2021
1 parent a3a9032 commit 6374365
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.4.27",
"version": "0.4.28",
"description": "DooTask is task management system.",
"main": "main.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.4.27",
"version": "0.4.28",
"description": "DooTask is task management system.",
"scripts": {
"start": "./cmd dev",
Expand Down
2 changes: 1 addition & 1 deletion public/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/js/build/274.js → public/js/build/747.js

Large diffs are not rendered by default.

File renamed without changes.
15 changes: 12 additions & 3 deletions resources/assets/js/pages/manage/components/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,10 @@ export default {
if (sortField == 'level') {
return a.p_level - b.p_level;
} else if (sortField == 'end_at') {
return $A.Date(a.end_at) - $A.Date(b.end_at);
if (a.end_at == b.end_at) {
return a.p_level - b.p_level;
}
return $A.Date(a.end_at || "2099-12-31 23:59:59") - $A.Date(b.end_at || "2099-12-31 23:59:59");
}
});
},
Expand Down Expand Up @@ -614,7 +617,10 @@ export default {
if (sortField == 'level') {
return a.p_level - b.p_level;
} else if (sortField == 'end_at') {
return $A.Date(a.end_at) - $A.Date(b.end_at);
if (a.end_at == b.end_at) {
return a.p_level - b.p_level;
}
return $A.Date(a.end_at || "2099-12-31 23:59:59") - $A.Date(b.end_at || "2099-12-31 23:59:59");
}
});
},
Expand Down Expand Up @@ -644,7 +650,10 @@ export default {
if (sortField == 'level') {
return a.p_level - b.p_level;
} else if (sortField == 'end_at') {
return $A.Date(a.end_at) - $A.Date(b.end_at);
if (a.end_at == b.end_at) {
return a.p_level - b.p_level;
}
return $A.Date(a.end_at || "2099-12-31 23:59:59") - $A.Date(b.end_at || "2099-12-31 23:59:59");
}
});
},
Expand Down
4 changes: 3 additions & 1 deletion resources/assets/sass/pages/components/project-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,10 @@
> ul {
height: 32px;
overflow: hidden;
text-overflow:ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
display: flex;
align-items: center;
> li {
list-style: none;
display: inline-block;
Expand Down

0 comments on commit 6374365

Please sign in to comment.